Skip to content

Commit

Permalink
💡 rename
Browse files Browse the repository at this point in the history
Signed-off-by: SimonShiki <[email protected]>
  • Loading branch information
SimonShiki committed Nov 11, 2023
1 parent 19b7f13 commit d974af3
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 40 deletions.
14 changes: 7 additions & 7 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"app.home.install": "Install",
"app.home.repo": "GitHub Repo",
"app.home.slogan": "Load your Scratch extensions anywhere.",
"app.home.subdescription1": "Chibi loads extensions by directly injecting them into the Scratch virtual machine, which allows you to use your favorite extensions without being restricted by the editor itself.",
"app.home.subdescription2": "Chibi implements the loader independently, which means extensions have a unified implementation standard rather rely on the editor.",
"app.home.subdescription3": "Chibi adds support for non-sandbox extensions and TurboWarp extensions. This means you can seamlessly sideload these extensions into your projects.",
"app.home.slogan": "Universal Scratch Extension Loader.",
"app.home.subdescription1": "Eureka loads extensions by directly injecting them into the Scratch virtual machine, which allows you to use your favorite extensions without being restricted by the editor itself.",
"app.home.subdescription2": "Eureka implements the loader independently, which means extensions have a unified implementation standard rather rely on the editor.",
"app.home.subdescription3": "Eureka adds support for non-sandbox extensions and TurboWarp extensions. This means you can seamlessly sideload these extensions into your projects.",
"app.home.subtitle1": "Load ANY Scratch extensions in ANY Scratch-based editors.",
"app.home.subtitle2": "Write once, Run everywhere",
"app.home.subtitle3": "Compatible with most popular extension loading methods",
"app.home.title": "Chibi",
"app.name": "Chibi",
"app.home.title": "Eureka",
"app.name": "Eureka",
"app.navigation.gallary": "Extension Gallary",
"app.navigation.home": "Home",
"app.navigation.management": "Manage Extension",
Expand All @@ -22,7 +22,7 @@
"app.settings.extension.noConfirmDialog": "No Confirmation Dialog While Loading Project",
"app.settings.project": "Project",
"app.settings.project.convertProcCall": "Convert Sideload Extension's Blocks Into Procedures Call",
"app.settings.project.sideloadOnly": "Only load extension loaded by Chibi",
"app.settings.project.sideloadOnly": "Only load extension loaded by Eureka",
"app.title.gallary": "Extension Gallary",
"app.title.manage": "Manage Extension",
"app.title.settings": "Settings"
Expand Down
12 changes: 6 additions & 6 deletions locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"app.home.install": "安装",
"app.home.repo": "GitHub 仓库",
"app.home.slogan": "全平台的 Scratch 扩展加载器",
"app.home.subdescription1": "Chibi 通过注入 Scratch 虚拟机的方式加载扩展,这意味着你可以使用自己喜欢的扩展,而不受编辑器本身的限制。",
"app.home.subdescription2": "Chibi 独立实现了扩展加载部分,这意味着扩展有了统一的实现标准,而不依赖于编辑器。",
"app.home.subdescription3": "Chibi 增加了对非沙盒扩展和 TurboWarp 扩展的支持。这意味着您可以将这些扩展无缝侧载到您的项目中。",
"app.home.subdescription1": "Eureka 通过注入 Scratch 虚拟机的方式加载扩展,这意味着你可以使用自己喜欢的扩展,而不受编辑器本身的限制。",
"app.home.subdescription2": "Eureka 独立实现了扩展加载部分,这意味着扩展有了统一的实现标准,而不依赖于编辑器。",
"app.home.subdescription3": "Eureka 增加了对非沙盒扩展和 TurboWarp 扩展的支持。这意味着您可以将这些扩展无缝侧载到您的项目中。",
"app.home.subtitle1": "不讲武德,在任何平台加载你所喜爱的扩展",
"app.home.subtitle2": "一次码,四处行",
"app.home.subtitle3": "兼容主流的扩展加载方式,打破阻碍扩展加载的壁垒",
"app.home.title": "Chibi (琪比)",
"app.name": "Chibi",
"app.home.title": "Eureka",
"app.name": "Eureka",
"app.navigation.gallary": "扩展橱窗",
"app.navigation.home": "首页",
"app.navigation.management": "扩展管理",
Expand All @@ -22,7 +22,7 @@
"app.settings.extension.noConfirmDialog": "不确认加载带侧载扩展的项目",
"app.settings.project": "项目",
"app.settings.project.convertProcCall": "将侧载扩展积木转换为自定义积木",
"app.settings.project.sideloadOnly": "仅加载通过 Chibi 加载的扩展",
"app.settings.project.sideloadOnly": "仅加载通过 Eureka 加载的扩展",
"app.title.gallary": "扩展橱窗",
"app.title.manage": "扩展管理",
"app.title.settings": "设置"
Expand Down
Binary file modified public/carousel/acamp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/carousel/gandi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/carousel/scratch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/carousel/xmw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/chibi.png
Binary file not shown.
1 change: 1 addition & 0 deletions public/eureka.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ export interface ClientInfo {
url: string;
}

interface ChibiDispatchedExtensions {
interface EurekaDispatchedExtensions {
type: 'extension';
extensions: ExtensionInfo[];
}

interface ChibiDispatchedClientInfo {
interface EurekaDispatchedClientInfo {
type: 'handshake';
clientInfo: ClientInfo;
}

interface ChibiDispatchedSettings {
interface EurekaDispatchedSettings {
type: 'settings';
settings: Partial<SettingsInfo>;
}

type ChibiDispatched = ChibiDispatchedSettings | ChibiDispatchedExtensions | ChibiDispatchedClientInfo;
type EurekaDispatched = EurekaDispatchedSettings | EurekaDispatchedExtensions | EurekaDispatchedClientInfo;

const messages = defineMessages({
chibi: {
eureka: {
id: 'app.name',
defaultMessage: 'Chibi',
defaultMessage: 'Eureka',
},
manage: {
id: 'app.title.manage',
Expand All @@ -60,7 +60,7 @@ const messages = defineMessages({
});

const subtitleMap = {
default: messages.chibi,
default: messages.eureka,
manage: messages.manage,
gallary: messages.gallary,
settings: messages.settings
Expand All @@ -78,17 +78,17 @@ function App () {
createEffect(() => {
window.location.hash = page();
if (page() in subtitleMap) {
document.title = `${intl.formatMessage(messages.chibi)} | ${intl.formatMessage(subtitleMap[page() as keyof typeof subtitleMap])}`;
document.title = `${intl.formatMessage(messages.eureka)} | ${intl.formatMessage(subtitleMap[page() as keyof typeof subtitleMap])}`;
} else {
document.title = `${intl.formatMessage(messages.chibi)}`;
document.title = `${intl.formatMessage(messages.eureka)}`;
}
});

onMount(() => {
if (!window.opener) return;
window.addEventListener('message', (event: MessageEvent) => {
if (!('type' in event.data)) return;
switch ((event.data as ChibiDispatched).type) {
switch ((event.data as EurekaDispatched).type) {
case 'handshake':
setClientInfo(event.data.clientInfo);
break;
Expand Down
Loading

0 comments on commit d974af3

Please sign in to comment.