Skip to content

Commit e27ee0f

Browse files
TimeraaBas950theusaf
authored
chore(PMD-277): give every activity a regex (#10197)
* chore: autofill regexs * chore: bump version * Update websites/W/Wolvesville/metadata.json Co-authored-by: Daniel Lau <32113157+theusaf@users.noreply.github.com> Signed-off-by: Bas van Zanten <bas.van.zanten007@gmail.com> * Update websites/V/Vinted/metadata.json Co-authored-by: Daniel Lau <32113157+theusaf@users.noreply.github.com> Signed-off-by: Bas van Zanten <bas.van.zanten007@gmail.com> * Update websites/W/Webflow/metadata.json Co-authored-by: Daniel Lau <32113157+theusaf@users.noreply.github.com> Signed-off-by: Bas van Zanten <bas.van.zanten007@gmail.com> * Update websites/W/Wolfy/metadata.json Co-authored-by: Daniel Lau <32113157+theusaf@users.noreply.github.com> Signed-off-by: Bas van Zanten <bas.van.zanten007@gmail.com> * Update websites/A/AliExpress/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/A/AnimeRadio.de/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/A/AnizmTV/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/B/BBC/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/B/Brainly/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/D/Domino's Pizza (UK)/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/L/Lazada/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/M/ManiaExchange/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/S/SOAP2DAY/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/H/HBO GO/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/I/IGN/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/M/Masuru/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/P/PokeRogue/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/P/PokeRogue/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/S/SOOP/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/S/Spotify Podcasts/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/T/TVNZ OnDemand/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/T/TrackMania Exchange/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/T/Twitch/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * Update websites/U/Uncyclopedia/metadata.json Co-authored-by: Bas van Zanten <me@bas950.com> Signed-off-by: Florian Metz <me@timeraa.dev> * chore: small fixes * fix: remove activity with only presence file * feat: add https check * chore: update schema version --------- Signed-off-by: Bas van Zanten <bas.van.zanten007@gmail.com> Signed-off-by: Florian Metz <me@timeraa.dev> Co-authored-by: Bas van Zanten <me@bas950.com> Co-authored-by: Daniel Lau <32113157+theusaf@users.noreply.github.com>
1 parent 36c4975 commit e27ee0f

1,353 files changed

Lines changed: 4132 additions & 3080 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Each activity has a descriptor file called `metadata.json`, the metadata has a s
6060

6161
```json
6262
{
63-
"$schema": "https://schemas.premid.app/metadata/1.15",
63+
"$schema": "https://schemas.premid.app/metadata/1.16",
6464
"apiVersion": 1,
6565
"author": {
6666
"name": "USER",

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# eslint-disable json-schema-validator/no-invalid
21
blank_issues_enabled: false
32
contact_links:
43
- name: Official Discord Server

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
paths:
99
- 'docs/**'
1010
# Trigger on pull requests
11-
#pull_request:
11+
# pull_request:
1212
# types: [opened, synchronize, reopened]
1313
# paths:
1414
# - 'docs/**'

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ This repository contains the source code of all Activities that are available in
1818
Want to create your own Activity or modify an existing one? Great! Follow these simple steps:
1919

2020
1. **Set up your development environment**
21-
2221
- Install [Node.js](https://nodejs.org/) (version 20 or higher)
2322
- Clone this repository: `git clone https://github.com/PreMiD/Activities.git`
2423
- Navigate to the project directory: `cd Activities`
2524
- Install dependencies: `npm install`
2625

2726
2. **Learn the basics**
28-
2927
- Read our [documentation](https://docs.premid.app/) to understand how Activities work
3028
- Browse through existing Activities to see examples and best practices
3129

cli/src/commands/new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function newActivity(activity?: string) {
9595
}).catch(() => exit('Something went wrong.'))
9696

9797
const metadata = {
98-
$schema: 'https://schemas.premid.app/metadata/1.15',
98+
$schema: 'https://schemas.premid.app/metadata/1.16',
9999
apiVersion: 1,
100100
author,
101101
service: activity,

cli/src/util/getSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export async function getSchema() {
2-
return (await fetch('https://schemas.premid.app/metadata/1.15')).json()
2+
return (await fetch('https://schemas.premid.app/metadata/1.16')).json()
33
}

docs/v1/examples/slideshow.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,11 @@ In the `presence.ts` file, we:
205205
The example demonstrates three different approaches to managing slides based on the current page:
206206

207207
1. **Gallery Page**: Creates a dynamic set of slides for each image
208-
209208
- Clears all previous slides with `slideshow.deleteAllSlides()`
210209
- Creates a new slide for each image with unique IDs
211210
- Uses the spread operator (`...presenceData`) to maintain common properties
212211

213212
2. **Profile Page**: Creates multiple slides showing different aspects of the profile
214-
215213
- One slide for basic profile info
216214
- One slide for user level
217215
- One conditional slide for achievements (only if they exist)

docs/v1/guide/structure.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ npx pmd versionize "Example"
6666
This command will:
6767

6868
1. If the activity is not already versioned:
69-
7069
- Move the current activity files into a `v1` directory
7170
- Create a new `v2` directory with the necessary files
7271
- Update the `apiVersion` field to `2` in the new version's `metadata.json` file

websites/#/アイドルマスターシャイニーカラーズ/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://schemas.premid.app/metadata/1.13",
2+
"$schema": "https://schemas.premid.app/metadata/1.16",
33
"apiVersion": 1,
44
"author": {
55
"id": "258380809172418570",
@@ -14,7 +14,8 @@
1414
"ja": "「アイドルマスター」シリーズ最新作が、スマートフォン向けブラウザゲームで登場! 新たな事務所「283(ツバサ)プロダクション」を舞台に、アイドルを羽ばたかせよう! ©BANDAI NAMCO Entertainment Inc."
1515
},
1616
"url": "shinycolors.enza.fun",
17-
"version": "1.0.15",
17+
"regExp": "^https?[:][/][/]shinycolors[.]enza[.]fun[/]",
18+
"version": "1.1.0",
1819
"logo": "https://cdn.rcd.gg/PreMiD/websites/%23/%E3%82%A2%E3%82%A4%E3%83%89%E3%83%AB%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%B7%E3%83%A3%E3%82%A4%E3%83%8B%E3%83%BC%E3%82%AB%E3%83%A9%E3%83%BC%E3%82%BA/assets/logo.png",
1920
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/%23/%E3%82%A2%E3%82%A4%E3%83%89%E3%83%AB%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%B7%E3%83%A3%E3%82%A4%E3%83%8B%E3%83%BC%E3%82%AB%E3%83%A9%E3%83%BC%E3%82%BA/assets/thumbnail.png",
2021
"color": "#8adfff",

websites/#/ッツ Ebook Reader/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://schemas.premid.app/metadata/1.13",
2+
"$schema": "https://schemas.premid.app/metadata/1.16",
33
"apiVersion": 1,
44
"author": {
55
"id": "615896601554190346",
@@ -10,7 +10,8 @@
1010
"en": "Online e-book reader that supports Yomichan."
1111
},
1212
"url": "reader.ttsu.app",
13-
"version": "1.0.7",
13+
"regExp": "^https?[:][/][/]reader[.]ttsu[.]app[/]",
14+
"version": "1.1.0",
1415
"logo": "https://cdn.rcd.gg/PreMiD/websites/%23/%E3%83%83%E3%83%84%20Ebook%20Reader/assets/logo.png",
1516
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/%23/%E3%83%83%E3%83%84%20Ebook%20Reader/assets/thumbnail.jpg",
1617
"color": "#37474F",

0 commit comments

Comments
 (0)