-
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
14 changed files
with
433 additions
and
462 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
const { SettingChild } = require("../../libs/easy-jsbox") | ||
const webdav = require("./webdav") | ||
|
||
module.exports = new SettingChild({ | ||
icon: "wrench.and.screwdriver", | ||
title: "EXPERIMENTAL" | ||
}).with({ | ||
children: [ | ||
{ | ||
items: [webdav] | ||
} | ||
] | ||
}) |
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,50 @@ | ||
const { SettingSwitch, SettingInput, SettingChild } = require("../../libs/easy-jsbox") | ||
|
||
module.exports = new SettingChild({ | ||
icon: ["cloud", "#FF9900"], | ||
title: "WebDAV" | ||
}).with({ | ||
children: [ | ||
{ | ||
items: [ | ||
new SettingSwitch({ | ||
icon: ["cloud", "#FF9900"], | ||
title: "WebDAV", | ||
key: "webdav.status", | ||
value: false | ||
}) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingInput({ | ||
icon: "link", | ||
title: "HOST", | ||
key: "webdav.host", | ||
value: "" | ||
}), | ||
new SettingInput({ | ||
icon: "person", | ||
title: "USER", | ||
type: "input", | ||
key: "webdav.user", | ||
value: "" | ||
}), | ||
new SettingInput({ | ||
icon: "person.badge.key", | ||
title: "PASSWORD", | ||
type: "input", | ||
key: "webdav.password", | ||
value: "" | ||
}), | ||
new SettingInput({ | ||
icon: "link", | ||
title: "BASEPATH", | ||
type: "input", | ||
key: "webdav.basepath", | ||
value: "" | ||
}) | ||
] | ||
} | ||
] | ||
}) |
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,46 @@ | ||
const { SettingScript, SettingChild } = require("../../libs/easy-jsbox") | ||
|
||
module.exports = new SettingChild({ | ||
icon: ["bolt.circle", "#FF6633"], | ||
title: "ACTIONS" | ||
}).with({ | ||
children: [ | ||
{ | ||
items: [ | ||
new SettingScript({ | ||
icon: ["bolt.circle", "#FF6633"], | ||
title: "IMPORT_EXAMPLE_ACTIONS", | ||
value: "this.method.importExampleAction" | ||
}).with({ | ||
script: "this.method.importExampleAction" | ||
}) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingScript({ | ||
icon: "square.and.arrow.up", | ||
title: "EXPORT" | ||
}).with({ | ||
script: "this.method.exportAction" | ||
}), | ||
new SettingScript({ | ||
icon: ["square.and.arrow.down", "#FFCC33"], | ||
title: "IMPORT" | ||
}).with({ | ||
script: "this.method.importAction" | ||
}) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingScript({ | ||
icon: ["arrow.2.circlepath", "red"], | ||
title: "REBUILD_ACTION_DATABASE" | ||
}).with({ | ||
script: "this.method.rebuildAction" | ||
}) | ||
] | ||
} | ||
] | ||
}) |
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,74 @@ | ||
const { SettingSwitch, SettingScript, SettingNumber, SettingPush, SettingChild } = require("../../libs/easy-jsbox") | ||
|
||
module.exports = new SettingChild({ | ||
icon: ["doc.on.clipboard", "#FFCC66"], | ||
title: "CLIPS" | ||
}).with({ | ||
children: [ | ||
{ | ||
items: [ | ||
new SettingSwitch({ | ||
icon: ["link", "#FF6633"], | ||
title: "UNIVERSAL_CLIPBOARD", | ||
key: "clipboard.universal", | ||
value: true | ||
}), | ||
new SettingScript({ | ||
icon: ["cursorarrow.rays", "#FF6633"], | ||
title: "Tips" | ||
}).with({ | ||
script: "$ui.alert({title:$l10n('UNIVERSAL_CLIPBOARD'),message:$l10n('UNIVERSAL_CLIPBOARD_TIPS')})" | ||
}) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingPush({ | ||
icon: ["trash", "red"], | ||
title: "RECYCLE_BIN", | ||
key: "clipboard.recycleBin" | ||
}).with({ view: "this.method.recycleBin" }) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingNumber({ | ||
icon: ["text.alignleft", "#FFCC66"], | ||
title: "MAX_ITEM_LENGTH", | ||
key: "clipboard.maxItemLength", | ||
value: 100 | ||
}), | ||
new SettingSwitch({ | ||
icon: ["square.and.arrow.down.on.square", "#FF6633"], | ||
title: "AUTO_SAVE", | ||
key: "clipboard.autoSave", | ||
value: true | ||
}) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingScript({ | ||
icon: "square.and.arrow.up", | ||
title: "EXPORT" | ||
}).with({ script: "this.method.exportClipboard" }), | ||
new SettingScript({ | ||
icon: ["square.and.arrow.down", "#FFCC33"], | ||
title: "IMPORT" | ||
}).with({ script: "this.method.importClipboard" }) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingScript({ | ||
icon: ["arrow.2.circlepath", "red"], | ||
title: "REBUILD_DATABASE" | ||
}).with({ script: "this.method.rebuildDatabase" }), | ||
new SettingScript({ | ||
icon: ["trash", "red"], | ||
title: "DELETE_ALL_DATA" | ||
}).with({ script: "this.method.deleteAllData" }) | ||
] | ||
} | ||
] | ||
}) |
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,43 @@ | ||
const { SettingSwitch, SettingInput, SettingNumber, SettingChild } = require("../../libs/easy-jsbox") | ||
|
||
module.exports = new SettingChild({ | ||
icon: ["pencil.circle", "#CC0099"], | ||
title: "EDITOR" | ||
}).with({ | ||
children: [ | ||
{ | ||
title: "CLIPS", | ||
items: [ | ||
new SettingNumber({ | ||
icon: ["wand.and.stars", "#FF6633"], | ||
title: "TEXT_INSETS", | ||
key: "editor.text.insets", | ||
value: 300 | ||
}) | ||
] | ||
}, | ||
{ | ||
title: "CODE", | ||
items: [ | ||
new SettingSwitch({ | ||
icon: ["list.number", "#6699CC"], | ||
title: "SHOW_LINE_NUMBER", | ||
key: "editor.code.lineNumbers", | ||
value: false | ||
}), | ||
new SettingInput({ | ||
icon: ["wand.and.stars", "#FF6633"], | ||
title: "LIGHT_MODE_THEME", | ||
key: "editor.code.lightTheme", | ||
value: "atom-one-light" | ||
}), | ||
new SettingInput({ | ||
icon: ["wand.and.stars", "#FF6633"], | ||
title: "DARK_MODE_THEME", | ||
key: "editor.code.darkTheme", | ||
value: "atom-one-dark" | ||
}) | ||
] | ||
} | ||
] | ||
}) |
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,85 @@ | ||
const { | ||
SettingSwitch, | ||
SettingStepper, | ||
SettingScript, | ||
SettingTab, | ||
SettingNumber, | ||
SettingPush, | ||
SettingChild, | ||
SettingImage | ||
} = require("../../libs/easy-jsbox") | ||
|
||
module.exports = new SettingChild({ | ||
icon: ["keyboard", "#a2a5a6"], | ||
title: "KEYBOARD" | ||
}).with({ | ||
children: [ | ||
{ | ||
items: [ | ||
new SettingPush({ | ||
icon: "rectangle.3.offgrid.fill", | ||
title: "PREVIEW", | ||
key: "keyboard.previewAndHeight", | ||
value: 267 | ||
}).with({ view: "this.method.previewKeyboard" }) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingTab({ | ||
icon: ["rectangle.topthird.inset.filled", "#A569BD"], | ||
title: "DISPLAY_MODE", | ||
key: "keyboard.displayMode", | ||
value: 0 | ||
}).with({ items: ["list", "matrix"] }), | ||
new SettingSwitch({ | ||
icon: ["checkerboard.rectangle", "#1899c4"], | ||
title: "USE_BLUR", | ||
key: "keyboard.blur", | ||
value: false | ||
}), | ||
new SettingImage({ | ||
icon: ["photo", "#FFCC66"], | ||
title: "BACKGROUND_IMAGE", | ||
key: "keyboard.background.image" | ||
}) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingSwitch({ | ||
icon: ["globe", "#1899c4"], | ||
title: "SWITCH_AFTER_INSERT", | ||
key: "keyboard.switchAfterInsert", | ||
value: false | ||
}), | ||
new SettingSwitch({ | ||
icon: ["cursor.rays", "#FF8C00"], | ||
title: "TAPTIC_ENGINE", | ||
key: "keyboard.tapticEngine", | ||
value: true | ||
}), | ||
new SettingStepper({ | ||
icon: ["cursor.rays", "#FF8C00"], | ||
title: "TAPTIC_ENGINE_LEVEL", | ||
key: "keyboard.tapticEngineLevel", | ||
value: 1 | ||
}).with({ min: 0, max: 2 }), | ||
new SettingScript({ | ||
icon: "paperplane", | ||
title: "QUICK_START_SCRIPTS" | ||
}).with({ script: "this.method.setKeyboardQuickStart" }) | ||
] | ||
}, | ||
{ | ||
items: [ | ||
new SettingNumber({ | ||
icon: ["rays", "#FFCC33"], | ||
title: "DELETE_DELAY", | ||
key: "keyboard.deleteDelay", | ||
value: 0.05 | ||
}) | ||
] | ||
} | ||
] | ||
}) |
Oops, something went wrong.