Skip to content

Commit

Permalink
chore: change tranimeizle url
Browse files Browse the repository at this point in the history
  • Loading branch information
eggsy committed Jan 20, 2025
2 parents 00dc263 + 7d24efc commit b455428
Show file tree
Hide file tree
Showing 1,684 changed files with 24,200 additions and 11,016 deletions.
2 changes: 1 addition & 1 deletion .github/COMMIT_CONVENTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Other prefixes are up to your discretion. Suggested prefixes are `chore`, `style

### Scope

The scope could be anything specifying the place of the commit change, usually the name of a Presence. For example `YouTube`, `Netflix`, `SE` (syntax enforcer script), `Amazon Music` etc...
The scope could be anything specifying the place of the commit change, usually the name of an Activity. For example `YouTube`, `Netflix`, `SE` (syntax enforcer script), `Amazon Music` etc...

### Subject

Expand Down
124 changes: 61 additions & 63 deletions .github/CONTRIBUTING.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Feature Request
description: Request a new feature for an existing presence
description: Request a new feature for an existing activity
labels: [feature request]
body:
- type: markdown
Expand All @@ -8,9 +8,9 @@ body:
Before requesting a new feature, ensure your request hasn't already been
submitted before. If it has, reply to the open issue instead.
- type: input
id: presence_name
id: activity_name
attributes:
label: Presence name
label: Activity name
validations:
required: true
- type: textarea
Expand All @@ -19,7 +19,7 @@ body:
required: true
attributes:
label: Description
description: Describe in detail what would you like to see added to the presence and why.
description: Describe in detail what would you like to see added to the activity and why.
- type: textarea
id: alternatives
validations:
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/service_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Service Request
description: Request a new presence to be added to the store
labels: [service request]
description: Request a new activity to be added to the store
labels: [activity request]
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -36,4 +36,4 @@ body:
required: true
attributes:
label: Description
description: Provide a detailed description on what you would like to see displayed on this presence
description: Provide a detailed description on what you would like to see displayed on this activity
21 changes: 21 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Push to Crowdin
on:
push:
branches:
- main
jobs:
push-to-crowdin:
if: github.repository_owner == 'PreMiD'
name: Push to Crowdin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: 369101
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# ESLint is a tool for identifying and reporting on patterns
# found in ECMAScript/JavaScript code.
# More details at https://github.com/eslint/eslint
# and https://eslint.org

name: ESLint

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install ESLint
run: |
npm install
npm install @microsoft/eslint-formatter-sarif@3.1.0
- name: Run ESLint
env:
SARIF_ESLINT_IGNORE_SUPPRESSED: "true"
run: npx eslint . --config .eslintrc.json --ext .js,.jsx,.ts,.tsx --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: eslint-results.sarif
wait-for-processing: true
36 changes: 36 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Stale
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Stale
uses: actions/stale@v9
with:
days-before-stale: 60
days-before-pr-stale: 14
stale-issue-message: |
This issue has been marked as stale because it has been inactive for over 60 days.
If this is still relevant, please leave a comment to let us know.
Otherwise, this issue may be closed automatically in 7 days.
close-issue-message: |
This issue has been automatically closed due to inactivity for over 60 days.
If you believe this issue is still relevant, feel free to reopen it or create a new one with updated information.
stale-pr-message: |
This PR has been marked as stale because it has been inactive for over 14 days.
If you believe this PR is still relevant, please leave a comment to let us know.
Otherwise, this PR may be closed automatically in 7 days.
close-pr-message: |
This PR has been automatically closed due to inactivity for over 14 days.
If you believe this PR is still relevant, feel free to reopen it or create a new one with updated information.
stale-pr-label: inactive
stale-issue-label: inactive
only-issue-labels: bug,needs repro
operations-per-run: 1000
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ lerna-debug.log*

# Exception for extension recommendations
!**/.vscode/extensions.json
!**/.vscode/settings.json

# PresenceUpdater
dist
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"discord.enabled": false
}
24 changes: 15 additions & 9 deletions @types/premid/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @link https://docs.premid.app/dev/presence/class#presencedata-interface
*/
interface PresenceData {
interface BasePresenceData {
/**
* Name to show in activity
* @example "YouTube"
Expand Down Expand Up @@ -102,6 +102,18 @@ interface PresenceData {
buttons?: [ButtonData, ButtonData?];
}

interface MediaPresenceData extends BasePresenceData {
type: ActivityType.Listening | ActivityType.Watching;
largeImageText?: string | Node;
}

interface NonMediaPresenceData extends BasePresenceData {
type?: Exclude<ActivityType, ActivityType.Listening | ActivityType.Watching>;
largeImageText?: never;
}

type PresenceData = MediaPresenceData | NonMediaPresenceData;

interface ButtonData {
/**
* Text for the button
Expand Down Expand Up @@ -351,15 +363,9 @@ interface Metadata {
*/
values?: (string | number | boolean)[];
/**
* `false`: default, it disables multi-localization.
*
* `true`: use this if you are only going to use strings from the [`general.json`](https://github.com/PreMiD/Localization/blob/main/src/Presence/general.json) file.
*
* `string`: name of the file, excluding the extension (.json), inside the [localization github repo](https://github.com/PreMiD/Localization/tree/master/src/Presence).
*
* `string[]`: if you are using more than one file, from inside of the [localization github repo](https://github.com/PreMiD/Localization/tree/master/src/Presence), you can specify all the values in an array. Only common languages of all the files will be listed.
* `true`: use this if you are only going to use strings from the [`general.json`](https://github.com/PreMiD/Localization/blob/main/src/Presence/general.json) file, and your <service>.json file.
*/
multiLanguage?: boolean | string | string[];
multiLanguage?: true;
}[];
}

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div align="center">
<img src="https://avatars3.githubusercontent.com/u/46326568?s=400&amp;u=15e4a4988014780288d30ffb969fd1569fec23e6&amp;v=4" width="128px" style="max-width:100%;">
<h1>PreMiD Presences</h1>
<h1>PreMiD Activities</h1>
</div>

This repository contains the source code of all Presences that are available in [PreMiD's Store](https://premid.app/store). If you wish to add your Presence or update one, open a Pull Request.
This repository contains the source code of all Activities that are available in [PreMiD's Store](https://premid.app/store). If you wish to add your Activity or update one, open a Pull Request.

<div align="left">
<a target="_blank" href="https://discord.premid.app/" title="Join our Discord!">
Expand All @@ -21,7 +21,7 @@ Please refer to our [documentation](https://docs.premid.app/dev/presence) to get

## Translator Tool

Translate Presences by using `npx pmd` (or your package manager of choice).
Translate Activities by using `npx pmd` (or your package manager of choice).

## Committing

Expand Down
Loading

0 comments on commit b455428

Please sign in to comment.