Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyro Integration #2503

Open
wants to merge 864 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
864 commits
Select commit Hold shift + click to select a range
cf8aabf
fix: warn banners
thewander02 Oct 16, 2024
e84318c
Update marketing page, remove app changes, update content page
Geometrically Oct 16, 2024
e1b864f
fix(frontend): fix wave 1
thewander02 Oct 16, 2024
19a98b8
fix: motd
thewander02 Oct 16, 2024
a5adeb0
fix(frontend): fix wave 2, motd, sftp, neoforge, ws auth, kill btn
thewander02 Oct 16, 2024
dc9638b
chore: only show compatible java versions for the given mc version
ferothefox Oct 16, 2024
0ebcf3a
chore: improve empty state for manage servers page
ferothefox Oct 16, 2024
9352b0a
feat: copy SFTP password button
ferothefox Oct 16, 2024
8c2294a
chore: clean
ferothefox Oct 16, 2024
b0cddd8
chore(pyroerror): improve error messages
ferothefox Oct 16, 2024
33e09c6
fix(frontend): sftp for files button 2
thewander02 Oct 16, 2024
9d99b69
feat(frontend): wip player managment
thewander02 Oct 16, 2024
3c4c9e6
fix(frontend): ws auth
thewander02 Oct 16, 2024
c7b2b22
fix(frontend): files
thewander02 Oct 16, 2024
7babe8e
fix(frontend): open pyro in new tab
thewander02 Oct 16, 2024
ac58c8b
fix(frontend): save & restart
he3als Oct 16, 2024
8180e07
chore(frontend textareas): resize y only
he3als Oct 16, 2024
5eb5098
fix(frontend): name length validation
he3als Oct 16, 2024
6c1c816
fix: linting
he3als Oct 16, 2024
d402e39
fix(frontend options): final formatting
he3als Oct 16, 2024
aa1a561
fix(frontend): loader
thewander02 Oct 16, 2024
2ae9d09
fix(frontend): log parser sanitize
thewander02 Oct 16, 2024
499aa60
fix(frontend): remove list
thewander02 Oct 16, 2024
9b6e2ef
fix(frontend): refined sanitization
thewander02 Oct 16, 2024
466f7e2
fix(frontend): server icon pointer
he3als Oct 16, 2024
f0fa377
Merge branch 'main' into pyro
ferothefox Oct 16, 2024
45a326b
chore: cargo
ferothefox Oct 16, 2024
22c4875
fix: only fetch project when upstream is available
ferothefox Oct 16, 2024
4d7b2a0
fix: only allow alphanumeric in server name
ferothefox Oct 16, 2024
fdcfb4e
fix: only allow alphanumeric (with dash, underscore) in custom URLs
ferothefox Oct 16, 2024
2e9e89f
chore: correctly disable buttons in savebanner
ferothefox Oct 16, 2024
13385b5
refactor: use ButtonStyled
ferothefox Oct 16, 2024
ad8e603
chore: correctly disable buttons, again
ferothefox Oct 16, 2024
d4f9ece
chore: add dompurfy types
ferothefox Oct 16, 2024
8e3ceb0
fix: handle when the user has manually scrolled up in terminal
ferothefox Oct 16, 2024
122ece1
chore: allow any server names
ferothefox Oct 16, 2024
8a2fbb2
feat: properties search bar
he3als Oct 16, 2024
2f01178
chore: properties clean
ferothefox Oct 16, 2024
47469f6
fix: correctly handle backup rate limits
ferothefox Oct 16, 2024
7d8a1df
fix: dont hide rinth on empty state
ferothefox Oct 16, 2024
63f056f
feat: bouncy save banner :)
ferothefox Oct 16, 2024
0c4c5d9
feat(frontend): custom dns
thewander02 Oct 16, 2024
24aea4e
fix: loader hydration issues
not-nullptr Oct 16, 2024
6679900
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 16, 2024
0013c7d
refactor: server properties!
ferothefox Oct 16, 2024
a047f91
fix: server name max length
not-nullptr Oct 16, 2024
dcd356b
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 16, 2024
da79c06
fix: max length for server name again
not-nullptr Oct 16, 2024
4aea703
fix: truncate long server names
ferothefox Oct 16, 2024
6781768
fix: max length for subdomain
not-nullptr Oct 16, 2024
c0ae8cc
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 16, 2024
c7d66a7
fix(allocations): name input validation
he3als Oct 16, 2024
7bd9510
fix(frontend): dns clarity & fixes
thewander02 Oct 16, 2024
9426ae9
chore(frontend): delay enabling action buttons after server startup
ferothefox Oct 16, 2024
89a3291
fix: a11y
ferothefox Oct 16, 2024
4681080
fix: a11y
ferothefox Oct 16, 2024
f5b3d02
fix: a11y
ferothefox Oct 16, 2024
d25ffdc
chore: clean
ferothefox Oct 16, 2024
fcd4eed
chore: clean
ferothefox Oct 16, 2024
189cfee
fix(frontend): revert back
thewander02 Oct 17, 2024
c5b29d5
fix(frontend): pluralize Record
thewander02 Oct 17, 2024
7a595d3
feat(frontend): new install error flow, billing fix pt 1
thewander02 Oct 17, 2024
2b785e6
chore: improve pyrofetch error types
ferothefox Oct 17, 2024
858a947
chore(temp): do not redirect to /datapacks on vanilla servers
ferothefox Oct 17, 2024
1473d9f
fix: ????
thewander02 Oct 17, 2024
15b80ff
fix: composeable nesting fix?
thewander02 Oct 17, 2024
280a368
fix(frontend): dns export format
thewander02 Oct 17, 2024
8053a38
chore: delete duplicate pyrofetcherror
ferothefox Oct 17, 2024
e54ace6
fix(frontend): edit allocation name validation
he3als Oct 17, 2024
e8d2452
Revert "fix: modal overflow"
he3als Oct 17, 2024
f264a6b
fix: infinite recursion on loader versions
not-nullptr Oct 17, 2024
732027a
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 17, 2024
1959889
chore: improve installing screen
ferothefox Oct 17, 2024
dd4611e
fix: handle rate limits in reinstall
ferothefox Oct 17, 2024
e1e79c3
fix: add names to loader dropdowns
ferothefox Oct 17, 2024
bf1496b
chore: improve copy
ferothefox Oct 17, 2024
d384cf9
fix: oops
ferothefox Oct 17, 2024
0da1247
chore: select version by default in projectselect
ferothefox Oct 17, 2024
1f85422
chore: improve sftp password tooltip
ferothefox Oct 17, 2024
40c65b2
chore: improve sftp password display
ferothefox Oct 17, 2024
acff3a7
chore: remove deadcode
ferothefox Oct 17, 2024
963453f
feat: context menu on files page
not-nullptr Oct 17, 2024
ea3be8f
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 17, 2024
66c27af
fix(ui): nullcheck popoutmenu
ferothefox Oct 18, 2024
4e51f56
chore: dont throw error for server icon 404
ferothefox Oct 18, 2024
4aee0c9
chore: truncate labels
ferothefox Oct 18, 2024
2321bed
chore: clean file styles
ferothefox Oct 18, 2024
9255144
oops
ferothefox Oct 18, 2024
701c4d9
feat: handle when ws disconnects
ferothefox Oct 18, 2024
70f1651
fix: erroneous reconnecting logic
ferothefox Oct 18, 2024
c24e8a3
chore: raise custom URL minlength limit
ferothefox Oct 18, 2024
fe541d9
fix: uri encode fs delete
ferothefox Oct 18, 2024
a23d24f
fix: get rid of "Something went wrong..." during initial load
ferothefox Oct 18, 2024
eb14d82
feat: add tooltips to server stats
ferothefox Oct 18, 2024
87a19b3
chore: disallow underscores in custom url
ferothefox Oct 18, 2024
580abe8
fix: swapped terminal maximize/minimize icons
ferothefox Oct 18, 2024
96f4057
chore: dont disable kill server action for any reason
ferothefox Oct 18, 2024
d2c5267
refactor: server action buttons
ferothefox Oct 18, 2024
1c7e5a0
fix: types
ferothefox Oct 18, 2024
91cc408
chore: improve copy
ferothefox Oct 18, 2024
d532cb4
chore: fix types
ferothefox Oct 18, 2024
23da73f
chore(perf): register dompurify hooks on pyro mount
ferothefox Oct 18, 2024
46ce5ff
feat: links in console
ferothefox Oct 18, 2024
8ac1fc6
feat: scroll to top when editing
ferothefox Oct 18, 2024
e5bf6c9
chore: remove SFTP Button from File Page
fangmarks Oct 18, 2024
52aa37c
feat(frontend): fix content page pt 1 (WHY IS IT ACTING SO WEIRD)
thewander02 Oct 18, 2024
eb01a93
feat(frontend): ability to reset startup command to default
thewander02 Oct 18, 2024
1415388
feat(frontend): user prefs
thewander02 Oct 18, 2024
0efb2ec
feat(frontend): mrpack button
thewander02 Oct 18, 2024
d75825b
fix(frontend): fixed height blur
thewander02 Oct 18, 2024
610c06f
feat(frontend): various fixes
thewander02 Oct 18, 2024
51d364b
feat(frontend): log sharing
thewander02 Oct 18, 2024
415c43e
fix(frontend): forgor to remove
thewander02 Oct 18, 2024
0b62856
feat: warning graph icons
not-nullptr Oct 18, 2024
97c7407
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 18, 2024
029252e
feat: blurred background for text readability on stats
not-nullptr Oct 18, 2024
23366a4
fix: ts hawk tuahing me
not-nullptr Oct 18, 2024
ef40865
feat(frontend): crash log error suggestions, prefs fix, more disallow…
thewander02 Oct 18, 2024
98b7a00
chore: don't need to show some props when they're unknown
fangmarks Oct 18, 2024
b49e80f
refactor: smoother server installation + error process
ferothefox Oct 18, 2024
b19e1c1
refactor: manage servers page
ferothefox Oct 18, 2024
e8735de
lint
ferothefox Oct 18, 2024
4f98395
chore: datatag
ferothefox Oct 18, 2024
db8407c
fix: grammar mistake
not-nullptr Oct 18, 2024
786dcad
chore: improve copy
ferothefox Oct 18, 2024
7fe9d30
fix: make server stat graphs fullheight
ferothefox Oct 18, 2024
c707d5f
fix: show icon above statgraph
ferothefox Oct 18, 2024
e763e0d
fix: max value for memory
not-nullptr Oct 18, 2024
e157488
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 18, 2024
4d241bc
fix(frontend): typos
he3als Oct 18, 2024
3c37416
fix: fragment nodes warning
ferothefox Oct 18, 2024
7cda3d0
chore: improve copy
ferothefox Oct 18, 2024
ead2390
chore: add minecraft eula agreement
ferothefox Oct 18, 2024
7059b60
fix: overflow on newmodal
ferothefox Oct 18, 2024
e0b2642
fix(reinstall): hide modal
he3als Oct 18, 2024
26c10f3
fix(frontend): hero mobile improvements
he3als Oct 18, 2024
fbcc3ff
fix
ferothefox Oct 19, 2024
6172a4e
Merge remote-tracking branch 'origin/main' into pyro
ferothefox Oct 19, 2024
f7e442f
fix lockfile
ferothefox Oct 19, 2024
a56889e
fix title case issue in server options
Prospector Oct 19, 2024
cf19dd1
fix: test ci
thewander02 Oct 19, 2024
b22236f
chore: prevent sftp button from opening a new tab
fangmarks Oct 19, 2024
82b8460
feat: remove player listing
not-nullptr Oct 19, 2024
1390dbd
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 19, 2024
009066b
fix: linting
not-nullptr Oct 19, 2024
4ffdafc
bump
ferothefox Oct 19, 2024
ad7e525
double bump
ferothefox Oct 19, 2024
5f5af3e
Revert "double bump"
ferothefox Oct 19, 2024
52ba224
feat: somewhat better listing skeleton
not-nullptr Oct 19, 2024
33a5fb9
feat: improve no mod placeholder
not-nullptr Oct 19, 2024
7722c3f
feat: return of the console scrollbar
ferothefox Oct 19, 2024
c2a75b2
Merge branch 'main' into pyro
ferothefox Oct 19, 2024
c37da60
chore: clean
ferothefox Oct 19, 2024
e8805f9
oops
ferothefox Oct 19, 2024
ddd649a
chore: disable selection in fileitem
ferothefox Oct 19, 2024
171fe69
fix: re-enable log editing
ferothefox Oct 19, 2024
e57b3fa
chore: files clean
ferothefox Oct 19, 2024
3e96e50
fix: improve new file validation
ferothefox Oct 19, 2024
0813d57
chore: respect advancedrendering preference in panel terminal
ferothefox Oct 19, 2024
a2a042c
fix: server name truncation
ferothefox Oct 19, 2024
02a3cca
feat: double click to confirm kill
ferothefox Oct 19, 2024
cc4ff6b
fix: root node preferences
ferothefox Oct 19, 2024
bb8ce2e
fix: type billing utils
ferothefox Oct 19, 2024
a251e63
fix: revert pyro billing
ferothefox Oct 19, 2024
364a2ce
refactor: billing
ferothefox Oct 19, 2024
0eb7bd3
chore: actually implement toasts. sorry claude :smilew:
ferothefox Oct 19, 2024
2b1b413
feat: hard reinstalling on loaders
not-nullptr Oct 19, 2024
a3c6099
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 19, 2024
cc5073d
chore: clean
ferothefox Oct 19, 2024
527de9a
refactor: use newModal
ferothefox Oct 19, 2024
fc4189d
fix
ferothefox Oct 19, 2024
ba585be
fix
ferothefox Oct 19, 2024
303f71a
chore: cleanup
ferothefox Oct 19, 2024
e8bf4f8
feat: file sorting, filtering, and search
ferothefox Oct 20, 2024
d0c9fe8
feat: add uptime label
ferothefox Oct 20, 2024
19b8487
chore: make uptime label a11y friendly
ferothefox Oct 20, 2024
5efd649
chore: improve label
ferothefox Oct 20, 2024
9f07987
fix: rename/create file validation logic
ferothefox Oct 20, 2024
e5d94ba
fix: color
ferothefox Oct 20, 2024
e985b9c
chore: improve loading state
ferothefox Oct 20, 2024
724480a
fix: display message when inspector cannot determine a crash cause
ferothefox Oct 20, 2024
5a9fdaf
fix: faulty default state for files sorter
ferothefox Oct 20, 2024
eded34f
fix: reset kill timer on hide
ferothefox Oct 20, 2024
06de314
chore: hide copy ip button
ferothefox Oct 20, 2024
7dce87d
fix: lint
ferothefox Oct 20, 2024
93a26a5
feat: TELEPOPOVER
ferothefox Oct 20, 2024
857c092
chore: use telepopover
ferothefox Oct 20, 2024
5456aac
fix(telepopover): shift focus on hover
ferothefox Oct 20, 2024
ca273c5
fix(pyroserver): only process img on client
ferothefox Oct 20, 2024
9ab408e
refactor(telepopover): fix edge cases, literally
ferothefox Oct 20, 2024
50db09c
feat: sticky files header
ferothefox Oct 20, 2024
dd0f277
chore: clean
ferothefox Oct 20, 2024
8c870d4
chore: clean
ferothefox Oct 20, 2024
663b741
fix: file modal bugs, rename bugs, enter-to-submit
ferothefox Oct 20, 2024
7f0b85c
fix: hide uptime label when server is stopped
ferothefox Oct 20, 2024
83952fc
fix: faded non-blur when advanced rendering is disabled
ferothefox Oct 20, 2024
843758d
fix: edge case where terminal wouldnt scroll to bottom
ferothefox Oct 20, 2024
03dc173
fix: mitigate transition override between dev/prod
ferothefox Oct 20, 2024
c349f29
fix: center server stat icons with title
ferothefox Oct 20, 2024
d7a5f10
fix: isolate server stat z-indeces
ferothefox Oct 20, 2024
d0f4b4e
fix: disparity
ferothefox Oct 20, 2024
c3042ba
fix: savebanner again
ferothefox Oct 20, 2024
b6bb227
rinth tuah mod on that thang
ferothefox Oct 20, 2024
4347996
fix: i concede
ferothefox Oct 20, 2024
5543ad4
fix: case where files with no extension could not be edited
ferothefox Oct 20, 2024
31d192a
fix: tentative fix to file listing
ferothefox Oct 20, 2024
ccc1b5c
fix: so nice we did it thrice, but no longer
ferothefox Oct 20, 2024
7ec01e3
fix: navtabs opacity weirdness
not-nullptr Oct 20, 2024
d1a40d0
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 20, 2024
b991f47
fix: back to nonreactive file header
ferothefox Oct 20, 2024
d92b415
feat: add server button on manage root
ferothefox Oct 20, 2024
ff4edb9
chore: update installation error button copy
ferothefox Oct 20, 2024
4d43aa4
feat: RETURN OF THE (KING) BILLING
ferothefox Oct 20, 2024
2124446
fix: add Since date to server subscription
ferothefox Oct 20, 2024
2e84b77
feat: allow specifying version in `/loader-versions`
not-nullptr Oct 20, 2024
2bd19a0
Merge branch 'pyro' of github.com:/modrinth/code into pyro
not-nullptr Oct 20, 2024
8dff938
chore: shorten uptime label
ferothefox Oct 20, 2024
588b8fe
feat: prevent more broken states for servers, fix: closing modal on r…
not-nullptr Oct 20, 2024
bc4ca4d
fix: files context menu position
not-nullptr Oct 20, 2024
33ea0a0
chore: use $fetch instead of fetch
not-nullptr Oct 21, 2024
f0c1a58
feat: marketing page overhaul pt 1
ferothefox Oct 21, 2024
0fb3189
fix: add servers to navbar + swap position
ferothefox Oct 21, 2024
d89fcce
chore: remove billing from server panel (redirect to Settings)
ferothefox Oct 21, 2024
ab420ed
chore: rounding on server sidebar
ferothefox Oct 21, 2024
2de226a
chore: clean
ferothefox Oct 21, 2024
f16b314
chore: use type-safe addNotification
ferothefox Oct 21, 2024
8430b0e
feat: fixed file manager hero img
ferothefox Oct 21, 2024
ac82ef3
chore: bg color
ferothefox Oct 21, 2024
4025307
fix: font
ferothefox Oct 21, 2024
2a8889a
feat: showModal in servers marketing
ferothefox Oct 21, 2024
99282ef
fix(purchasemodal): if pyro, 2nd step is Billing interval
ferothefox Oct 21, 2024
085b031
fix: improve new server button style
ferothefox Oct 21, 2024
f4b52d1
fix: bad merge
ferothefox Oct 21, 2024
25ac662
fix: cleanup stripe on unmount
ferothefox Oct 21, 2024
1991305
fix: erroneous purchase modal showing logic
ferothefox Oct 21, 2024
7c6a9fc
Merge branch 'main' into pyro
ferothefox Oct 21, 2024
c9e7431
bump
ferothefox Oct 21, 2024
140548a
chore: clean
ferothefox Oct 21, 2024
c3f81c3
fix: submitting allocation modal
ferothefox Oct 21, 2024
efb0dd3
chore: clean
ferothefox Oct 21, 2024
edfd3d8
oops
ferothefox Oct 21, 2024
7d81247
fix: clashing z-indeces again
ferothefox Oct 21, 2024
33ae8d2
Merge branch 'main' into pyro
ferothefox Oct 21, 2024
ee17d43
chore: clean deadcode
ferothefox Oct 22, 2024
ad05e05
chore: clean styles
ferothefox Oct 22, 2024
1defb9c
chore: clean styles
ferothefox Oct 22, 2024
66a851d
chore clean
ferothefox Oct 22, 2024
f44ee1c
chore clean
ferothefox Oct 22, 2024
37c112c
chore: improve ws auth failed copy
ferothefox Oct 22, 2024
9f2c7c4
feat(terminal): bug fixes and performance improvements
ferothefox Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ generated
# app testing dir
app-playground-data/*

# soley because i need the PORT to be 3002 due to WSL stuff
.env
apps/frontend/.env

.astro
4 changes: 1 addition & 3 deletions apps/app/capabilities/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"identifier": "plugins",
"description": "",
"local": true,
"windows": [
"main"
],
"windows": ["main"],
"permissions": [
"dialog:allow-open",
"dialog:allow-confirm",
Expand Down
3,728 changes: 1,394 additions & 2,334 deletions apps/app/gen/schemas/linux-schema.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apps/frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
root: true,
extends: ["../../packages/eslint-config-custom/nuxt.js"],
rules: {
"import/no-unresolved": "off",
},
};
46 changes: 27 additions & 19 deletions apps/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ export default defineNuxtConfig({
$fetch(`${API_URL}search?limit=3&query=leave&index=relevance`, headers),
$fetch(`${API_URL}search?limit=3&query=&index=updated`, headers),
// TODO: dehardcode
$fetch(`${API_URL.replace("/v2/", "/_internal/")}billing/products`, headers),
$fetch(`${STAGING_API_URL.replace("/v2/", "/_internal/")}billing/products`, headers),
// SET TO API_URL WHEN MERGING WITH UPSTREAM
]);

state.categories = categories;
Expand Down Expand Up @@ -321,8 +322,12 @@ export default defineNuxtConfig({
apiBaseUrl: process.env.BASE_URL ?? globalThis.BASE_URL ?? getApiUrl(),
// @ts-ignore
rateLimitKey: process.env.RATE_LIMIT_IGNORE_KEY ?? globalThis.RATE_LIMIT_IGNORE_KEY,
pyroBaseUrl: process.env.PYRO_BASE_URL,
prodOverride: process.env.PROD_OVERRIDE,
public: {
apiBaseUrl: getApiUrl(),
pyroBaseUrl: process.env.PYRO_BASE_URL,
prodOverride: process.env.PROD_OVERRIDE,
siteUrl: getDomain(),
production: isProduction(),
featureFlagOverrides: getFeatureFlagOverrides(),
Expand Down Expand Up @@ -361,7 +366,7 @@ export default defineNuxtConfig({
},
},
},
modules: ["@vintl/nuxt", "@nuxtjs/turnstile"],
modules: ["@vintl/nuxt", "@nuxtjs/turnstile", "@pinia/nuxt"],
vintl: {
defaultLocale: "en-US",
locales: [
Expand Down Expand Up @@ -445,23 +450,26 @@ function getFeatureFlagOverrides() {

function getDomain() {
if (process.env.NODE_ENV === "production") {
if (process.env.SITE_URL) {
return process.env.SITE_URL;
}
// @ts-ignore
else if (process.env.CF_PAGES_URL || globalThis.CF_PAGES_URL) {
// @ts-ignore
return process.env.CF_PAGES_URL ?? globalThis.CF_PAGES_URL;
} else if (process.env.HEROKU_APP_NAME) {
return `https://${process.env.HEROKU_APP_NAME}.herokuapp.com`;
} else if (process.env.VERCEL_URL) {
return `https://${process.env.VERCEL_URL}`;
} else if (getApiUrl() === STAGING_API_URL) {
return "https://staging.modrinth.com";
} else {
return "https://modrinth.com";
}
// if (process.env.SITE_URL) {
// return process.env.SITE_URL;
// }
// // @ts-ignore
// else if (process.env.CF_PAGES_URL || globalThis.CF_PAGES_URL) {
// // @ts-ignore
// return process.env.CF_PAGES_URL ?? globalThis.CF_PAGES_URL;
// } else if (process.env.HEROKU_APP_NAME) {
// return `https://${process.env.HEROKU_APP_NAME}.herokuapp.com`;
// } else if (process.env.VERCEL_URL) {
// return `https://${process.env.VERCEL_URL}`;
// } else if (getApiUrl() === STAGING_API_URL) {
// return "https://staging.modrinth.com";
// } else {
// return "https://modrinth.com";
// }
// TODO: remove on merge
return "https://redacted.modrinth.com";
} else {
return "http://localhost:3000";
const port = process.env.PORT || 3000;
return `http://localhost:${port}`;
}
}
11 changes: 10 additions & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@formatjs/cli": "^6.2.12",
"@nuxt/devtools": "^1.3.3",
"@nuxtjs/turnstile": "^0.8.0",
"@types/dompurify": "^3.0.5",
"@types/node": "^20.1.0",
"@vintl/compact-number": "^2.0.5",
"@vintl/how-ago": "^3.0.1",
Expand All @@ -38,8 +39,13 @@
"@modrinth/assets": "workspace:*",
"@modrinth/ui": "workspace:*",
"@modrinth/utils": "workspace:*",
"@pinia/nuxt": "^0.5.1",
"@vintl/vintl": "^4.4.1",
"@vueuse/core": "^11.1.0",
"ace-builds": "^1.36.2",
"ansi-to-html": "^0.7.2",
"dayjs": "^1.11.7",
"dompurify": "^3.1.7",
"floating-vue": "2.0.0-beta.20",
"fuse.js": "^6.6.2",
"highlight.js": "^11.7.0",
Expand All @@ -48,9 +54,12 @@
"jszip": "^3.10.1",
"markdown-it": "14.1.0",
"pathe": "^1.1.2",
"pinia": "^2.1.7",
"qrcode.vue": "^3.4.0",
"semver": "^7.5.4",
"vue-multiselect": "3.0.0",
"vue-multiselect": "3.0.0-alpha.2",
"vue-typed-virtual-list": "^1.0.10",
"vue3-ace-editor": "^2.2.4",
"vue3-apexcharts": "^1.5.2",
"xss": "^1.0.14"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/frontend/src/assets/images/games/bg-mock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/frontend/src/assets/images/games/maze.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/frontend/src/assets/images/games/rinth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/frontend/src/assets/images/games/waving.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions apps/frontend/src/components/ui/CopyCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
margin: 0;
padding: 0.25rem 0.5rem;
background-color: var(--color-code-bg);
width: min-content;
width: fit-content;
border-radius: 10px;
user-select: text;
transition:
Expand All @@ -55,7 +55,6 @@ export default {
outline 0.2s ease-in-out;

span {
max-width: 10rem;
overflow: hidden;
text-overflow: ellipsis;
}
Expand Down
5 changes: 3 additions & 2 deletions apps/frontend/src/components/ui/NavTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
top: sliderTopPx,
right: sliderRightPx,
bottom: sliderBottomPx,
opacity: sliderLeft === 4 && sliderLeft === sliderRight ? 0 : activeIndex === -1 ? 0 : 1,
// opacity: sliderLeft === 4 && sliderLeft === sliderRight ? 0 : activeIndex === -1 ? 0 : 1,
}"
aria-hidden="true"
></div>
Expand All @@ -38,7 +38,7 @@ interface Tab {
label: string;
href: string;
shown?: boolean;
icon?: string;
icon?: unknown;
subpages?: string[];
}

Expand All @@ -64,6 +64,7 @@ const sliderRightPx = computed(() => `${sliderRight.value}px`);
const sliderBottomPx = computed(() => `${sliderBottom.value}px`);

function pickLink() {
if (route.path.split("/").length < 4) return;
let index = -1;
subpageSelected.value = false;
for (let i = filteredLinks.value.length - 1; i >= 0; i--) {
Expand Down
68 changes: 68 additions & 0 deletions apps/frontend/src/components/ui/servers/ContentItem.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<template>
<div
class="relative flex w-full items-center justify-between rounded-xl bg-bg-raised"
:class="data.disabled ? 'bg-table-alternateRow text-secondary' : ''"
>
<NuxtLink
:to="`/project/${data.project_id}`"
class="group flex w-full items-center rounded-xl p-2"
>
<div class="flex items-center gap-2">
<UiAvatar
:src="data.icon_url"
no-shadow
size="sm"
alt="Server Icon"
:class="data.disabled ? 'grayscale' : ''"
/>
<div class="flex flex-col">
<span class="flex items-center gap-2 text-lg font-bold">
{{ data.name === null ? "External Mod" : data.name }}
<span
v-if="data.disabled"
class="rounded-full bg-button-bg p-1 px-2 text-xs text-contrast"
>
Disabled
</span>
</span>
<span v-if="data.name !== null" class="text-xs text-secondary">
{{ data.version_number }}
</span>
</div>
</div>
</NuxtLink>
<div class="absolute right-2 flex gap-2 rounded-xl p-1 font-semibold text-contrast">
<Button v-if="data.project_id" icon-only transparent @click="emit('edit', data)">
<EditIcon />
</Button>
<Button icon-only transparent @click="emit('delete', data)">
<TrashIcon />
</Button>
<input
id="property.id"
class="switch stylized-toggle"
type="checkbox"
@change="emit('toggle', data)"
/>
</div>
</div>
</template>

<script setup lang="ts">
import { Button } from "@modrinth/ui";
import { EditIcon, TrashIcon } from "@modrinth/assets";

const emit = defineEmits(["toggle", "delete", "edit"]);

defineProps<{
data: {
name?: string;
filename: string;
project_id?: string;
version_id?: string;
version_number?: string;
icon_url?: string;
disabled: boolean;
};
}>();
</script>
Loading
Loading