{ // eslint-
maintainerEmail: instance.maintainerEmail,
version: this.config.version,
basedMisskeyVersion: this.config.basedMisskeyVersion,
+ basedCherrypickVersion: this.config.basedCherrypickVersion,
name: instance.name,
shortName: instance.shortName,
uri: this.config.url,
diff --git a/packages/backend/src/server/api/openapi/gen-spec.ts b/packages/backend/src/server/api/openapi/gen-spec.ts
index 40131ca4db..73594f87c7 100644
--- a/packages/backend/src/server/api/openapi/gen-spec.ts
+++ b/packages/backend/src/server/api/openapi/gen-spec.ts
@@ -13,13 +13,13 @@ export function genOpenapiSpec(config: Config, includeSelfRef = false) {
openapi: '3.1.0',
info: {
- version: `${config.version} (${config.basedMisskeyVersion})`,
- title: 'CherryPick API',
+ version: `${config.version} (${config.basedCherrypickVersion}) (${config.basedMisskeyVersion})`,
+ title: 'yojo-art API',
},
externalDocs: {
description: 'Repository',
- url: 'https://github.com/kokonect-link/cherrypick',
+ url: 'https://github.com/yojo-art/cherrypick',
},
servers: [{
@@ -97,7 +97,7 @@ export function genOpenapiSpec(config: Config, includeSelfRef = false) {
description: desc,
externalDocs: {
description: 'Source code',
- url: `https://github.com/kokonect-link/cherrypick/blob/develop/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`,
+ url: `https://github.com/yojo-art/cherrypick/blob/develop/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`,
},
...(endpoint.meta.tags ? {
tags: [endpoint.meta.tags[0]],
diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts
index fdbb2c0169..695df07fcb 100644
--- a/packages/backend/src/server/web/ClientServerService.ts
+++ b/packages/backend/src/server/web/ClientServerService.ts
@@ -275,6 +275,7 @@ export class ClientServerService {
defaultContext: {
version: this.config.version,
basedMisskeyVersion: this.config.basedMisskeyVersion,
+ basedCherrypickVersion: this.config.basedCherrypickVersion,
config: this.config,
},
});
@@ -876,6 +877,7 @@ export class ClientServerService {
return await reply.view('info-card', {
version: this.config.version,
basedMisskeyVersion: this.config.basedMisskeyVersion,
+ basedCherrypickVersion: this.config.basedCherrypickVersion,
host: this.config.host,
meta: this.meta,
originalUsersCount: await this.usersRepository.countBy({ host: IsNull() }),
@@ -888,6 +890,7 @@ export class ClientServerService {
return await reply.view('bios', {
version: this.config.version,
basedMisskeyVersion: this.config.basedMisskeyVersion,
+ basedCherrypickVersion: this.config.basedCherrypickVersion,
});
});
@@ -895,6 +898,7 @@ export class ClientServerService {
return await reply.view('cli', {
version: this.config.version,
basedMisskeyVersion: this.config.basedMisskeyVersion,
+ basedCherrypickVersion: this.config.basedCherrypickVersion,
});
});
diff --git a/packages/backend/src/server/web/boot.embed.js b/packages/backend/src/server/web/boot.embed.js
index c5bc2c0020..ced1a802f4 100644
--- a/packages/backend/src/server/web/boot.embed.js
+++ b/packages/backend/src/server/web/boot.embed.js
@@ -62,6 +62,7 @@
const meta = await metaRes.json();
const v = meta.version;
const basedMisskeyVersion = meta.basedMisskeyVersion;
+ const basedCherrypickVersion = meta.basedCherrypickVersion;
if (v == null) {
renderError('META_FETCH_V');
return;
@@ -71,6 +72,10 @@
renderError('META_FETCH_BASEDMISSKEY_V');
return;
}
+ if (basedCherrypickVersion == null) {
+ renderError('META_FETCH_BASEDCHERRYPICK_V');
+ return;
+ }
// for https://github.com/misskey-dev/misskey/issues/10202
if (lang == null || lang.toString == null || lang.toString() === 'null') {
diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js
index 07ac89ced8..efda54eb5f 100644
--- a/packages/backend/src/server/web/boot.js
+++ b/packages/backend/src/server/web/boot.js
@@ -53,6 +53,7 @@
const meta = await metaRes.json();
const v = meta.version;
const basedMisskeyVersion = meta.basedMisskeyVersion;
+ const basedCherrypickVersion = meta.basedCherrypickVersion;
if (v == null) {
renderError('META_FETCH_V');
return;
@@ -61,6 +62,10 @@
renderError('META_FETCH_BASEDMISSKEY_V');
return;
}
+ if (basedCherrypickVersion == null) {
+ renderError('META_FETCH_BASEDCHERRYPICK_V');
+ return;
+ }
// for https://github.com/misskey-dev/misskey/issues/10202
if (lang == null || lang.toString == null || lang.toString() === 'null') {
diff --git a/packages/backend/src/server/web/views/base-embed.pug b/packages/backend/src/server/web/views/base-embed.pug
index 9dae58dfbf..b80c3f34b5 100644
--- a/packages/backend/src/server/web/views/base-embed.pug
+++ b/packages/backend/src/server/web/views/base-embed.pug
@@ -41,6 +41,7 @@ html(class='embed')
script.
var VERSION = "#{version}";
var BASED_MISSKEY_VERSION = "#{basedMisskeyVersion}";
+ var BASED_CHERRYPICK_VERSION = "#{basedCherrypickVersion}";
var CLIENT_ENTRY = "#{entry.file}";
script(type='application/json' id='cherrypick_meta' data-generated-at=now)
diff --git a/packages/backend/src/server/web/views/base.pug b/packages/backend/src/server/web/views/base.pug
index 2a3d9c09e4..827d4d4913 100644
--- a/packages/backend/src/server/web/views/base.pug
+++ b/packages/backend/src/server/web/views/base.pug
@@ -7,25 +7,25 @@ doctype html
//
-
- _________ .__ __________.__ __
- \_ ___ \| |__ __________________ ___.__.\______ \__| ____ | | __
- / \ \/| | \_/ __ \_ __ \_ __ < | | | ___/ |/ ___\| |/ /
- \ \___| Y \ ___/| | \/| | \/\___ | | | | \ \___| <
- \______ /___| /\___ >__| |__| / ____| |____| |__|\___ >__|_ \
- \/ \/ \/ \/ \/ \/
- Thank you for using CherryPick!
+ _ _
+ _ _ ___ (_) ___ __ _ _ __| |_
+ | | | |/ _ \| |/ _ \ _____ / _` | '__| __|
+ | |_| | (_) | | (_) |_____| (_| | | | |_
+ \__, |\___// |\___/ \__,_|_| \__|
+ |___/ |__/
+ Thank you for using yojo-art!
If you are reading this message... how about joining the development?
- https://github.com/kokonect-link/cherrypick
+ https://github.com/yojo-art/cherrypick
html
head
meta(charset='utf-8')
- meta(name='application-name' content='CherryPick')
+ meta(name='application-name' content='yojo-art')
meta(name='referrer' content='origin')
meta(name='theme-color' content= themeColor || '#ffbcdc')
meta(name='theme-color-orig' content= themeColor || '#ffbcdc')
- meta(property='og:site_name' content= instanceName || 'CherryPick')
+ meta(property='og:site_name' content= instanceName || 'yojo-art')
meta(property='instance_url' content= instanceUrl)
meta(name='viewport' content='width=device-width, initial-scale=1')
meta(name='format-detection' content='telephone=no,date=no,address=no,email=no,url=no')
@@ -69,6 +69,7 @@ html
script.
var VERSION = "#{version}";
var BASED_MISSKEY_VERSION = "#{basedMisskeyVersion}";
+ var BASED_CHERRYPICK_VERSION = "#{basedCherrypickVersion}";
var CLIENT_ENTRY = "#{entry.file}";
script(type='application/json' id='cherrypick_meta' data-generated-at=now)
diff --git a/packages/backend/src/server/web/views/error.pug b/packages/backend/src/server/web/views/error.pug
index da9a648379..62f789a5cc 100644
--- a/packages/backend/src/server/web/views/error.pug
+++ b/packages/backend/src/server/web/views/error.pug
@@ -2,15 +2,15 @@ doctype html
//
-
- _________ .__ __________.__ __
- \_ ___ \| |__ __________________ ___.__.\______ \__| ____ | | __
- / \ \/| | \_/ __ \_ __ \_ __ < | | | ___/ |/ ___\| |/ /
- \ \___| Y \ ___/| | \/| | \/\___ | | | | \ \___| <
- \______ /___| /\___ >__| |__| / ____| |____| |__|\___ >__|_ \
- \/ \/ \/ \/ \/ \/
- Thank you for using CherryPick!
+ _ _
+ _ _ ___ (_) ___ __ _ _ __| |_
+ | | | |/ _ \| |/ _ \ _____ / _` | '__| __|
+ | |_| | (_) | | (_) |_____| (_| | | | |_
+ \__, |\___// |\___/ \__,_|_| \__|
+ |___/ |__/
+ Thank you for using yojo-art!
If you are reading this message... how about joining the development?
- https://github.com/kokonect-link/cherrypick
+ https://github.com/yojo-art/cherrypick
html
@@ -18,12 +18,12 @@ html
head
meta(charset='utf-8')
meta(name='viewport' content='width=device-width, initial-scale=1')
- meta(name='application-name' content='CherryPick')
+ meta(name='application-name' content='yojo-art')
meta(name='referrer' content='origin')
title
block title
- = 'An error has occurred... | CherryPick'
+ = 'An error has occurred... | yojo-art'
style
include ../error.css
diff --git a/packages/backend/test/e2e/nodeinfo.ts b/packages/backend/test/e2e/nodeinfo.ts
index 87134794d2..9e6e7ee2d2 100644
--- a/packages/backend/test/e2e/nodeinfo.ts
+++ b/packages/backend/test/e2e/nodeinfo.ts
@@ -15,7 +15,7 @@ describe('nodeinfo', () => {
assert.strictEqual(res.headers.get('Access-Control-Allow-Origin'), '*');
const nodeInfo = await res.json() as any;
- assert.strictEqual(nodeInfo.software.name, 'cherrypick');
+ assert.strictEqual(nodeInfo.software.name, 'yojo-art');
});
test('nodeinfo 2.0', async () => {
@@ -24,6 +24,6 @@ describe('nodeinfo', () => {
assert.strictEqual(res.headers.get('Access-Control-Allow-Origin'), '*');
const nodeInfo = await res.json() as any;
- assert.strictEqual(nodeInfo.software.name, 'cherrypick');
+ assert.strictEqual(nodeInfo.software.name, 'yojo-art');
});
});
diff --git a/packages/cherrypick-js/CONTRIBUTING.md b/packages/cherrypick-js/CONTRIBUTING.md
index be3232de01..e4ac110d64 100644
--- a/packages/cherrypick-js/CONTRIBUTING.md
+++ b/packages/cherrypick-js/CONTRIBUTING.md
@@ -15,7 +15,7 @@ Issueを作成する前に、以下をご確認ください:
- 重複を防ぐため、既に同様の内容のIssueが作成されていないか検索してから新しいIssueを作ってください。
- Issueを質問に使わないでください。
- Issueは、要望、提案、問題の報告にのみ使用してください。
- - 質問は、[GitHub Discussions](https://github.com/kokonect-link/cherrypick/discussions)や[Discord](https://discord.gg/V8qghB28Aj)でお願いします。
+ - 質問は、[GitHub Discussions](https://github.com/yojo-art/cherrypick/discussions)でお願いします。
## PRの作成
PRを作成する前に、以下をご確認ください:
diff --git a/packages/cherrypick-js/docs/CONTRIBUTING.en.md b/packages/cherrypick-js/docs/CONTRIBUTING.en.md
index 2279d27567..8fb144f7b8 100644
--- a/packages/cherrypick-js/docs/CONTRIBUTING.en.md
+++ b/packages/cherrypick-js/docs/CONTRIBUTING.en.md
@@ -11,7 +11,7 @@ Before creating an issue, please check the following:
- To avoid duplication, please search for similar issues before creating a new issue.
- Do not use Issues as a question.
- Issues should only be used to feature requests, suggestions, and report problems.
- - Please ask questions in [GitHub Discussions](https://github.com/kokonect-link/cherrypick/discussions) or [Discord](https://discord.gg/V8qghB28Aj).
+ - Please ask questions in [GitHub Discussions](https://github.com/yojo-art/cherrypick/discussions).
## Creating a PR
Thank you for your PR! Before creating a PR, please check the following:
diff --git a/packages/cherrypick-js/package.json b/packages/cherrypick-js/package.json
index c222ece482..01db288fdf 100644
--- a/packages/cherrypick-js/package.json
+++ b/packages/cherrypick-js/package.json
@@ -1,9 +1,10 @@
{
"type": "module",
"name": "cherrypick-js",
- "version": "4.13.0-yojo1.2.0",
+ "version": "1.2.0",
"basedMisskeyVersion": "2024.10.1",
- "description": "CherryPick SDK for JavaScript",
+ "basedCherrypickVersion": "4.13.0",
+ "description": "yojo-art SDK for JavaScript",
"license": "MIT",
"main": "./built/index.js",
"types": "./built/index.d.ts",
@@ -35,7 +36,7 @@
},
"repository": {
"type": "git",
- "url": "https://github.com/kokonect-link/cherrypick.git",
+ "url": "https://github.com/yojo-art/cherrypick.git",
"directory": "packages/cherrypick-js"
},
"devDependencies": {
diff --git a/packages/cherrypick-js/src/autogen/types.ts b/packages/cherrypick-js/src/autogen/types.ts
index 4f0d34083e..5d94b88bb7 100644
--- a/packages/cherrypick-js/src/autogen/types.ts
+++ b/packages/cherrypick-js/src/autogen/types.ts
@@ -5355,6 +5355,7 @@ export type components = {
maintainerEmail: string | null;
version: string;
basedMisskeyVersion: string;
+ basedCherrypickVersion: string;
providesTarball: boolean;
name: string | null;
shortName: string | null;
@@ -5366,9 +5367,9 @@ export type components = {
description: string | null;
langs: string[];
tosUrl: string | null;
- /** @default https://github.com/kokonect-link/cherrypick */
+ /** @default https://github.com/yojo-art/cherrypick */
repositoryUrl: string | null;
- /** @default https://github.com/kokonect-link/cherrypick/issues/new */
+ /** @default https://github.com/yojo-art/cherrypick/issues/new */
feedbackUrl: string | null;
statusUrl: string | null;
defaultDarkTheme: string | null;
diff --git a/packages/frontend-embed/@types/global.d.ts b/packages/frontend-embed/@types/global.d.ts
index 2f6fc9e729..6ca7f3c52c 100644
--- a/packages/frontend-embed/@types/global.d.ts
+++ b/packages/frontend-embed/@types/global.d.ts
@@ -8,6 +8,7 @@ type FIXME = any;
declare const _LANGS_: string[][];
declare const _VERSION_: string;
declare const _BASEDMISSKEYVERSION_: string;
+declare const _BASEDCHERRYPICKVERSION_: string;
declare const _ENV_: string;
declare const _DEV_: boolean;
declare const _PERF_PREFIX_: string;
diff --git a/packages/frontend-embed/eslint.config.js b/packages/frontend-embed/eslint.config.js
index 917bd3a82a..33b539a3d5 100644
--- a/packages/frontend-embed/eslint.config.js
+++ b/packages/frontend-embed/eslint.config.js
@@ -34,6 +34,9 @@ export default [
_DATA_TRANSFER_DRIVE_FILE_: false,
_DATA_TRANSFER_DRIVE_FOLDER_: false,
_DATA_TRANSFER_DECK_COLUMN_: false,
+
+ // yojo-art
+ _BASEDCHERRYPICKVERSION_: false,
},
parser,
parserOptions: {
diff --git a/packages/frontend-embed/vite.config.ts b/packages/frontend-embed/vite.config.ts
index f78f0a1a3e..6d7616290d 100644
--- a/packages/frontend-embed/vite.config.ts
+++ b/packages/frontend-embed/vite.config.ts
@@ -110,6 +110,7 @@ export function getConfig(): UserConfig {
define: {
_VERSION_: JSON.stringify(meta.version),
_BASEDMISSKEYVERSION_: JSON.stringify(meta.basedMisskeyVersion),
+ _BASEDCHERRYPICKVERSION_: JSON.stringify(meta.basedCherrypickVersion),
_LANGS_: JSON.stringify(Object.entries(locales).map(([k, v]) => [k, v._lang_])),
_ENV_: JSON.stringify(process.env.NODE_ENV),
_DEV_: process.env.NODE_ENV !== 'production',
diff --git a/packages/frontend-shared/@types/global.d.ts b/packages/frontend-shared/@types/global.d.ts
index 232c12f3bf..9be4882ada 100644
--- a/packages/frontend-shared/@types/global.d.ts
+++ b/packages/frontend-shared/@types/global.d.ts
@@ -9,6 +9,7 @@ type FIXME = any;
declare const _LANGS_: string[][];
declare const _VERSION_: string;
declare const _BASEDMISSKEYVERSION_: string;
+declare const _BASEDCHERRYPICKVERSION_: string;
declare const _ENV_: string;
declare const _DEV_: boolean;
declare const _PERF_PREFIX_: string;
diff --git a/packages/frontend-shared/js/config.ts b/packages/frontend-shared/js/config.ts
index 57095e9ff2..ca76e075d0 100644
--- a/packages/frontend-shared/js/config.ts
+++ b/packages/frontend-shared/js/config.ts
@@ -20,6 +20,7 @@ const preParseLocale = localStorage.getItem('locale');
export let locale: Locale = preParseLocale ? JSON.parse(preParseLocale) : null;
export const version = _VERSION_;
export const basedMisskeyVersion = _BASEDMISSKEYVERSION_;
+export const basedCherrypickVersion = _BASEDCHERRYPICKVERSION_;
export const instanceName = (siteName === 'CherryPick' || siteName == null) ? host : siteName;
export const ui = localStorage.getItem('ui');
export const debug = localStorage.getItem('debug') === 'true';
diff --git a/packages/frontend/.storybook/fakes.ts b/packages/frontend/.storybook/fakes.ts
index ab31b66469..e915aea4f8 100644
--- a/packages/frontend/.storybook/fakes.ts
+++ b/packages/frontend/.storybook/fakes.ts
@@ -23,7 +23,7 @@ export function abuseUserReport() {
};
}
-export function channel(id = 'somechannelid', name = 'Some Channel', bannerUrl: string | null = 'https://github.com/kokonect-link/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true'): entities.Channel {
+export function channel(id = 'somechannelid', name = 'Some Channel', bannerUrl: string | null = 'https://github.com/yojo-art/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true'): entities.Channel {
return {
id,
createdAt: '2016-12-28T22:49:51.000Z',
@@ -105,8 +105,8 @@ export function file(isSensitive = false) {
width: 1024,
height: 270
},
- url: 'https://github.com/kokonect-link/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
- thumbnailUrl: 'https://github.com/kokonect-link/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
+ url: 'https://github.com/yojo-art/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
+ thumbnailUrl: 'https://github.com/yojo-art/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
comment: null,
folderId: null,
folder: null,
@@ -179,7 +179,7 @@ export function federationInstance(): entities.FederationInstance {
maintainerName: '',
maintainerEmail: '',
isSilenced: false,
- iconUrl: 'https://github.com/kokonect-link/cherrypick/blob/master/packages/frontend/assets/about-icon.png?raw=true',
+ iconUrl: 'https://github.com/yojo-art/cherrypick/blob/master/packages/frontend/assets/about-icon.png?raw=true',
faviconUrl: '',
themeColor: '',
infoUpdatedAt: '',
@@ -215,7 +215,7 @@ export function userLite(id = 'someuserid', username = 'cherrypikist', host: ent
host,
name,
onlineStatus: 'unknown',
- avatarUrl: 'https://github.com/kokonect-link/cherrypick/blob/master/packages/frontend/assets/about-icon.png?raw=true',
+ avatarUrl: 'https://github.com/yojo-art/cherrypick/blob/master/packages/frontend/assets/about-icon.png?raw=true',
avatarBlurhash: 'eQFRshof5NWBRi},juayfPju53WB?0ofs;s*a{ofjuay^SoMEJR%ay',
avatarDecorations: [],
emojis: {},
@@ -226,7 +226,7 @@ export function userDetailed(id = 'someuserid', username = 'cherrypikist', host:
return {
...userLite(id, username, host, name),
bannerBlurhash: 'eQA^IW^-MH8w9tE8I=S^o{$*R4RikXtSxutRozjEnNR.RQadoyozog',
- bannerUrl: 'https://github.com/kokonect-link/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
+ bannerUrl: 'https://github.com/yojo-art/cherrypick/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
birthday: '2014-06-20',
createdAt: '2016-12-28T22:49:51.000Z',
description: 'I am a cool user!',
diff --git a/packages/frontend/.storybook/preview-head.html b/packages/frontend/.storybook/preview-head.html
index 2501204a35..a2a067a80c 100644
--- a/packages/frontend/.storybook/preview-head.html
+++ b/packages/frontend/.storybook/preview-head.html
@@ -3,8 +3,8 @@
SPDX-License-Identifier: AGPL-3.0-only
-->
-
-
+
+
${messages.header}
v${_VERSION_}_${_BASEDMISSKEYVERSION_}