From 020fe6d12e8544371828b4807be559addb294e4e Mon Sep 17 00:00:00 2001 From: NoCrypt <57245077+NoCrypt@users.noreply.github.com> Date: Thu, 25 Jul 2024 00:20:05 +0700 Subject: [PATCH] Swap identity 3 --- .github/ISSUE_TEMPLATE/bug_report.yml | 6 +++--- .github/ISSUE_TEMPLATE/feature_request.yml | 6 +++--- .github/workflows/winget.yml | 14 -------------- common/modules/anilist.js | 6 +++--- common/modules/settings.js | 2 +- common/views/IspBlock.svelte | 2 +- common/views/Player/MediaHandler.svelte | 4 ++-- common/views/Settings/InterfaceSettings.svelte | 4 ++-- common/views/Settings/PlayerSettings.svelte | 2 +- common/views/Settings/Settings.svelte | 6 +++--- common/webpack.config.cjs | 2 +- electron/package.json | 16 ++++++++-------- functions/w2g/[id].js | 2 +- package.json | 6 +++--- 14 files changed, 32 insertions(+), 46 deletions(-) delete mode 100644 .github/workflows/winget.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 1ea6297..3e8e118 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -12,17 +12,17 @@ body: options: - label: >- I have searched the [issue - tracker](https://github.com/ThaUnknown/miru/issues) for a bug report + tracker](https://github.com/NoCrypt/migu/issues) for a bug report that matches the one I want to file, without success. required: true - label: >- I have searched the [frequently asked - questions](https://github.com/ThaUnknown/miru/blob/master/docs/faq.md) + questions](https://github.com/NoCrypt/migu/blob/master/docs/faq.md) for a solution that fixes this problem, without success. required: true - label: >- I have checked that I'm using the [latest - stable](https://github.com/ThaUnknown/miru/releases/latest) version + stable](https://github.com/NoCrypt/migu/releases/latest) version of the app. required: true - type: input diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 8637bc4..dc24cf2 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -12,17 +12,17 @@ body: options: - label: >- I have searched the [issue - tracker](https://github.com/ThaUnknown/miru/issues) for a bug report + tracker](https://github.com/NoCrypt/migu/issues) for a bug report that matches the one I want to file, without success. required: true - label: >- I have searched the [features - list](https://github.com/ThaUnknown/miru#features) for this feature, + list](https://github.com/NoCrypt/migu#features) for this feature, and I couldn't find it. required: true - label: >- I have checked that I'm using the [latest - stable](https://github.com/ThaUnknown/miru/releases/latest) version + stable](https://github.com/NoCrypt/migu/releases/latest) version of the app. required: true - type: textarea diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml deleted file mode 100644 index 9aa70a9..0000000 --- a/.github/workflows/winget.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Publish to WinGet -on: - release: - types: [released] -jobs: - publish: - runs-on: windows-latest - steps: - - name: WinGet Releaser - uses: vedantmgoyal2009/winget-releaser@v2 - with: - identifier: ThaUnknown.Miru - installers-regex: '\installer.exe$' - token: ${{ secrets.WINGET_TOKEN }} \ No newline at end of file diff --git a/common/modules/anilist.js b/common/modules/anilist.js index 62d20a1..0748152 100644 --- a/common/modules/anilist.js +++ b/common/modules/anilist.js @@ -395,8 +395,8 @@ class AnilistClient { variables.status = 'COMPLETED' if (media.mediaListEntry?.status === 'REPEATING') variables.repeat = media.mediaListEntry.repeat + 1 } - if (!lists.includes('Watched using Miru')) { - variables.lists.push('Watched using Miru') + if (!lists.includes('Watched using Migu')) { + variables.lists.push('Watched using Migu') } await this.entry(variables) this.userLists.value = this.getUserLists() @@ -712,7 +712,7 @@ class AnilistClient { } customList (variables = {}) { - variables.lists = [...variables.lists, 'Watched using Miru'] + variables.lists = [...variables.lists, 'Watched using Migu'] const query = /* js */` mutation($lists: [String]) { UpdateUser(animeListOptions: { customLists: $lists }) { diff --git a/common/modules/settings.js b/common/modules/settings.js index 018333a..211d34b 100644 --- a/common/modules/settings.js +++ b/common/modules/settings.js @@ -58,7 +58,7 @@ async function handleToken (token) { return } const lists = viewer?.data?.Viewer?.mediaListOptions?.animeList?.customLists || [] - if (!lists.includes('Watched using Miru')) { + if (!lists.includes('Watched using Migu')) { await anilistClient.customList({ lists }) } localStorage.setItem('ALviewer', JSON.stringify({ token, viewer })) diff --git a/common/views/IspBlock.svelte b/common/views/IspBlock.svelte index 2af0146..5ca141f 100644 --- a/common/views/IspBlock.svelte +++ b/common/views/IspBlock.svelte @@ -24,7 +24,7 @@

Could not connect to Torrent API!

This happens either because the API is down, or because your ISP blocks the API, the latter being more likely.
-
Most features of Miru will not function correctly without being able to connect to an API.
+
Most features of Migu will not function correctly without being able to connect to an API.
If you enable a VPN a restart might be required for it to take effect.
Visit { IPC.emit('open', 'https://thewiki.moe/tutorials/unblock/') }}>this guide for a tutorial on how to bypass ISP blocks.
diff --git a/common/views/Player/MediaHandler.svelte b/common/views/Player/MediaHandler.svelte index 949e46a..b3cf5f6 100644 --- a/common/views/Player/MediaHandler.svelte +++ b/common/views/Player/MediaHandler.svelte @@ -184,7 +184,7 @@ function setMediaSession (nowPlaying) { if (typeof MediaMetadata === 'undefined') return - const name = [nowPlaying.title, nowPlaying.episode, nowPlaying.episodeTitle, 'Miru'].filter(i => i).join(' - ') + const name = [nowPlaying.title, nowPlaying.episode, nowPlaying.episodeTitle, 'Migu'].filter(i => i).join(' - ') const metadata = nowPlaying.thumbnail @@ -237,7 +237,7 @@ url: 'https://github.com/ThaUnknown/miru/releases/latest' }, { - label: 'Watch on Miru', + label: 'Watch on Migu', url: `miru://anime/${np.media?.id}` } ] diff --git a/common/views/Settings/InterfaceSettings.svelte b/common/views/Settings/InterfaceSettings.svelte index ae69c0d..967e096 100644 --- a/common/views/Settings/InterfaceSettings.svelte +++ b/common/views/Settings/InterfaceSettings.svelte @@ -45,7 +45,7 @@ {#if SUPPORTS.angle}

Rendering Settings

- + diff --git a/common/views/Settings/Settings.svelte b/common/views/Settings/Settings.svelte index 1892f24..5005f2f 100644 --- a/common/views/Settings/Settings.svelte +++ b/common/views/Settings/Settings.svelte @@ -25,13 +25,13 @@ if (!wasUpdated) { wasUpdated = true toast('Auto Updater', { - description: 'A new version of Miru is available. Downloading!' + description: 'A new version of Migu is available. Downloading!' }) } }) IPC.on('update-downloaded', () => { toast.success('Auto Updater', { - description: 'A new version of Miru has downloaded. You can restart to update!' + description: 'A new version of Migu has downloaded. You can restart to update!' }) }) @@ -172,7 +172,7 @@

