Skip to content

Commit ba2d45b

Browse files
authored
Merge pull request #69 from Gawdl3y/main
Release v0.4.3
2 parents 8f87bb0 + fb15f33 commit ba2d45b

File tree

8 files changed

+24
-12
lines changed

8 files changed

+24
-12
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
failOnError: true
2929
configurationJson: |
3030
{
31-
"template": "#{{CHANGELOG}}\n\n**Full changelog:** [`#{{FROM_TAG}}...#{{TO_TAG}}`](#{{RELEASE_DIFF}})",
31+
"template": "#{{CHANGELOG}}\n\n**Full changelog:** [`#{{FROM_TAG}}...#{{TO_TAG}}`](#{{RELEASE_DIFF}})\n**Previous release:** [#{{FROM_TAG}}](https://github.com/#{{OWNER}}/#{{REPO}}/releases/tag/#{{FROM_TAG}})\n**All releases:** https://github.com/#{{OWNER}}/#{{REPO}}/releases",
3232
"pr_template": "- PR ##{{NUMBER}}: #{{TITLE}} (@#{{AUTHOR}})",
3333
"categories": [
3434
{

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/tauri-app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "resolute-app"
3-
version = "0.4.2"
3+
version = "0.4.3"
44
description = "Resolute, a mod manager for Resonite"
55
authors = ["Schuyler Cebulskie <me@gawdl3y.dev>"]
66
license = ""

crates/tauri-app/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"package": {
33
"productName": "Resolute",
4-
"version": "0.4.2"
4+
"version": "0.4.3"
55
},
66
"build": {
77
"beforeDevCommand": "npm run dev",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "resolute",
33
"private": true,
4-
"version": "0.4.2",
4+
"version": "0.4.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

ui/src/components/pages/ModAuthorToolsPage.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
variant="text"
2424
:icon="mdiFileSearch"
2525
:loading="checksumLoading"
26-
@click="hashFile"
26+
@click="hashFile()"
2727
/>
2828
</template>
2929
</v-tooltip>
@@ -90,6 +90,7 @@ onUnmounted(() => {
9090
9191
/**
9292
* Opens a dialog to choose a file, then requests the backend to calculate the checksum for that file
93+
* @param {string} [file=null] File path to hash (skips dialog if provided)
9394
*/
9495
async function hashFile(file = null) {
9596
// Prompt to choose a file

ui/src/util.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ import { marked } from 'marked';
22
import purify from 'dompurify';
33

44
/**
5-
* Full URL to the project's GitHub repository
5+
* GitHub's base URL without a trailing slash
66
*/
7-
export const REPO_URL = 'https://github.com/Gawdl3y/Resolute/';
7+
export const GITHUB_URL = 'https://github.com';
8+
9+
/**
10+
* Full URL to the project's GitHub repository without a trailing slash
11+
*/
12+
export const REPO_URL = `${GITHUB_URL}/Gawdl3y/Resolute`;
813

914
/**
1015
* Renders Markdown into sanitized HTMl with auto-linked GitHub issue numbers and commit hashes
@@ -15,13 +20,19 @@ export function renderMarkdown(markdown) {
1520
// Replace git hashes with Markdown links
1621
markdown = markdown.replace(
1722
/\b(([0-9a-f]{7})([0-9a-f]{1,33})?)\b/g,
18-
`[$2](${REPO_URL}commit/$1)`,
23+
`[$2](${REPO_URL}/commit/$1)`,
1924
);
2025

2126
// Replace issue numbers with Markdown links
2227
markdown = markdown.replace(
2328
/(\s)(#[0-9]+)\b/g,
24-
`$1[$2](${REPO_URL}issues/$1)`,
29+
`$1[$2](${REPO_URL}/issues/$1)`,
30+
);
31+
32+
// Replace GitHub username mentions with Markdown links
33+
markdown = markdown.replace(
34+
/(\s)@([a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38})\b/gi,
35+
`$1[@$2](${GITHUB_URL}/$2)`,
2536
);
2637

2738
// Set up the marked renderer to make links open in a new window

0 commit comments

Comments
 (0)