Skip to content

Commit

Permalink
💬 NeilaTools改为verkfi
Browse files Browse the repository at this point in the history
  • Loading branch information
neila-a committed Nov 26, 2023
1 parent 3080538 commit f1ecc0e
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 48 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
<img alt="Social" src="./public/image/social.png" />
</div>

# NeilaTools

![发布](https://img.shields.io/github/v/release/neila-a/NeilaTools?include_prereleases&style=for-the-badge)
![打开问题](https://img.shields.io/github/issues-raw/neila-a/NeilaTools?style=for-the-badge)
![关闭问题](https://img.shields.io/github/issues-closed-raw/neila-a/NeilaTools?style=for-the-badge)
![打开拉取](https://img.shields.io/github/issues-pr-raw/neila-a/NeilaTools?style=for-the-badge)
![关闭拉取](https://img.shields.io/github/issues-pr-closed-raw/neila-a/NeilaTools?style=for-the-badge)
![代码大小](https://img.shields.io/github/languages/code-size/neila-a/NeilaTools?style=for-the-badge)
![代码文件数量](https://img.shields.io/github/directory-file-count/neila-a/NeilaTools?style=for-the-badge)
![协议](https://img.shields.io/github/license/neila-a/NeilaTools?style=for-the-badge)
![分叉](https://img.shields.io/github/forks/neila-a/NeilaTools?style=for-the-badge)
![Star](https://img.shields.io/github/stars/neila-a/NeilaTools?style=for-the-badge)
![观看](https://img.shields.io/github/watchers/neila-a/NeilaTools?style=for-the-badge)
![提交](https://img.shields.io/github/commit-activity/w/neila-a/NeilaTools?style=for-the-badge)
![贡献者](https://img.shields.io/github/contributors/neila-a/NeilaTools?style=for-the-badge)
![最后提交](https://img.shields.io/github/last-commit/neila-a/NeilaTools?style=for-the-badge)
![Vercel部署](https://img.shields.io/github/deployments/neila-a/NeilaTools/Production?label=VERCEL&style=for-the-badge)
# verkfi

![发布](https://img.shields.io/github/v/release/neila-a/verkfi?include_prereleases&style=for-the-badge)
![打开问题](https://img.shields.io/github/issues-raw/neila-a/verkfi?style=for-the-badge)
![关闭问题](https://img.shields.io/github/issues-closed-raw/neila-a/verkfi?style=for-the-badge)
![打开拉取](https://img.shields.io/github/issues-pr-raw/neila-a/verkfi?style=for-the-badge)
![关闭拉取](https://img.shields.io/github/issues-pr-closed-raw/neila-a/verkfi?style=for-the-badge)
![代码大小](https://img.shields.io/github/languages/code-size/neila-a/verkfi?style=for-the-badge)
![代码文件数量](https://img.shields.io/github/directory-file-count/neila-a/verkfi?style=for-the-badge)
![协议](https://img.shields.io/github/license/neila-a/verkfi?style=for-the-badge)
![分叉](https://img.shields.io/github/forks/neila-a/verkfi?style=for-the-badge)
![Star](https://img.shields.io/github/stars/neila-a/verkfi?style=for-the-badge)
![观看](https://img.shields.io/github/watchers/neila-a/verkfi?style=for-the-badge)
![提交](https://img.shields.io/github/commit-activity/w/neila-a/verkfi?style=for-the-badge)
![贡献者](https://img.shields.io/github/contributors/neila-a/verkfi?style=for-the-badge)
![最后提交](https://img.shields.io/github/last-commit/neila-a/verkfi?style=for-the-badge)
![Vercel部署](https://img.shields.io/github/deployments/neila-a/verkfi/Production?label=VERCEL&style=for-the-badge)

## Introduction - 介绍

Expand All @@ -43,5 +43,5 @@ Neila的一些没用工具的平台。
---

[License - 版权信息](./LICENSE)
[Changelog - 更新日志](https://github.com/neila-a/NeilaTools/releases)
[Changelog - 更新日志](https://github.com/neila-a/verkfi/releases)
[Development - 开发](./CONTRIBUTION.md)
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "neila-tools",
"name": "verkfi",
"version": "1.5.3",
"devVersion": "708",
"devVersion": "716",
"dev": true,
"description": "Platform for Neila's something useless tools.",
"private": true,
"repository": "github:neila-a/NeilaTools",
"repository": "github:neila-a/verkfi",
"bugs": {
"url": "https://github.com/neila-a/NeilaTools/issues",
"url": "https://github.com/neila-a/verkfi/issues",
"email": "neilaspace@outlook.com"
},
"author": {
Expand Down
8 changes: 4 additions & 4 deletions public/index.webmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeilaTools",
"short_name": "NeilaTools",
"name": "verkfi",
"short_name": "verkfi",
"description": "Platform for Neila's something useless tools.",
"start_url": "/",
"display": "fullscreen",
Expand Down Expand Up @@ -49,11 +49,11 @@
],
"protocol_handlers": [
{
"protocol": "web+neilatools",
"protocol": "web+verkfi",
"url": "/handle?handle=%s"
}
],
"id": "neila-tools",
"id": "verkfi",
"display_override": [
"window-controls-overlay",
"fullscreen",
Expand Down
9 changes: 7 additions & 2 deletions src/app/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
showSidebar
} from "./layoutClient";
import stringToBoolean from "./setting/stringToBoolean";
import { useRouter } from "next/navigation";
export default function Menu() {
const control = useContext(showSidebar),
theme = useTheme(),
Expand All @@ -61,6 +62,7 @@ export default function Menu() {
[sortingFor, setSortingFor] = useState<string>("__home__"),
[list, setList] = useState<lists>(getList),
[searchText, setSearchText] = useState<string>(""),
router = useRouter(),
[sortedTools, setSortedTools] = useState(() => getToolsList(realTools)), // 排序完毕,但是不会根据搜索而改动的分类
[tools, setTools] = useState<tool[]>(() => getToolsList(realTools)), // 经常改动的分类
[editing, setEditing] = useState<boolean>(searchText === "");
Expand Down Expand Up @@ -228,13 +230,16 @@ export default function Menu() {
justifyContent: "space-between"
}}>
<Box sx={{
display: "flex"
display: "flex",
cursor: "pointer"
}} onClick={event => {
router.push("/")
}}>
<HandymanIcon />
<Typography sx={{
ml: 1
}}>
NeilaTools
verkfi
</Typography>
</Box>
<Box sx={{
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/headBar/HeadBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function HeadBar(props: HeadBarOption): JSX.Element {
flexGrow: 1,
textAlign: props.isIndex ? "center" : ""
}}>
{props.isIndex ? "NeilaTools" : props.pageName}
{props.isIndex ? "verkfi" : props.pageName}
</Typography>
<showSidebar.Consumer>
{value => !props.isIndex && (
Expand Down Expand Up @@ -136,7 +136,7 @@ export default function HeadBar(props: HeadBarOption): JSX.Element {
right: "0px"
}
}}>
<a href="https://github.com/neila-a/NeilaTools.git" style={props.isIndex ? {
<a href="https://github.com/neila-a/verkfi.git" style={props.isIndex ? {
transform: "rotate(-45deg)",
left: "-40px"
} : {
Expand Down
2 changes: 1 addition & 1 deletion src/app/extendedTools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function ExtendedTools() {
<Box sx={{
p: 3
}} component="article" id="container">
<div id="neilatools_context" dangerouslySetInnerHTML={{
<div id="verkfi_context" dangerouslySetInnerHTML={{
__html: tool.file
}} />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/app/handle/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Handle() {
const searchParams = useSearchParams(),
router = useRouter();
if (searchParams.has("handle")) {
router.push(`/tools/${searchParams.get("handle").replace(/web\+neilatools:\/\//g, "")}`);
router.push(`/tools/${searchParams.get("handle").replace(/web\+verkfi:\/\//g, "")}`);
}
return <Loading />;
}
1 change: 0 additions & 1 deletion src/app/index/Selects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export default function Selects(props: {
if (result.destination.index === result.source.index) {
return;
}
console.log(props.editMode)
if (props.editMode) {
const newLists = reorder(props.list, result.source.index, result.destination.index);
setSetting("lists", "集合列表", JSON.stringify(newLists))
Expand Down
2 changes: 1 addition & 1 deletion src/app/index/SingleTool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function SingleTool(props: {
</Card>
)}
</windows.Consumer>
<CheckDialog open={jumpDialogOpen} description={`${get("确定离开NeilaTools并跳转至")}${jumpName}?`} title={get('离开NeilaTools')} onTrue={() => {
<CheckDialog open={jumpDialogOpen} description={`${get("确定离开verkfi并跳转至")}${jumpName}?`} title={get('离开verkfi')} onTrue={() => {
Router.push(jumpto);
setJumpDialogOpen(false);
}} onFalse={() => {
Expand Down
1 change: 0 additions & 1 deletion src/app/index/ToolsStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default function ToolsStack(props: {
if (result.destination.index === result.source.index) {
return;
}
console.log(props.editMode)
if (props.editMode) {
const newTools = reorder(props.paramTool, result.source.index, result.destination.index);
buttonCommonSorting(props.sortingFor, newTools);
Expand Down
4 changes: 2 additions & 2 deletions src/app/layoutClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
} from "./declare";
import checkOption from "./setting/checkOption";
var logger = new LpLogger({
name: "NeilaTools",
name: "verkfi",
level: "log", // 空字符串时,不显示任何信息
});
export type colorMode = 'light' | 'dark';
Expand Down Expand Up @@ -125,7 +125,7 @@ const registerProtocolHandler = () => {
const url = `${location.origin}/handle?handle=%s`;
if ("registerProtocolHandler" in window.navigator) {
logger.log("检测到此设备可以注册协议");
window.navigator.registerProtocolHandler("web+neilatools", url);
window.navigator.registerProtocolHandler("web+verkfi", url);
} else {
logger.warn("检测到此设备无法注册协议");
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"未找到页面": "Page not found",
"搜索": "Search",
"未找到任何工具": "No tools found",
"离开NeilaTools": "Leave NeilaTools",
"离开verkfi": "Leave verkfi",
"选项": "Options",
"关于": "About",
"重置": "Reset",
Expand Down Expand Up @@ -115,7 +115,7 @@
"设置空间剩余容量": "Free capacity of option space",
"清空设置吗?此操作不可恢复。": "Clear settings? This action cannot be undone.",
"清空": "Clear",
"确定离开NeilaTools并跳转至": "Are you sure you want to leave NeilaTools and go to",
"确定离开verkfi并跳转至": "Are you sure you want to leave verkfi and go to",
"多彩主页": "Colorful Homepage",
"未找到工具": "No tools found",
"添加分类": "Add Tool List",
Expand Down
4 changes: 2 additions & 2 deletions src/app/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"未找到页面": "未找到页面",
"搜索": "搜索",
"未找到任何工具": "未找到任何工具",
"离开NeilaTools": "离开NeilaTools",
"离开verkfi": "离开verkfi",
"选项": "选项",
"关于": "关于",
"重置": "重置",
Expand Down Expand Up @@ -108,7 +108,7 @@
"设置空间剩余容量": "设置空间剩余容量",
"清空设置吗?此操作不可恢复。": "清空设置吗?此操作不可恢复。",
"清空": "清空",
"确定离开NeilaTools并跳转至": "确定离开NeilaTools并跳转至",
"确定离开verkfi并跳转至": "确定离开verkfi并跳转至",
"多彩主页": "多彩主页",
"未找到工具": "未找到工具",
"添加分类": "添加分类",
Expand Down
4 changes: 2 additions & 2 deletions src/app/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"未找到页面": "未找到頁面",
"搜索": "搜索",
"未找到任何工具": "未找到任何工具",
"离开NeilaTools": "離開NeilaTools",
"离开verkfi": "離開verkfi",
"选项": "選項",
"关于": "關於",
"重置": "重設",
Expand Down Expand Up @@ -115,7 +115,7 @@
"设置空间剩余容量": "設置空間賸餘容量",
"清空设置吗?此操作不可恢复。": "清除設置嗎?此操作不可恢復。",
"清空": "清空",
"确定离开NeilaTools并跳转至": "確定離開NeilaTools并跳轉至",
"确定离开verkfi并跳转至": "確定離開verkfi并跳轉至",
"多彩主页": "多彩主頁",
"未找到工具": "未找到工具",
"添加分类": "添加工具清單",
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function Index(props: {
}
return (props.isImplant ? (stringToBoolean(showSidebar.show)) : true) && (
<div ref={ref}>
{props.isImplant !== true && <HeadBar isIndex pageName="NeilaTools" sx={{
{props.isImplant !== true && <HeadBar isIndex pageName="verkfi" sx={{
zIndex: theme => (theme as ThemeHaveZIndex).zIndex.drawer + 1
}} />}
<Sidebar
Expand Down
2 changes: 1 addition & 1 deletion src/app/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import pages from "./pages.json";
"readnumber",
]; */
declare let self: ServiceWorkerGlobalScope;
export const Cache = `NeilaTools-${version}-${dev == true ? `dev${devVersion}` : "prod"}`, // C
export const Cache = `verkfi-${version}-${dev == true ? `dev${devVersion}` : "prod"}`, // C
log = (text: string) => console.log(`%cServiceWorker`, `background: #52c41a;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em`, text),
clearOldCaches = async () => {
const keylist = await caches.keys();
Expand Down
2 changes: 1 addition & 1 deletion src/app/setting/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function About() {
}} />
<Typography variant="h4" sx={{
fontWeight: 300
}}>NeilaTools</Typography>
}}>verkfi</Typography>
</div>
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
{Object.values(abouts).map((item, index) => (
Expand Down
2 changes: 1 addition & 1 deletion src/app/setting/option/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Module(props: {
);
}
const PureDialog = dynamic(() => import("../../components/dialog/PureDialog")),
ghURL = "https://github.com/neila-a/NeilaTools/";
ghURL = "https://github.com/neila-a/verkfi/";
export type option = [Context<any>, string];
export default function Options() {
var lang = useContext(langContext),
Expand Down
2 changes: 1 addition & 1 deletion src/app/tools/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function ToolFinder(props: {
router = useRouter();
logger.info(`toolID为${toolID}`);
if (searchParams.has("handle")) {
let id = searchParams.get("handle").replace(/web\+neilatools:\/\//g, "");
let id = searchParams.get("handle").replace(/web\+verkfi:\/\//g, "");
router.push(id);
}
if (searchParams.has("only")) {
Expand Down

1 comment on commit f1ecc0e

@vercel
Copy link

@vercel vercel bot commented on f1ecc0e Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.