Changelog

-
New updates and improvements to Miru.
+
New updates and improvements to Migu.
{#await changeLog} diff --git a/common/webpack.config.cjs b/common/webpack.config.cjs index 6f3fa9a..5321a84 100644 --- a/common/webpack.config.cjs +++ b/common/webpack.config.cjs @@ -82,7 +82,7 @@ module.exports = (parentDir, alias = {}, aliasFields = 'browser', filename = 'ap -Miru +Migu diff --git a/electron/package.json b/electron/package.json index 4fd40f6..f0f8737 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,11 +1,11 @@ { - "name": "Miru", + "name": "Migu", "version": "5.2.5", "private": true, - "author": "ThaUnknown_ ", + "author": "NoCrypt ", "description": "Stream anime torrents, real-time with no waiting for downloads.", "main": "build/main.js", - "homepage": "https://github.com/ThaUnknown/miru#readme", + "homepage": "https://github.com/NoCrypt/migu#readme", "scripts": { "start": "cross-env NODE_ENV=development webpack build && concurrently --kill-others \"npm run web:watch\" \"npm run electron:start\"", "web:watch": "webpack serve", @@ -57,13 +57,13 @@ "publish": [ { "provider": "github", - "owner": "ThaUnknown", - "repo": "miru" + "owner": "NoCrypt", + "repo": "migu" } ], "afterSign": "./buildResources/notarize.js", - "appId": "com.github.thaunknown.miru", - "productName": "Miru", + "appId": "com.github.nocrypt.migu", + "productName": "Migu", "files": [ "build/**/*", "!node_modules/**/*.{mk,a,o,h}" @@ -95,7 +95,7 @@ "category": "AudioVideo;Video", "description": "Bittorrent streaming software for cats", "desktop": { - "Name": "Miru", + "Name": "Migu", "Comment": "Bittorrent streaming software for cats", "Keywords": "anime", "Type": "Application", diff --git a/functions/w2g/[id].js b/functions/w2g/[id].js index 0375288..dce407d 100644 --- a/functions/w2g/[id].js +++ b/functions/w2g/[id].js @@ -11,7 +11,7 @@ export function onRequest ({ params }) { - + diff --git a/package.json b/package.json index 071a9c7..23f8375 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "Miru", + "name": "Migu", "private": true, - "author": "ThaUnknown_ ", + "author": "NoCrypt ", "description": "Stream anime torrents, real-time with no waiting for downloads.", "main": "build/main.js", - "homepage": "https://github.com/ThaUnknown/miru#readme", + "homepage": "https://github.com/NoCrypt/migu#readme", "standard": { "ignore": [ "bundle.js",