ow
This commit is contained in:
1 parent
2909e9b0af
commit
936cd3b940
3 files changed
+56
-43
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"prompt" : "template"
|
||||
}
|
||||
@@ -1,30 +1,30 @@
|
||||
{
|
||||
"name": "安全小秘书",
|
||||
"appid": "__UNI__A3FEFA1",
|
||||
"description": "本地 SQLite 密码保险箱,图案密码登录",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
"name" : "安全小秘书",
|
||||
"appid" : "__UNI__A3FEFA1",
|
||||
"description" : "本地 SQLite 密码保险箱,图案密码登录",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules": {
|
||||
"sqlite": {}
|
||||
"modules" : {
|
||||
"sqlite" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute": {
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android": {
|
||||
"permissions": [
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
@@ -40,35 +40,41 @@
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
],
|
||||
"abiFilters" : [ "arm64-v8a", "x86" ]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios": {},
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs": {}
|
||||
"sdkConfigs" : {},
|
||||
"splashscreen" : {
|
||||
"useOriginalMsgbox" : true
|
||||
}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp": {},
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin": {
|
||||
"appid": "",
|
||||
"setting": {
|
||||
"urlCheck": false
|
||||
"mp-weixin" : {
|
||||
"appid" : "",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
},
|
||||
"usingComponents": true
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-alipay": {
|
||||
"usingComponents": true
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"usingComponents": true
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion": "3"
|
||||
}
|
||||
"vueVersion" : "3"
|
||||
}
|
||||
@@ -249,10 +249,14 @@ import { exportBackupFile, shareBackupFile, listBackupFiles, readBackupFile, cle
|
||||
const ADVANCED = '高级';
|
||||
const baseCategories = ['工作', '社交', '金融', '其他'];
|
||||
const loginMode = ref('');
|
||||
// 仅备用密码登录时可见“高级”分类(抵御逼问)
|
||||
const visibleCategories = computed(() =>
|
||||
loginMode.value === 'password' ? [...baseCategories, ADVANCED] : baseCategories,
|
||||
);
|
||||
// 仅备用密码登录时可见“高级”分类(抵御逼问),且排在“其他”之前
|
||||
const visibleCategories = computed(() => {
|
||||
if (loginMode.value !== 'password') return baseCategories;
|
||||
const arr = [...baseCategories];
|
||||
const idx = arr.indexOf('其他');
|
||||
arr.splice(idx < 0 ? arr.length : idx, 0, ADVANCED);
|
||||
return arr;
|
||||
});
|
||||
const categoryOptions = computed(() => ['未分类', ...visibleCategories.value]);
|
||||
const filterOptions = computed(() => ['全部', ...visibleCategories.value]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user