Skip to content

Pnpm #1205

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Pnpm #1205

Show file tree
Hide file tree
Changes from all commits
Commits
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
147,392 changes: 0 additions & 147,392 deletions .yarn/releases/yarn-1.22.10.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions .yarnrc

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"name": "webamp-monorepo",
"private": true,
"workspaces": [
"packages/*",
"examples/*"
],
"engines": {
"node": ">=16.0.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/ani-cursor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"prepublish": "tsc"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"@babel/preset-typescript": "^7.12.7",
"typescript": "^4.1.2"
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.20.0",
"typescript": "^4.9.5"
},
"dependencies": {
"byte-data": "18.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import CommonSkinResolver from "./CommonSkinResolver";
import { NodeResolver, toId } from "./NodeResolver";
import ReviewResolver from "./ReviewResolver";
import path from "path";

export default class ClassicSkinResolver
extends CommonSkinResolver
Expand All @@ -10,6 +11,13 @@ export default class ClassicSkinResolver
async id() {
return toId(this.__typename, this.md5());
}
async filename(normalize_extension = false) {
const filename = await this._model.getFileName();
if (normalize_extension) {
return path.parse(filename).name + ".wsz";
}
return filename;
}
museum_url() {
return this._model.getMuseumUrl();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ export default class CommonSkinResolver {
md5() {
return this._model.getMd5();
}
filename() {
return this._model.getFileName();
}

download_url() {
return this._model.getSkinUrl();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import SkinModel from "../../../data/SkinModel";
import CommonSkinResolver from "./CommonSkinResolver";
import { NodeResolver, toId } from "./NodeResolver";
import path from "path";

export default class ModernSkinResolver
extends CommonSkinResolver
Expand All @@ -11,4 +12,11 @@ export default class ModernSkinResolver
async id() {
return toId(this.__typename, this.md5());
}
async filename(normalize_extension = false) {
const filename = await this._model.getFileName();
if (normalize_extension) {
return path.parse(filename).name + ".wal";
}
return filename;
}
}
24 changes: 21 additions & 3 deletions packages/skin-database/api/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ interface Skin {
Filename of skin when uploaded to the Museum. Note: In some cases a skin
has been uploaded under multiple names. Here we just pick one.
"""
filename: String
filename(
"""
If true, the the correct file extension (.wsz or .wal) will be .
Otherwise, the original user-uploaded file extension will be used.
"""
normalize_extension: Boolean = false
): String

"""
Has the skin been tweeted?
Expand Down Expand Up @@ -97,7 +103,13 @@ type ModernSkin implements Skin & Node {
Filename of skin when uploaded to the Museum. Note: In some cases a skin
has been uploaded under multiple names. Here we just pick one.
"""
filename: String
filename(
"""
If true, the the correct file extension (.wsz or .wal) will be .
Otherwise, the original user-uploaded file extension will be used.
"""
normalize_extension: Boolean = false
): String

"""
Has the skin been tweeted?
Expand Down Expand Up @@ -174,7 +186,13 @@ type ClassicSkin implements Skin & Node {
Filename of skin when uploaded to the Museum. Note: In some cases a skin
has been uploaded under multiple names. Here we just pick one.
"""
filename: String
filename(
"""
If true, the the correct file extension (.wsz or .wal) will be .
Otherwise, the original user-uploaded file extension will be used.
"""
normalize_extension: Boolean = false
): String

"""
Text of the readme file extracted from the skin
Expand Down
Loading