Skip to content

Commit 01c0aef

Browse files
committed
fix typst template
1 parent fba6b25 commit 01c0aef

File tree

6 files changed

+25
-23
lines changed

6 files changed

+25
-23
lines changed

build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const nopMap = '//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj
3434
charset: 'utf8',
3535
sourcemap: process.argv.includes('--debug') ? 'inline' : false,
3636
metafile: true,
37+
external: ['mongodb', 'bson', 'moment-timezone', 'moment'],
3738
plugins: [{
3839
name: 'base16384',
3940
setup(b) {

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@
1616
},
1717
"devDependencies": {
1818
"@expo-google-fonts/noto-sans-sc": "^0.4.1",
19-
"@hydrooj/eslint-config": "^2.0.0",
19+
"@hydrooj/eslint-config": "^2.0.1",
2020
"@hydrooj/register": "^1.0.3",
21-
"@hydrooj/utils": "^1.4.34-beta.3",
21+
"@hydrooj/utils": "^1.4.35",
2222
"@neutralinojs/neu": "^11.4.0",
23-
"@types/node": "^20.17.58",
23+
"@types/lodash": "^4.17.20",
24+
"@types/node": "^20.19.4",
2425
"@yao-pkg/pkg": "^6.5.1",
2526
"chardet": "^2.1.0",
2627
"dejavu-fonts-ttf": "^2.37.3",
27-
"eslint": "^9.28.0",
28-
"eslint-import-resolver-typescript": "^4.4.2",
28+
"eslint": "^9.30.1",
29+
"eslint-import-resolver-typescript": "^4.4.4",
2930
"iconv-lite": "^0.6.3",
31+
"lodash": "^4.17.21",
3032
"postject": "^1.0.0-alpha.6",
3133
"typescript": "5.8.3"
3234
},

packages/machine-setup/frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
},
1111
"dependencies": {
1212
"@neutralinojs/lib": "^6.1.0",
13-
"vue": "^3.5.16"
13+
"vue": "^3.5.17"
1414
},
1515
"devDependencies": {
1616
"@vitejs/plugin-vue": "^5.2.4",
17-
"naive-ui": "^2.41.0",
17+
"naive-ui": "^2.42.0",
1818
"typescript": "5.8.3",
1919
"vite": "^6.3.5",
20-
"vue-tsc": "^2.2.10"
20+
"vue-tsc": "^2.2.12"
2121
}
2222
}

packages/server/client/typst.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class TypstCompilerDriver {
4141

4242
compile(options): Promise<Uint8Array> {
4343
return new Promise<Uint8Array>((resolve) => {
44-
resolve(this.compiler.compile(options.mainFilePath, options.format || 'vector'));
44+
resolve(this.compiler.compile(options.mainFilePath, [], options.format || 'vector'));
4545
});
4646
}
4747

@@ -89,13 +89,13 @@ export function generateTypst(team: string, location: string, filename: string,
8989
paper: "a4",
9090
header: [
9191
#if (location != "") {
92-
text(weight: "black", size: 10pt)[[#location]]
92+
text(weight: "black", size: 10pt)[[#location] ]
9393
}
9494
#fit(name: team)
9595
#linebreak()
9696
filename: #original
9797
#h(1fr)
98-
By Hydro/XCPC-TOOLS | Page #counter(page).display("1 of 1", both: true)
98+
By Hydro/XCPC-TOOLS | Page #context counter(page).display("1 of 1", both: true)
9999
],
100100
)
101101
show raw.where(block: true): code => {

packages/server/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@
1818
"@cordisjs/plugin-logger": "^1.0.1",
1919
"@cordisjs/plugin-timer": "^1.1.1",
2020
"@freedom_sky/esc-pos-encoder": "^5.9.0",
21-
"@hydrooj/framework": "0.2.0-beta.3",
21+
"@hydrooj/framework": "0.2.0",
2222
"@myriaddreamin/typst-ts-web-compiler": "0.6.1-rc1",
2323
"@myteril/node-win-printer": "patch:@myteril/node-win-printer@npm%3A1.1.5#~/.yarn/patches/@myteril-node-win-printer-npm-1.1.5-c62910fcfd.patch",
2424
"base16384": "^1.0.0",
2525
"cordis": "4.0.0-beta.5",
2626
"koa-proxies": "^0.12.4",
27-
"lodash": "^4.17.21",
2827
"nedb-promises": "^6.2.3",
2928
"pdf-lib": "^1.17.1",
3029
"prom-client": "^15.1.3",
3130
"schemastery": "^3.16.1",
3231
"superagent": "^10.2.1",
3332
"unix-print": "^1.3.2",
34-
"ws": "^8.18.2"
33+
"ws": "^8.18.3"
3534
}
3635
}

packages/ui/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
"preferUnplugged": true,
1111
"devDependencies": {
1212
"@hydrooj/xcpc-tools": "workspace:*",
13-
"@mantine/core": "^8.0.2",
14-
"@mantine/form": "^8.0.2",
15-
"@mantine/hooks": "^8.0.2",
16-
"@mantine/modals": "^8.0.2",
17-
"@mantine/notifications": "^8.0.2",
18-
"@mantine/nprogress": "^8.0.2",
13+
"@mantine/core": "^8.1.2",
14+
"@mantine/form": "^8.1.2",
15+
"@mantine/hooks": "^8.1.2",
16+
"@mantine/modals": "^8.1.2",
17+
"@mantine/notifications": "^8.1.2",
18+
"@mantine/nprogress": "^8.1.2",
1919
"@tabler/icons-react": "^3.34.0",
20-
"@tanstack/react-query": "^5.80.6",
20+
"@tanstack/react-query": "^5.81.5",
2121
"@types/react": "^18.3.23",
2222
"@types/react-dom": "^18.3.7",
2323
"css-loader": "^6.11.0",
2424
"esbuild-loader": "^4.3.0",
2525
"mpegts.js": "^1.8.0",
26-
"postcss": "^8.5.4",
26+
"postcss": "^8.5.6",
2727
"postcss-loader": "^7.3.4",
28-
"postcss-preset-mantine": "^1.17.0",
28+
"postcss-preset-mantine": "^1.18.0",
2929
"postcss-simple-vars": "^7.0.1",
3030
"react": "^18.3.1",
3131
"react-dom": "^18.3.1",

0 commit comments

Comments
 (0)