generated from frostime/plugin-sample-vite-solidjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
170 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const Storage = {}; | ||
|
||
export const provide = <T>(key: string, value: T) => { | ||
Storage[key] = value; | ||
} | ||
|
||
export const inject = <T>(key: string): T => { | ||
return Storage[key]; | ||
} | ||
|
||
export const purge = (key?: string) => { | ||
if (key) { | ||
delete Storage[key]; | ||
} else { | ||
for (const key in Storage) { | ||
delete Storage[key]; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
interface I18n { | ||
msg: { | ||
ruleFailed: string; | ||
ruleInvalid: string; | ||
itemHasInGroup: string; | ||
itemNotFoundInGroup: string; | ||
groupNameEmpty: string; | ||
}; | ||
itemErr: { | ||
closed: string; | ||
deleted: string; | ||
}; | ||
setting: { | ||
replaceDefault: { | ||
title: string; | ||
description: string; | ||
}; | ||
viewMode: { | ||
title: string; | ||
description: string; | ||
}; | ||
hideClosed: { | ||
title: string; | ||
description: string; | ||
}; | ||
hideDeleted: { | ||
title: string; | ||
description: string; | ||
}; | ||
grouplist: { | ||
title: string; | ||
description: string; | ||
}; | ||
autoRefreshOnExpand: { | ||
title: string; | ||
description: string; | ||
}; | ||
ariaLabel: { | ||
title: string; | ||
description: string; | ||
}; | ||
}; | ||
viewMode: { | ||
bookmark: string; | ||
card: string; | ||
}; | ||
bookmark: { | ||
new: string; | ||
delete: { | ||
title: string; | ||
desc: string; | ||
}; | ||
cache: string; | ||
logo: { | ||
name: string; | ||
setting: string; | ||
add: string; | ||
refresh: string; | ||
expand: string; | ||
collapse: string; | ||
min: string; | ||
}; | ||
}; | ||
group: { | ||
msgexist: string; | ||
msg404: string; | ||
refresh: string; | ||
copyref: string; | ||
copylink: string; | ||
msgcopy: string; | ||
docflow: string; | ||
rename: string; | ||
edit: string; | ||
delete: string; | ||
move: string; | ||
top: string; | ||
up: string; | ||
down: string; | ||
bottom: string; | ||
fromclipboard: string; | ||
msgparse: string; | ||
currentdoc: string; | ||
msgdelconfirm: string[]; | ||
}; | ||
item: { | ||
copyref: string; | ||
copylink: string; | ||
msgcopy: string; | ||
style: string; | ||
transfer: string; | ||
move: string; | ||
top: string; | ||
bottom: string; | ||
del: string; | ||
checkerritem: string; | ||
copyitem: string; | ||
}; | ||
newgroup: { | ||
name: string[]; | ||
type: string[]; | ||
rtype: string[]; | ||
rinput: string; | ||
desc: { | ||
sql: string; | ||
backlinks: string; | ||
attr: string; | ||
}; | ||
choosetemplate: string; | ||
postprocess: { | ||
ariaLabel: string; | ||
name: string; | ||
omit: string; | ||
fb2p: string; | ||
b2doc: string; | ||
}; | ||
}; | ||
bookmarktype: { | ||
normal: string; | ||
dynamic: string; | ||
composed: string; | ||
}; | ||
ruletype: { | ||
sql: string; | ||
backlinks: string; | ||
attr: string; | ||
}; | ||
template: { | ||
sql: { | ||
random: string; | ||
updated: string; | ||
thisday: string; | ||
todo: string; | ||
}; | ||
attr: { | ||
dailynote: string; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters