Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): add bundle note messages #992

Merged
merged 2 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,428 changes: 764 additions & 664 deletions web/package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,46 @@
},
"dependencies": {
"@chakra-ui/anatomy": "^2.1.1",
"@chakra-ui/icons": "^2.0.17",
"@chakra-ui/react": "^2.5.2",
"@chakra-ui/icons": "^2.0.18",
"@chakra-ui/react": "^2.5.5",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@tanstack/react-query": "^4.28.0",
"axios": "^1.3.4",
"clsx": "^1.2.1",
"dayjs": "^1.11.7",
"framer-motion": "^10.8.4",
"framer-motion": "^10.10.0",
"i18next": "^22.4.13",
"i18next-browser-languagedetector": "7.0.1",
"i18next-http-backend": "2.2.0",
"immer": "^9.0.19",
"immer": "^9.0.21",
"laf-client-sdk": "^1.0.0-beta.2",
"lodash": "^4.17.21",
"make-plural": "^7.2.0",
"monaco-editor": "^0.36.1",
"qrcode.react": "^3.1.0",
"react": "18.2.0",
"react-datepicker": "^4.10.0",
"react-datepicker": "^4.11.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.43.7",
"react-hook-form": "^7.43.9",
"react-i18next": "^12.2.0",
"react-icons": "^4.8.0",
"react-router-dom": "^6.9.0",
"react-router-dom": "^6.10.0",
"react-syntax-highlighter": "^15.5.0",
"sass": "^1.59.3",
"sass": "^1.60.0",
"zustand": "^4.3.6"
},
"devDependencies": {
"@types/lodash": "^4.14.191",
"@types/node": "18.15.5",
"@types/react": "^18.0.28",
"@types/lodash": "^4.14.192",
"@types/node": "18.15.11",
"@types/react": "^18.0.31",
"@types/react-datepicker": "^4.10.0",
"@types/react-dom": "^18.0.11",
"@types/react-syntax-highlighter": "^15.5.6",
"@vitejs/plugin-react-swc": "^3.2.0",
"autoprefixer": "^10.4.14",
"click-to-react-component": "^1.0.8",
"eslint": "^8.36.0",
"eslint": "^8.37.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
Expand All @@ -62,8 +62,8 @@
"postcss": "^8.4.21",
"prettier": "^2.8.7",
"prettier-plugin-tailwindcss": "^0.2.6",
"tailwindcss": "^3.2.7",
"typescript": "4.9.5",
"tailwindcss": "^3.3.1",
"typescript": "5.0.3",
"vite": "^4.2.1"
},
"lint-staged": {
Expand All @@ -72,4 +72,4 @@
"prettier --write"
]
}
}
}
28 changes: 14 additions & 14 deletions web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"AddPolicy": "Add Access Policy",
"AddRules": "Add Rule",
"Collection": "Collection",
"CollectionList": "Collection List",
"CollectionName": "Collection Name",
"CollectionList": "Collections",
"CollectionName": "Name",
"CollectionPlaceholder": "Please enter a collection name",
"ConformDelete": "Are you sure to delete this policy?",
"DeleteCollection": "Delete Collection",
Expand Down Expand Up @@ -35,14 +35,14 @@
"CollectionNameRule": "The collection name can only start with a letter and consist of 3 to 32 characters including letters, _ or -"
},
"Add": "Add ",
"AddData": "new data",
"AddData": "Add data",
"AddSuccess": "Added successfully",
"Cancel": "Cancel",
"Close": "Close",
"Confirm": "Confirm",
"Copied": "copied",
"Copy": "copy",
"Create": "new application",
"Create": "New application",
"CreateNow": "Create Now",
"Custom": "customize",
"Days": "days",
Expand All @@ -53,7 +53,7 @@
"Edit": "Edit",
"Empty": "Empty",
"Generate": "generate",
"InputTip": "please enter",
"InputTip": "Please enter",
"IsRequired": " is required",
"LimitSelect": "Please select at least one",
"Logout": "Logout",
Expand All @@ -69,16 +69,16 @@
"moreOperations": "More Operations",
"openPopover": "Click here to open a popover",
"FunctionPanel": {
"AddFunction": "Add Function",
"AddFunction": "New Function",
"Code": "Function Template",
"ConfirmDeploy": "Confirm Deploy",
"CustomDependence": "Custom",
"CustomDependenceTip": "No custom dependencies yet",
"DeleteDependencyConfirm": "Are you sure you want to delete the npm package?",
"Debug": "Run",
"DebugResult": "Run Result",
"DebugResult": "Result",
"DeleteConfirm": "Are you sure you want to delete the function?",
"Dependence": "NPM Dependence",
"Dependence": "Dependence",
"DependenceAdd": "Add Dependencies",
"DependenceEdit": "Edit Dependencies",
"DependenceName": "Dependency Package Name",
Expand All @@ -89,11 +89,11 @@
"Description": "Function Description",
"EditFunction": "Edit Function",
"Function": "Function",
"FunctionList": "Function List",
"FunctionList": "Functions",
"FunctionName": "Function Name",
"FunctionNameTip": "The unique identifier of the function, such as get-user",
"InterfaceDebug": "Interface Debugging",
"Methods": "Request Method",
"InterfaceDebug": "Debug",
"Methods": "Method",
"Name": "KEY",
"Tags": "Tags",
"SearchPlaceholder": "Please enter the function name query",
Expand Down Expand Up @@ -159,9 +159,9 @@
"ID": "ID",
"IDTip": "Please enter a valid ID number",
"Name": "Real name",
"Registered": "Registered Time",
"Registered": "Regist",
"SendCode": "Send Code",
"Tel": "Mobile number",
"Tel": "Mobile",
"TelTip": "Please enter a valid Mobile phone number",
"ToAuth": "Authenticate Now",
"UserInfo": "User Information",
Expand Down Expand Up @@ -202,7 +202,7 @@
"DeleteBucket": "Delete Buckets",
"BucketNameRule": "The bucket name must consist of lowercase letters, numbers and hyphens (-), with a length between 3 and 32 characters, and cannot start or end with a hyphen (-).",
"BucketNamePlaceholder": "bucket-name",
"StorageList": "Cloud Storage List",
"StorageList": "Storages",
"EmptyStorageTip": "You have not created a Bucket",
"UploadFile": "Upload File",
"UploadFolder": "Upload Folder",
Expand Down
4 changes: 2 additions & 2 deletions web/public/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"SearchBucket": "输入 bucket 名进行搜索",
"Size": "大小",
"Storage": "存储",
"StorageList": "云存储列表",
"StorageList": "云存储",
"StorageNameTip": "请输入云存储名称",
"Success": "上传成功",
"Time": "更新时间",
Expand Down Expand Up @@ -333,4 +333,4 @@
"Generating": "正在生成",
"Start": "开始生成",
"TryLafAI": "试试 🎉 Laf AI !"
}
}
4 changes: 2 additions & 2 deletions web/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"SearchBucket": "输入 bucket 名进行搜索",
"Size": "大小",
"Storage": "存储",
"StorageList": "云存储列表",
"StorageList": "云存储",
"StorageNameTip": "请输入云存储名称",
"Success": "上传成功",
"Time": "更新时间",
Expand Down Expand Up @@ -333,4 +333,4 @@
"Generating": "正在生成",
"Start": "开始生成",
"TryLafAI": "试试 🎉 Laf AI !"
}
}
1 change: 1 addition & 0 deletions web/src/apis/typing.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type TBundle = {
state: string;
resource: TResource;
limitCountPerUser: number;
notes: { content: string }[];
subscriptionOptions: TSubscriptionOption[];
};

Expand Down
Loading