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 function history & add app darkmode #1289

Merged
merged 3 commits into from
Jun 20, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
120 changes: 47 additions & 73 deletions web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"AddFunction": "New Function",
"Code": "Function Template",
"ConfirmDeploy": "Confirm Deploy",
"ConfirmFetch": "Confirm Fetch",
"CustomDependence": "Custom",
"CustomDependenceTip": "No custom dependencies yet",
"DeleteDependencyConfirm": "Are you sure you want to delete the npm package?",
Expand All @@ -89,7 +88,7 @@
"Deploy": "Deploy",
"DeploySuccess": "Deploy successfully",
"Fetch": "Fetch",
"FetchSuccess": "Fetch successfully",
"FetchSuccess": "Restore successfully",
"Description": "Function Description",
"EditFunction": "Edit Function",
"Function": "Function",
Expand All @@ -114,7 +113,9 @@
"CreateWithAITip": "Create functions with AI assistance",
"CreateNow": "Create Now",
"CreateFromTemplate": "Create from Template",
"getCodeOnline": "Retrieve the latest released online code"
"getCodeOnline": "Retrieve the latest released online code",
"versionHistory": "Version History",
"Restore": "Restore"
},
"HomePanel": {
"APP": "Android or iOS app",
Expand Down Expand Up @@ -349,7 +350,6 @@
"Scan with WeChat": "WeChat scan code payment",
"Order Number": "Order Number",
"payment status": "Payment status",
"Monthly": "Monthly",
"CreateFolder": "New Folder",
"Or": "Or",
"Generating": "Generating",
Expand All @@ -375,7 +375,7 @@
"contact": "Contact",
"start": "Start Now",
"stars": "3.9K",
"funcTemplate": "Function Market",
"funcTemplate": "Function market",
"appMarket": "Application Market"
},
"HomePage": {
Expand Down Expand Up @@ -438,64 +438,6 @@
"LinkCopied": "Link Copied",
"create success": "create success",
"ServerStatus": "STATUS",
"market": {
"explore": "Explore",
"category": "Category",
"appTemplate": "Application Template",
"funcTemplate": "Function Template",
"all": "All",
"market": "Function Market"
},
"Template": {
"useTemplate": "Use Template",
"DeveloperInformation": "Developer Information",
"Sponsor": "Sponsor",
"Function": "Function",
"Dependency": "Dependency",
"EnvironmentVariables": "Environment Variables",
"public": "public",
"private": "private",
"MyTemplate": "MyTemplate",
"SortOrd": "Sort: ",
"CreateTemplate": "Create Template",
"Details": "Details",
"My": "My Template",
"Edit": "Edit",
"Create": "Create",
"CreatedAt": "Created At",
"byTime": "by Time",
"byFavorites": "by Favorites",
"byLikes": "by Likes",
"Description": "Enter function template description",
"updatedAt": "Updated At",
"UsedBy": "Used By",
"Draft": "Draft",
"AddEnvironmentVariables": "Add Environment Variables",
"Total": "Total",
"UsedSuccessfully": "Used Successfully",
"Select the application you want to use": "Select the application you want to use",
"recentUsed": "Recent Used",
"myStar": "My Star",
"myTemplate": "My Template",
"recommend": "Recommend",
"MostRecent": "Most Recent",
"useTemplateSuccess": "Use Template Success",
"cancelStarSuccess": "Cancel Star Success",
"starSuccess": "Star Success",
"FunctionNameExist": "Function Name Exist",
"AllTemplates": "All Templates",
"Community": "Community Template",
"StaredTemplate": "Stared Template",
"Recent": "Recent Template",
"Earliest": "Earliest",
"MostStars": "Most Stars",
"Latest": "Latest",
"Please select template permission": "Please select template permission",
"Please enter template name": "Please enter template name",
"EditTemplate": "Edit Template",
"DeleteTemplate": "Delete Template",
"FunctionListEmpty": "Please add at least one function."
},
"Fee": "Fee",
"PleaseCloseApplicationFirst": "Please close your application first.",
"custom": "Custom",
Expand All @@ -507,22 +449,54 @@
"Send": "Send",
"Stop": "Stop",
"SendMessagePlaceHolder": "Send a message",
"Publish": "Publish",
"MyTemplate": "My Template",
"Create function template success": "Create function template success",
"Update function template success": "Update function template success",
"Templates": {
"My": "My"
},
"application": {
"bonus": "bonus",
"Recharge": "Recharge",
"RecommendedSpecifications": "Recommended Specifications: ",
"ChooseSpecifications": "Choose Specifications",
"autoscaling": "AutoScaling",
"Number of Instances": "Number of Instances",
"targetCPUUtilization": "CPU Utilization",
"CPU Threshold": "CPU Threshold"
},
"Storage Threshold": "Memory Threshold"
}
"Storage Threshold": "Storage Threshold",
"Template": {
"Recent": "Recently Used",
"AddEnvironmentVariables": "Add environment variables",
"Create": "new build",
"CommunityTemplate": "Community Template",
"CreateTemplate": "New template",
"DeleteTemplate": "Delete template",
"CreatedAt": "Created at",
"Dependency": "Dependency",
"Description": "Please enter the function template introduction information",
"Details": "Function details",
"Earliest": "Earliest",
"DeveloperInformation": "Developer information",
"Edit": "Edit",
"EditTemplate": "Edit template",
"EnvironmentVariables": "Environment variable",
"Function": "Function",
"FunctionListEmpty": "Please add at least one function",
"FunctionNameExist": "function name already exists",
"Latest": "Latest",
"MostStars": "Most stars",
"My": "My template",
"MyTemplate": "My template",
"Please enter template name": "Please enter a template name",
"Please select template permission": "Please select a template permission",
"Select the application you want to use": "Choose the app you want to use",
"SortOrd": "Sort by:",
"Sponsor": "support",
"Total": "Total",
"StaredTemplate": "My favorites",
"UsedBy": "Used by",
"private": "private",
"public": "public",
"updatedAt": "Updated at",
"useTemplate": "use template",
"UsedSuccessfully": "Use successfully"
},
"Create function template success": "Create function template successfully",
"Publish": "release",
"Update function template success": "Update function template succeeded"
}
40 changes: 8 additions & 32 deletions web/public/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"AddFunction": "添加函数",
"Code": "函数模板",
"ConfirmDeploy": "确认发布",
"ConfirmFetch": "确认拉取",
"CustomDependence": "自定义依赖",
"CustomDependenceTip": "暂无自定义依赖",
"DeleteDependencyConfirm": "确认要删除该依赖吗?删除依赖后会立即重启应用。",
Expand All @@ -89,7 +88,7 @@
"Deploy": "发布",
"DeploySuccess": "发布成功",
"Fetch": "拉取",
"FetchSuccess": "拉取成功",
"FetchSuccess": "恢复成功",
"Description": "函数描述",
"EditFunction": "编辑函数",
"Function": "函数",
Expand All @@ -114,7 +113,9 @@
"CreateWithAITip": "使用 AI 辅助创建函数",
"CreateNow": "立即创建",
"CreateFromTemplate": "通过模板创建",
"getCodeOnline": "获取线上最新发布的代码"
"getCodeOnline": "获取线上最新发布的代码",
"versionHistory": "历史版本",
"Restore": "恢复"
},
"HomePanel": {
"APP": "Android or iOS 应用",
Expand Down Expand Up @@ -349,7 +350,6 @@
"Scan with WeChat": "微信扫码支付",
"Order Number": "订单号",
"payment status": "支付状态",
"Monthly": "月",
"CreateFolder": "新建文件夹",
"Or": "或",
"Generating": "正在生成",
Expand Down Expand Up @@ -438,14 +438,6 @@
"LinkCopied": "链接复制成功",
"create success": "创建成功",
"ServerStatus": "服务状态",
"market": {
"explore": "探索",
"category": "分类",
"appTemplate": "应用模板",
"funcTemplate": "函数模板",
"all": "全部",
"market": "函数市场"
},
"Template": {
"useTemplate": "使用模板",
"DeveloperInformation": "开发者信息",
Expand All @@ -463,28 +455,15 @@
"Edit": "编辑",
"Create": "新建",
"CreatedAt": "创建于",
"byTime": "按时间",
"byFavorites": "按收藏数",
"byLikes": "按点赞数",
"Description": "请输入函数模板介绍信息",
"updatedAt": "更新于",
"UsedBy": "应用者",
"Draft": "草稿",
"AddEnvironmentVariables": "添加环境变量",
"Total": "总数",
"UsedSuccessfully": "应用成功",
"UsedSuccessfully": "使用成功",
"Select the application you want to use": "选择你要使用的应用",
"recentUsed": "最近使用",
"myStar": "我收藏的",
"myTemplate": "我创建的",
"recommend": "推荐模板",
"MostRecent": "按时间最新",
"useTemplateSuccess": "函数模板使用成功",
"cancelStarSuccess": "取消收藏成功",
"starSuccess": "收藏成功",
"FunctionNameExist": "函数名已存在",
"AllTemplates": "社区模板",
"Community": "社区模板",
"CommunityTemplate": "社区模板",
"StaredTemplate": "我收藏的",
"Recent": "最近使用",
"Earliest": "按时间最早",
Expand All @@ -507,12 +486,8 @@
"Stop": "停止",
"SendMessagePlaceHolder": "提问",
"Publish": "发布",
"MyTemplate": "我的模板",
"Create function template success": "创建函数模板成功",
"Update function template success": "更新函数模板成功",
"Templates": {
"My": "我的模板"
},
"application": {
"bonus": "赠",
"Recharge": "输入金额",
Expand All @@ -522,5 +497,6 @@
"Number of Instances": "实例数",
"CPU Threshold": "CPU 阈值"
},
"Storage Threshold": "内存阈值"
"Storage Threshold": "内存阈值",
"State": "状态"
}
37 changes: 6 additions & 31 deletions web/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"AddFunction": "添加函数",
"Code": "函数模板",
"ConfirmDeploy": "确认发布",
"ConfirmFetch": "确认拉取",
"CustomDependence": "自定义依赖",
"CustomDependenceTip": "暂无自定义依赖",
"DeleteDependencyConfirm": "确认要删除该依赖吗?删除依赖后会立即重启应用。",
Expand All @@ -89,7 +88,7 @@
"Deploy": "发布",
"DeploySuccess": "发布成功",
"Fetch": "拉取",
"FetchSuccess": "拉取成功",
"FetchSuccess": "恢复成功",
"Description": "函数描述",
"EditFunction": "编辑函数",
"Function": "函数",
Expand All @@ -114,7 +113,9 @@
"CreateWithAITip": "使用 AI 辅助创建函数",
"CreateNow": "立即创建",
"CreateFromTemplate": "通过模板创建",
"getCodeOnline": "获取线上最新发布的代码"
"getCodeOnline": "获取线上最新发布的代码",
"versionHistory": "历史版本",
"Restore": "恢复"
},
"HomePanel": {
"APP": "Android or iOS 应用",
Expand Down Expand Up @@ -349,7 +350,6 @@
"Scan with WeChat": "微信扫码支付",
"Order Number": "订单号",
"payment status": "支付状态",
"Monthly": "月",
"CreateFolder": "新建文件夹",
"Or": "或",
"Generating": "正在生成",
Expand Down Expand Up @@ -438,14 +438,6 @@
"LinkCopied": "链接复制成功",
"create success": "创建成功",
"ServerStatus": "服务状态",
"market": {
"explore": "探索",
"category": "分类",
"appTemplate": "应用模板",
"funcTemplate": "函数模板",
"all": "全部",
"market": "函数市场"
},
"Template": {
"useTemplate": "使用模板",
"DeveloperInformation": "开发者信息",
Expand All @@ -463,28 +455,15 @@
"Edit": "编辑",
"Create": "新建",
"CreatedAt": "创建于",
"byTime": "按时间",
"byFavorites": "按收藏数",
"byLikes": "按点赞数",
"Description": "请输入函数模板介绍信息",
"updatedAt": "更新于",
"UsedBy": "应用者",
"Draft": "草稿",
"AddEnvironmentVariables": "添加环境变量",
"Total": "总数",
"UsedSuccessfully": "应用成功",
"UsedSuccessfully": "使用成功",
"Select the application you want to use": "选择你要使用的应用",
"recentUsed": "最近使用",
"myStar": "我收藏的",
"myTemplate": "我创建的",
"recommend": "推荐模板",
"MostRecent": "按时间最新",
"useTemplateSuccess": "函数模板使用成功",
"cancelStarSuccess": "取消收藏成功",
"starSuccess": "收藏成功",
"FunctionNameExist": "函数名已存在",
"AllTemplates": "社区模板",
"Community": "社区模板",
"CommunityTemplate": "社区模板",
"StaredTemplate": "我收藏的",
"Recent": "最近使用",
"Earliest": "按时间最早",
Expand All @@ -508,12 +487,8 @@
"Stop": "停止",
"SendMessagePlaceHolder": "提问",
"Publish": "发布",
"MyTemplate": "我的模板",
"Create function template success": "创建函数模板成功",
"Update function template success": "更新函数模板成功",
"Templates": {
"My": "我的模板"
},
"application": {
"bonus": "赠",
"Recharge": "输入金额",
Expand Down
8 changes: 8 additions & 0 deletions web/src/apis/v1/api-auto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,14 @@ declare namespace Paths {
export type Responses = any;
}

namespace FunctionControllerGetHistory {
export type QueryParameters = any;

export type BodyParameters = any;

export type Responses = any;
}

namespace AuthControllerPat2token {
export type QueryParameters = any;

Expand Down