Skip to content

Commit 4736fb8

Browse files
committed
Merge remote-tracking branch 'knossos/monorepo-migration'
2 parents 531e7ec + ff946b4 commit 4736fb8

File tree

340 files changed

+58655
-0
lines changed

Some content is hidden

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

340 files changed

+58655
-0
lines changed

apps/knossos/.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 100
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

apps/knossos/.eslintrc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// @ts-check
2+
/** @type {import("eslint").ESLint.ConfigData} */
3+
module.exports = {
4+
root: true,
5+
extends: [
6+
'eslint:recommended',
7+
'plugin:@typescript-eslint/recommended',
8+
'plugin:vue/vue3-recommended',
9+
'@nuxtjs/eslint-config-typescript',
10+
'plugin:prettier/recommended', // Integrate Prettier into ESLint
11+
'prettier', // Disable unnecessary ESLint rules in the presence of Prettier
12+
'plugin:import/recommended',
13+
'plugin:import/typescript',
14+
],
15+
rules: {
16+
'no-console': 'off',
17+
'vue/no-v-html': 'off',
18+
'vue/multi-word-component-names': 'off',
19+
'import/extensions': ['error', 'always', { ignorePackages: true }],
20+
},
21+
settings: {
22+
'import/parsers': {
23+
'@typescript-eslint/parser': ['.ts', '.tsx'],
24+
},
25+
'import/resolver': {
26+
typescript: true,
27+
},
28+
},
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Bug report
2+
description: Create a report to help us improve Modrinth
3+
labels: [bug]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Describe the bug
8+
description: A clear and concise description of what the bug is.
9+
validations:
10+
required: false
11+
- type: textarea
12+
attributes:
13+
label: Steps to reproduce
14+
description: Steps to reproduce the behavior.
15+
placeholder: |
16+
1. Go to '...'
17+
2. Click on '...'
18+
3. Scroll down to '...'
19+
4. See error
20+
validations:
21+
required: false
22+
- type: textarea
23+
attributes:
24+
label: Expected behavior
25+
description: A clear and concise description of what you expected to happen.
26+
validations:
27+
required: false
28+
- type: textarea
29+
attributes:
30+
label: Additional context
31+
description: Add any other context about the problem here.
32+
validations:
33+
required: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Discord
4+
about: Ask questions on our Discord Server.
5+
url: https://discord.modrinth.com
6+
- name: Roadmap
7+
about: View our Roadmap. Please do not open issues for items on our roadmap.
8+
url: https://roadmap.modrinth.com
9+
- name: Discussions (Feature requests)
10+
about: |
11+
Please use Issues for reporting bugs and suggesting enhancements to existing features.
12+
Suggestions for new features should be made as a Discussion.
13+
url: https://github.com/orgs/modrinth/discussions/categories/feature-requests
14+
- name: Documentation
15+
about: Useful documentation about Modrinth, its API, and how you can contribute.
16+
url: https://docs.modrinth.com
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Enhancement
2+
description: Suggest an enhancement for an existing Modrinth feature
3+
labels: [enhancement]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Is your suggested enhancement related to a problem? Please describe.
8+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
validations:
10+
required: false
11+
- type: textarea
12+
attributes:
13+
label: Describe the solution you'd like
14+
description: A clear and concise description of what you want to happen.
15+
validations:
16+
required: false
17+
- type: textarea
18+
attributes:
19+
label: Describe alternatives you've considered
20+
description: A clear and concise description of any alternative solutions or features you've considered.
21+
validations:
22+
required: false
23+
- type: textarea
24+
attributes:
25+
label: Additional context
26+
description: Add any other context or screenshots about the suggested enhancement here.
27+
validations:
28+
required: false
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy
2+
3+
on: push
4+
5+
jobs:
6+
deploy:
7+
if: github.repository_owner == 'modrinth'
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
deployments: write
12+
steps:
13+
- name: Cloudflare Pages deployment
14+
uses: WalshyDev/cf-pages-await@v1
15+
with:
16+
apiToken: ${{ secrets.CF_API_TOKEN }}
17+
accountId: '9ddae624c98677d68d93df6e524a6061'
18+
project: 'knossos'
19+
githubToken: ${{ secrets.GITHUB_TOKEN }}
20+
commitHash: ${{ steps.push-changes.outputs.commit-hash }}
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build + Lint
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Use Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18.x
19+
- name: Install pnpm via corepack
20+
shell: bash
21+
run: |
22+
corepack enable
23+
corepack prepare --activate
24+
- name: Get pnpm store directory
25+
id: pnpm-cache
26+
shell: bash
27+
run: |
28+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
29+
- name: Setup pnpm cache
30+
uses: actions/cache@v3
31+
with:
32+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
33+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34+
restore-keys: |
35+
${{ runner.os }}-pnpm-store-
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Run Lint
39+
run: pnpm lint
40+
- name: Build
41+
run: pnpm build
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Regenerate tags
2+
3+
on:
4+
schedule:
5+
- cron: '*/30 * * * *'
6+
7+
jobs:
8+
regenerate:
9+
runs-on: ubuntu-latest
10+
if: github.repository_owner == 'modrinth'
11+
steps:
12+
- name: Re-deploy site
13+
run: |
14+
curl -X POST \
15+
${{ secrets.CLOUDFLARE_DEPLOY_URL }}

apps/knossos/.gitignore

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
node_modules
2+
*.log*
3+
.nuxt
4+
.nitro
5+
.cache
6+
.output
7+
.env
8+
.dev.vars
9+
dist
10+
.wrangler/
11+
12+
generated/
13+
!.gitkeep
14+
15+
# Created by .ignore support plugin (hsz.mobi)
16+
### Node template
17+
# Logs
18+
/logs
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
23+
24+
# Runtime data
25+
pids
26+
*.pid
27+
*.seed
28+
*.pid.lock
29+
30+
# Directory for instrumented libs generated by jscoverage/JSCover
31+
lib-cov
32+
33+
# Coverage directory used by tools like istanbul
34+
coverage
35+
36+
# nyc test coverage
37+
.nyc_output
38+
39+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
40+
.grunt
41+
42+
# Bower dependency directory (https://bower.io/)
43+
bower_components
44+
45+
# node-waf configuration
46+
.lock-wscript
47+
48+
# Compiled binary addons (https://nodejs.org/api/addons.html)
49+
build/Release
50+
51+
# Dependency directories
52+
jspm_packages/
53+
54+
# TypeScript v1 declaration files
55+
typings/
56+
57+
# Optional npm cache directory
58+
.npm
59+
60+
# Optional eslint cache
61+
.eslintcache
62+
63+
# Optional REPL history
64+
.node_repl_history
65+
66+
# Output of 'npm pack'
67+
*.tgz
68+
69+
# Yarn Integrity file
70+
.yarn-integrity
71+
72+
# Serverless directories
73+
.serverless
74+
75+
# IDE / Editor
76+
.idea
77+
78+
# Service worker
79+
sw.*
80+
81+
# macOS
82+
.DS_Store
83+
84+
# Vim swap files
85+
*.swp

apps/knossos/.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

apps/knossos/.prettierignore

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
node_modules
2+
*.log*
3+
.nuxt
4+
.nitro
5+
.cache
6+
.output
7+
.env
8+
dist
9+
*.md
10+
11+
generated/
12+
!.gitkeep
13+
14+
# Created by .ignore support plugin (hsz.mobi)
15+
### Node template
16+
# Logs
17+
/logs
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
21+
22+
23+
# Runtime data
24+
pids
25+
*.pid
26+
*.seed
27+
*.pid.lock
28+
29+
# Directory for instrumented libs generated by jscoverage/JSCover
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
coverage
34+
35+
# nyc test coverage
36+
.nyc_output
37+
38+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
39+
.grunt
40+
41+
# Bower dependency directory (https://bower.io/)
42+
bower_components
43+
44+
# node-waf configuration
45+
.lock-wscript
46+
47+
# Compiled binary addons (https://nodejs.org/api/addons.html)
48+
build/Release
49+
50+
# Dependency directories
51+
jspm_packages/
52+
53+
# TypeScript v1 declaration files
54+
typings/
55+
56+
# Optional npm cache directory
57+
.npm
58+
59+
# Optional eslint cache
60+
.eslintcache
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# Serverless directories
72+
.serverless
73+
74+
# IDE / Editor
75+
.idea
76+
77+
# Service worker
78+
sw.*
79+
80+
# macOS
81+
.DS_Store
82+
83+
# Vim swap files
84+
*.swp
85+
86+
# pnpm files
87+
pnpm-lock.yaml
88+
/.npmrc

apps/knossos/.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"singleQuote": true,
5+
"endOfLine": "auto"
6+
}

apps/knossos/.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"prettier.endOfLine": "lf",
3+
"editor.formatOnSave": true
4+
}

0 commit comments

Comments
 (0)