Skip to content

Commit

Permalink
Merge pull request #58 from ipuppet/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ipuppet authored Jun 26, 2024
2 parents 3ddb967 + 0c0672f commit 1a2c4e9
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 44 deletions.
Binary file removed assets/icon/github.com.jpeg
Binary file not shown.
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"info": {
"name": "WAIO",
"version": "1.9.1",
"version": "1.9.2",
"author": "ipuppet",
"types": 1,
"module": false
},
"settings": {
Expand All @@ -13,4 +14,4 @@
"keyboardToolbarEnabled": true,
"rotateDisabled": false
}
}
}
12 changes: 11 additions & 1 deletion scripts/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Compatibility {
}

class VersionActions {
version = 1
version = 2
userVersion = $cache.get("compatibility.version") ?? 0

/**
Expand Down Expand Up @@ -175,6 +175,16 @@ class VersionActions {

this.compatibility.deleteFiles(["storage"])
}

ver2() {
this.compatibility.deleteFiles([
"setting.json",
"dist/CAIO-en.json",
"dist/CAIO-zh-Hans.json",
"dist/CAIO.js",
"assets/icon"
])
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion scripts/libs/easy-jsbox.js

Large diffs are not rendered by default.

57 changes: 17 additions & 40 deletions setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"title": "GENERAL",
"items": [
{
"icon": [
"arrow.2.circlepath",
"#FF9900"
],
"icon": ["arrow.2.circlepath", "#FF9900"],
"title": "UPDATE_HOME_SCREEN_WIDGET_OPTIONS",
"type": "script",
"value": "this.method.updateHomeScreenWidgetOptions"
Expand All @@ -17,18 +14,13 @@
"title": "BACKUP",
"items": [
{
"icon": [
"icloud.and.arrow.up.fill"
],
"icon": ["icloud.and.arrow.up.fill"],
"title": "BACKUP_TO_ICLOUD",
"type": "script",
"value": "this.method.backupToICloud"
},
{
"icon": [
"arrow.clockwise.icloud.fill",
"#FFCC33"
],
"icon": ["arrow.clockwise.icloud.fill", "#FFCC33"],
"title": "RECOVER_FROM_ICLOUD",
"type": "script",
"value": "this.method.recoverFromICloud"
Expand All @@ -38,17 +30,11 @@
{
"items": [
{
"icon": [
"rectangle.topthird.inset.filled",
"#A569BD"
],
"icon": ["rectangle.topthird.inset.filled", "#A569BD"],
"title": "DISPLAY_MODE",
"type": "tab",
"key": "mainUIDisplayMode",
"items": [
"CLASSIC",
"MODERN"
],
"items": ["CLASSIC", "MODERN"],
"value": 0
}
]
Expand All @@ -57,38 +43,29 @@
"title": "ABOUT",
"items": [
{
"icon": [
"/assets/icon/github.com.jpeg",
"white"
],
"icon": ["icon_177", "black"],
"title": "Github",
"type": "info",
"value": [
"ipuppet/WAIO",
"https://github.com/ipuppet/WAIO"
]
"value": ["ipuppet/WAIO", "https://github.com/ipuppet/WAIO"]
},
{
"icon": [
"person.fill",
"#FF9900"
],
"icon": ["icon_172", "#1888bf"],
"title": "Telegram",
"type": "info",
"value": ["JSBoxTG", "https://t.me/JSBoxTG"]
},
{
"icon": ["person.fill", "#FF9900"],
"title": "AUTHOR",
"type": "info",
"value": [
"ipuppet",
"https://blog.ipuppet.top"
]
"value": ["ipuppet", "https://blog.ipuppet.top"]
},
{
"icon": [
"book.fill",
"#A569BD"
],
"icon": ["book.fill", "#A569BD"],
"title": "README",
"type": "script",
"value": "this.method.readme"
}
]
}
]
]

0 comments on commit 1a2c4e9

Please sign in to comment.