添加i18n文件
This commit is contained in:
parent
437f9ae806
commit
26541df74b
22
src/BasrUrlPanel.ts
Normal file
22
src/BasrUrlPanel.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import { deepMap, type DeepMapStore } from 'nanostores';
|
||||
import 'bulma/bulma.sass';
|
||||
|
||||
export abstract class BasrUrlPanel{
|
||||
private fatherDiv:HTMLDivElement;
|
||||
private basrUrl: string;
|
||||
public initialize(): void{
|
||||
|
||||
}
|
||||
constructor(divId: string, baseUrl: string) {
|
||||
// 尝试获取 DOM 元素并赋值给成员变量
|
||||
const elem = document.getElementById(divId);
|
||||
this.fatherDiv = elem as HTMLDivElement;
|
||||
this.fatherDiv.style.position= 'relative';
|
||||
this.basrUrl = baseUrl;
|
||||
this.initialize();
|
||||
}
|
||||
|
||||
public getFatherDiv(): HTMLDivElement {
|
||||
return this.fatherDiv;
|
||||
}
|
||||
}
|
||||
@ -5,6 +5,7 @@ import { deepMap, type DeepMapStore } from 'nanostores';
|
||||
import { persistentMap } from '@nanostores/persistent';
|
||||
import 'bulma/bulma.sass';
|
||||
import './styles/mystyles.scss'
|
||||
import {BasrUrlPanel} from './BasrUrlPanel'
|
||||
|
||||
export type singleArg={
|
||||
arg: string;
|
||||
|
||||
0
src/locales/en.json
Normal file
0
src/locales/en.json
Normal file
0
src/locales/zh.json
Normal file
0
src/locales/zh.json
Normal file
Loading…
x
Reference in New Issue
Block a user