@ives_xxz/packages 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AddComponent/main.js +32 -0
- package/AddComponent/package.json +26 -0
- package/AddComponent/panel/index.js +233 -0
- package/AddComponent/readme.md +38 -0
- package/AddComponent/scene-accessor.js +109 -0
- package/AddComponent/template-auto-dock.js +73 -0
- package/BitmapFontTools/i18n/en.js +1 -0
- package/BitmapFontTools/i18n/zh.js +1 -0
- package/BitmapFontTools/main.js +1 -0
- package/BitmapFontTools/package-lock.json +83 -0
- package/BitmapFontTools/package.json +37 -0
- package/BitmapFontTools/panel/font.css +1 -0
- package/BitmapFontTools/panel/font.js +58 -0
- package/BitmapFontTools/panel/font_panel.js +1 -0
- package/BitmapFontTools/panel/ttf.css +1 -0
- package/BitmapFontTools/panel/ttf.js +68 -0
- package/BitmapFontTools/panel/ttf_panel.js +1 -0
- package/FWAssetsFinder/main.js +9 -0
- package/FWAssetsFinder/package.json +20 -0
- package/FWAssetsFinder/panel/index.css +2 -0
- package/FWAssetsFinder/panel/index.html +52 -0
- package/FWAssetsFinder/panel/index.js +265 -0
- package/FWAssetsFinder/panel/less.css +71 -0
- package/FWAssetsFinder/panel/scene.js +194 -0
- package/FWExcelGenerator/main.js +367 -0
- package/FWExcelGenerator/package-lock.json +109 -0
- package/FWExcelGenerator/package.json +23 -0
- package/FWExcelGenerator/panel/index.js +648 -0
- package/FWLayerGenerator/main.js +186 -0
- package/FWLayerGenerator/package.json +21 -0
- package/FWLayerGenerator/panel/index.css +36 -0
- package/FWLayerGenerator/panel/index.html +17 -0
- package/FWLayerGenerator/panel/index.js +29 -0
- package/FWMask/inspector.js +26 -0
- package/FWMask/main.js +16 -0
- package/FWMask/package.json +6 -0
- package/FWPolygonPoints/main.js +149 -0
- package/FWPolygonPoints/package.json +9 -0
- package/PNG Auto Compress/CHANGELOG.md +32 -0
- package/PNG Auto Compress/LICENSE +21 -0
- package/PNG Auto Compress/README.md +113 -0
- package/PNG Auto Compress/config-manager.js +72 -0
- package/PNG Auto Compress/i18n/en.js +14 -0
- package/PNG Auto Compress/i18n/zh.js +14 -0
- package/PNG Auto Compress/images/setting.png +0 -0
- package/PNG Auto Compress/jsconfig.json +1 -0
- package/PNG Auto Compress/main.js +377 -0
- package/PNG Auto Compress/package.json +41 -0
- package/PNG Auto Compress/panel.setting/index.css +13 -0
- package/PNG Auto Compress/panel.setting/index.html +51 -0
- package/PNG Auto Compress/panel.setting/index.js +124 -0
- package/PNG Auto Compress/pngquant/macos/COPYRIGHT +687 -0
- package/PNG Auto Compress/pngquant/macos/README.md +78 -0
- package/PNG Auto Compress/pngquant/macos/pngquant +0 -0
- package/PNG Auto Compress/pngquant/macos/pngquant-compat +0 -0
- package/PNG Auto Compress/pngquant/windows/COPYRIGHT +687 -0
- package/PNG Auto Compress/pngquant/windows/Drag PNG here to reduce palette automatically.bat +11 -0
- package/PNG Auto Compress/pngquant/windows/Drag PNG here to reduce palette to 256.bat +10 -0
- package/PNG Auto Compress/pngquant/windows/README.txt +78 -0
- package/PNG Auto Compress/pngquant/windows/pngquant.exe +0 -0
- package/PNG Auto Compress/typings/cocos/editor.d.ts +1053 -0
- package/PNG Auto Compress/utils/file-utils.js +67 -0
- package/Quick Finder/CHANGELOG.md +100 -0
- package/Quick Finder/LICENSE +21 -0
- package/Quick Finder/README.en.md +141 -0
- package/Quick Finder/README.md +149 -0
- package/Quick Finder/i18n/en.js +42 -0
- package/Quick Finder/i18n/zh.js +42 -0
- package/Quick Finder/images/assets/animation-clip.png +0 -0
- package/Quick Finder/images/assets/asset.png +0 -0
- package/Quick Finder/images/assets/atlas.png +0 -0
- package/Quick Finder/images/assets/audio-clip.png +0 -0
- package/Quick Finder/images/assets/auto-atlas.png +0 -0
- package/Quick Finder/images/assets/bitmap-font.png +0 -0
- package/Quick Finder/images/assets/buffer.png +0 -0
- package/Quick Finder/images/assets/coffeescript.png +0 -0
- package/Quick Finder/images/assets/component.png +0 -0
- package/Quick Finder/images/assets/css.png +0 -0
- package/Quick Finder/images/assets/dragonbones-atlas.png +0 -0
- package/Quick Finder/images/assets/folder.png +0 -0
- package/Quick Finder/images/assets/html.png +0 -0
- package/Quick Finder/images/assets/javascript.png +0 -0
- package/Quick Finder/images/assets/json.png +0 -0
- package/Quick Finder/images/assets/label-atlas.png +0 -0
- package/Quick Finder/images/assets/markdown.png +0 -0
- package/Quick Finder/images/assets/material.png +0 -0
- package/Quick Finder/images/assets/mesh.png +0 -0
- package/Quick Finder/images/assets/mount.png +0 -0
- package/Quick Finder/images/assets/node.png +0 -0
- package/Quick Finder/images/assets/particle.png +0 -0
- package/Quick Finder/images/assets/physics-material.png +0 -0
- package/Quick Finder/images/assets/prefab.png +0 -0
- package/Quick Finder/images/assets/raw-asset.png +0 -0
- package/Quick Finder/images/assets/scene.png +0 -0
- package/Quick Finder/images/assets/shader.png +0 -0
- package/Quick Finder/images/assets/skeleton.png +0 -0
- package/Quick Finder/images/assets/spine.png +0 -0
- package/Quick Finder/images/assets/sprite-animation.png +0 -0
- package/Quick Finder/images/assets/sprite-atlas.png +0 -0
- package/Quick Finder/images/assets/sprite-frame.png +0 -0
- package/Quick Finder/images/assets/text.png +0 -0
- package/Quick Finder/images/assets/tiled-map.png +0 -0
- package/Quick Finder/images/assets/ttf-font.png +0 -0
- package/Quick Finder/images/assets/typescript.png +0 -0
- package/Quick Finder/images/search.png +0 -0
- package/Quick Finder/images/settings.png +0 -0
- package/Quick Finder/images/update.png +0 -0
- package/Quick Finder/images/version.png +0 -0
- package/Quick Finder/jsconfig.json +17 -0
- package/Quick Finder/lib/node-fetch.js +1649 -0
- package/Quick Finder/lib/vue.global.prod.js +7 -0
- package/Quick Finder/package.json +45 -0
- package/Quick Finder/src/common/config-manager.js +122 -0
- package/Quick Finder/src/eazax/browser-util.js +61 -0
- package/Quick Finder/src/eazax/color-util.js +37 -0
- package/Quick Finder/src/eazax/css/cocos-class.css +202 -0
- package/Quick Finder/src/eazax/css/cocos-tag.css +197 -0
- package/Quick Finder/src/eazax/css/eazax-colors.css +18 -0
- package/Quick Finder/src/eazax/editor-main-kit.js +53 -0
- package/Quick Finder/src/eazax/editor-main-util.js +112 -0
- package/Quick Finder/src/eazax/editor-renderer-kit.js +26 -0
- package/Quick Finder/src/eazax/file-util.js +158 -0
- package/Quick Finder/src/eazax/i18n.js +36 -0
- package/Quick Finder/src/eazax/main-event.js +81 -0
- package/Quick Finder/src/eazax/package-util.js +47 -0
- package/Quick Finder/src/eazax/renderer-event.js +80 -0
- package/Quick Finder/src/eazax/updater.js +92 -0
- package/Quick Finder/src/eazax/version-util.js +61 -0
- package/Quick Finder/src/eazax/window-util.js +80 -0
- package/Quick Finder/src/main/finder.js +101 -0
- package/Quick Finder/src/main/index.js +155 -0
- package/Quick Finder/src/main/opener.js +95 -0
- package/Quick Finder/src/main/panel-manager.js +159 -0
- package/Quick Finder/src/renderer/search/index.css +222 -0
- package/Quick Finder/src/renderer/search/index.html +46 -0
- package/Quick Finder/src/renderer/search/index.js +348 -0
- package/Quick Finder/src/renderer/settings/index.css +101 -0
- package/Quick Finder/src/renderer/settings/index.html +86 -0
- package/Quick Finder/src/renderer/settings/index.js +219 -0
- package/Quick Finder/typings/cocos/editor.d.ts +1053 -0
- package/Quick Finder/typings/vue.d.ts +1 -0
- package/README.md +93 -0
- package/package.json +12 -0
- package/unpack plist/main.js +253 -0
- package/unpack plist/package.json +13 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/CHANGELOG.md +30 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/LICENSE +21 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/README.en.md +111 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/README.md +115 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/i18n/en.js +55 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/i18n/zh.js +55 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/images/search.png +0 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/images/settings.png +0 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/images/update.png +0 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/images/version.png +0 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/jsconfig.json +17 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/lib/node-fetch.js +1649 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/lib/vue.global.prod.js +7 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/package.json +44 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/common/config-manager.js +104 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/browser-util.js +61 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/color-util.js +37 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/css/cocos-class.css +201 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/css/cocos-tag.css +197 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/css/eazax-colors.css +18 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/editor-main-kit.js +53 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/editor-main-util.js +147 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/editor-renderer-kit.js +26 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/file-util.js +158 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/i18n.js +36 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/main-event.js +81 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/package-util.js +47 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/renderer-event.js +80 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/updater.js +92 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/version-util.js +61 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/eazax/window-util.js +80 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/editor-api.js +90 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/finder.js +248 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/index.js +155 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/object-util.js +70 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/panel-manager.js +86 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/parser.js +161 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/main/printer.js +108 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/renderer/settings/index.css +61 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/renderer/settings/index.html +90 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/src/renderer/settings/index.js +191 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/typings/cocos/editor.d.ts +1053 -0
- package//345/274/225/347/224/250/346/237/245/346/211/276/345/231/250/typings/vue.d.ts +1 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const Fs = require('fs');
|
|
2
|
+
const Path = require('path');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 文件工具
|
|
6
|
+
* @version 20210520
|
|
7
|
+
*/
|
|
8
|
+
const FileUtils = {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 复制文件/文件夹
|
|
12
|
+
* @param {Fs.PathLike} srcPath 源路径
|
|
13
|
+
* @param {Fs.PathLike} destPath 目标路径
|
|
14
|
+
*/
|
|
15
|
+
copy(srcPath, destPath) {
|
|
16
|
+
if (!Fs.existsSync(srcPath)) return;
|
|
17
|
+
const stats = Fs.statSync(srcPath);
|
|
18
|
+
if (stats.isDirectory()) {
|
|
19
|
+
if (!Fs.existsSync(destPath)) Fs.mkdirSync(destPath);
|
|
20
|
+
const names = Fs.readdirSync(srcPath);
|
|
21
|
+
for (const name of names) {
|
|
22
|
+
this.copy(Path.join(srcPath, name), Path.join(destPath, name));
|
|
23
|
+
}
|
|
24
|
+
} else if (stats.isFile()) {
|
|
25
|
+
Fs.writeFileSync(destPath, Fs.readFileSync(srcPath));
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 删除文件/文件夹
|
|
31
|
+
* @param {Fs.PathLike} path 路径
|
|
32
|
+
*/
|
|
33
|
+
delete(path) {
|
|
34
|
+
if (!Fs.existsSync(path)) return;
|
|
35
|
+
const stats = Fs.statSync(path);
|
|
36
|
+
if (stats.isDirectory()) {
|
|
37
|
+
const names = Fs.readdirSync(path);
|
|
38
|
+
for (const name of names) {
|
|
39
|
+
this.delete(Path.join(path, name));
|
|
40
|
+
}
|
|
41
|
+
Fs.rmdirSync(path);
|
|
42
|
+
} else if (stats.isFile()) {
|
|
43
|
+
Fs.unlinkSync(path);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 遍历文件/文件夹并执行函数
|
|
49
|
+
* @param {Fs.PathLike} path 路径
|
|
50
|
+
* @param {(filePath: Fs.PathLike, stat: Fs.Stats) => void} handler 处理函数
|
|
51
|
+
*/
|
|
52
|
+
map(path, handler) {
|
|
53
|
+
if (!Fs.existsSync(path)) return
|
|
54
|
+
const stats = Fs.statSync(path);
|
|
55
|
+
if (stats.isDirectory()) {
|
|
56
|
+
const names = Fs.readdirSync(path);
|
|
57
|
+
for (const name of names) {
|
|
58
|
+
this.map(Path.join(path, name), handler);
|
|
59
|
+
}
|
|
60
|
+
} else if (stats.isFile()) {
|
|
61
|
+
handler(path, stats);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
module.exports = FileUtils;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
## 1.4.0.20210910
|
|
4
|
+
|
|
5
|
+
1. 搜索栏内支持打开脚本和 JSON 等文本文件,可以在设置面板中配置
|
|
6
|
+
2. 优化正则匹配,搜索栏支持特殊符号
|
|
7
|
+
3. 搜索栏以及结果列表添加阴影
|
|
8
|
+
4. 优化搜索 UI 结构,简化选择逻辑
|
|
9
|
+
5. 调整检查更新时机、菜单项增加版本号
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## 1.3.3.20210826
|
|
14
|
+
|
|
15
|
+
1. 代码优化
|
|
16
|
+
2. 兼容性提升
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## 1.3.2.20210821
|
|
21
|
+
|
|
22
|
+
1. 问题修复
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 1.3.1.20210819
|
|
27
|
+
|
|
28
|
+
1. 更新架构
|
|
29
|
+
2. 兼容 2.0.x 至 2.2.x 的编辑器(1.x 未测试)
|
|
30
|
+
3. 升级 vue 至 3.2.4
|
|
31
|
+
4. 兼容性提升
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## 1.3.0.20210815
|
|
36
|
+
|
|
37
|
+
1. 更新架构
|
|
38
|
+
2. 升级 vue 至 3.2.2
|
|
39
|
+
3. 打开场景或预制体时将同时在资源管理器中聚焦
|
|
40
|
+
4. 性能和稳定性提升
|
|
41
|
+
5. 搜索面板样式优化
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## 1.2.2.20210621
|
|
46
|
+
|
|
47
|
+
1. 文件扫描使用 Promise 化异步接口并提供数据更新回调(避免项目文件多时的卡顿)
|
|
48
|
+
2. 修复在全屏模式下的页面展示问题(macOS)
|
|
49
|
+
3. 弃用编辑器提供的 i18n 接口
|
|
50
|
+
4. 自动检查更新延迟执行
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## 1.2.1.20210620
|
|
55
|
+
|
|
56
|
+
1. 修复文件搜索结果中的文件路径在 Windows 平台下没有正确截断 assets 目录的问题
|
|
57
|
+
2. 本扩展的 Cocos Creator 3.x 版本现已发布,未来将与 2.x 版本同步更新
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## 1.2.0.20210619
|
|
62
|
+
|
|
63
|
+
1. 加入自动检查更新机制(默认开启,可在设置面板禁用)
|
|
64
|
+
2. 文件搜索结果增加文件路径展示
|
|
65
|
+
3. 设置面板使用 electron 原生窗口实现
|
|
66
|
+
4. 项目目录结构调整
|
|
67
|
+
5. 菜单中增加「检查更新」选项
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## 1.1.3.20210522
|
|
72
|
+
|
|
73
|
+
1. 搜索栏代码和样式优化
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## 1.1.2.20210520
|
|
78
|
+
|
|
79
|
+
1. 更新搜索栏获取编辑器语言的方式(通过 Url 参数)
|
|
80
|
+
2. 样式代码优化
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## 1.1.1.20210430
|
|
85
|
+
|
|
86
|
+
1. 修复在 2.4.5 版本中,扩展如果安装在局部,关闭搜索栏会引发编辑器闪退的问题(原因未知,现修改为先隐藏再关闭)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## 1.1.0.20210422
|
|
91
|
+
|
|
92
|
+
1. 搜索框位置跟随编辑器变化
|
|
93
|
+
2. 代码结构优化
|
|
94
|
+
3. 输入框占位符不能再被选中
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## 1.0.0.20210402
|
|
99
|
+
|
|
100
|
+
1. 首次发布
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 陈皮皮
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Quick Finder
|
|
2
|
+
|
|
3
|
+
## Introduction
|
|
4
|
+
|
|
5
|
+
[Cocos Creator Editor Extension]
|
|
6
|
+
|
|
7
|
+
**Press the hotkey to open the search bar, enter the file name then you can locate the file immediately, for scenes or prefabs you can open it directly.**
|
|
8
|
+
|
|
9
|
+
> ⚠ Attention
|
|
10
|
+
>
|
|
11
|
+
> Current branch is for **Cocos Creator 2.x**, if you're looking for **Cocos Creator 3.x** version ,please switch to branch `ccc-v3`, Click [here](https://gitee.com/ifaswind/ccc-quick-finder/tree/ccc-v3/) to switch branch immediately.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Open Source
|
|
16
|
+
|
|
17
|
+
This extension is an open source project, here is the git repository: [https://gitee.com/ifaswind/ccc-quick-finder](https://gitee.com/ifaswind/ccc-quick-finder)
|
|
18
|
+
|
|
19
|
+
If you like this project, don't forget to star [](https://gitee.com/ifaswind/ccc-quick-finder/stargazers)!
|
|
20
|
+
|
|
21
|
+
*If you have any usage problems, just create an issue on Gitee or add my WeChat `im_chenpipi` and leave a message.*
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Screenshots
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Environment
|
|
40
|
+
|
|
41
|
+
Platform: Windows、macOS
|
|
42
|
+
|
|
43
|
+
Engine: Cocos Creator 2.x
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Download & Installation
|
|
48
|
+
|
|
49
|
+
### Install from Cocos Store
|
|
50
|
+
|
|
51
|
+
You can find this extension in Cocos Store now, click on *Extension -> Cocos Store* option to open the Cocos Store.
|
|
52
|
+
|
|
53
|
+
Enter "**Quick Finder**" in the search bar, find it and then install it.
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
*Quick Finder:[http://store.cocos.com/app/detail/2745](http://store.cocos.com/app/detail/2745)*
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Download from git repository
|
|
62
|
+
|
|
63
|
+
Click [here](https://gitee.com/ifaswind/ccc-quick-finder/releases) or go to the release panel, download the latest version package of this extension.
|
|
64
|
+
|
|
65
|
+
And then unzip the package:
|
|
66
|
+
|
|
67
|
+
- Windows: Unzip to `C:\Users\${your username}\.CocosCreator\packages\`
|
|
68
|
+
- macOS: Unzip to `~/.CocosCreator/packages/`
|
|
69
|
+
|
|
70
|
+
For example, on my Windows computer, the full path of `main.js` file should be `C:\Users\Shaun\.CocosCreator\packages\ccc-quick-finder\main.js`.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Usage
|
|
75
|
+
|
|
76
|
+
### Search and open scene/prefab
|
|
77
|
+
|
|
78
|
+
1. Press the hotkey (The default is `F1`) or click on *Extension -> Quick Finder -> Search* option to open the search bar.
|
|
79
|
+
|
|
80
|
+
2. Enter the keyword then you'll get a list of results.
|
|
81
|
+
|
|
82
|
+
3. Scroll the mouse wheel to scroll through the list; press the `Up Arrow` or `Down Arrow` to select file; press the `Left Arrow` or `Right Arrow` to locate the current selected file in Assets Panel.
|
|
83
|
+
|
|
84
|
+
4. Find and select your target file, click on it or press `Enter` to open(only for scenes and prefabs) or locate it in Assets Panel(for other files).
|
|
85
|
+
|
|
86
|
+
And then, click on anywhere outside the search bar or press `ESC` to close the search bar.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Settings
|
|
91
|
+
|
|
92
|
+
Click on *Extension -> Quick Finder -> Settings* option to open the setting panel.
|
|
93
|
+
|
|
94
|
+
In the setting panel, you can choose a hotkey(shortcut, for opening the search bar quickly) in preset list, or customize one by yourself.
|
|
95
|
+
|
|
96
|
+
One thing you should know, not every keys/keys-combinations can be used, because some keys/keys-combinations have been used by the system or Cocos Creator.
|
|
97
|
+
|
|
98
|
+
*Accelerator reference: [https://www.electronjs.org/docs/api/accelerator](https://www.electronjs.org/docs/api/accelerator)*
|
|
99
|
+
|
|
100
|
+
🥳 Enjoy!
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## Change log
|
|
105
|
+
|
|
106
|
+
[Releases](https://gitee.com/ifaswind/ccc-quick-finder/releases)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## Dependencies
|
|
111
|
+
|
|
112
|
+
- [cocos-creator](https://github.com/cocos-creator)
|
|
113
|
+
- [electron](https://github.com/electron/electron)
|
|
114
|
+
- [vue](https://github.com/vuejs/vue)
|
|
115
|
+
- [node-fetch](https://github.com/node-fetch/node-fetch)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## License
|
|
120
|
+
|
|
121
|
+
This project is licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# 公众号
|
|
130
|
+
|
|
131
|
+
## 菜鸟小栈
|
|
132
|
+
|
|
133
|
+
😺 我是陈皮皮,一个还在不断学习的游戏开发者,一个热爱分享的 Cocos Star Writer。
|
|
134
|
+
|
|
135
|
+
🎨 这是我的个人公众号,专注但不仅限于游戏开发和前端技术分享。
|
|
136
|
+
|
|
137
|
+
💖 每一篇原创都非常用心,你的关注就是我原创的动力!
|
|
138
|
+
|
|
139
|
+
> Input and output.
|
|
140
|
+
|
|
141
|
+

|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Quick Finder
|
|
2
|
+
|
|
3
|
+
## 介绍
|
|
4
|
+
|
|
5
|
+
[Cocos Creator 编辑器扩展]
|
|
6
|
+
|
|
7
|
+
**按下快捷键打开搜索栏,输入关键字即可快速定位项目中的文件,并且可以快速打开场景和预制体。**
|
|
8
|
+
|
|
9
|
+
> ⚠ 注意
|
|
10
|
+
>
|
|
11
|
+
> 当前分支为 **Cocos Creator 2.x** 版本,**Cocos Creator 3.x** 版本请切换到 `ccc-v3` 分支,点击[这里](https://gitee.com/ifaswind/ccc-quick-finder/tree/ccc-v3/)立即切换。
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 开源
|
|
16
|
+
|
|
17
|
+
本扩展项目完全开源,仓库地址:[https://gitee.com/ifaswind/ccc-quick-finder](https://gitee.com/ifaswind/ccc-quick-finder)
|
|
18
|
+
|
|
19
|
+
如果你觉得这个项目还不错,请不要忘记点 [](https://gitee.com/ifaswind/ccc-quick-finder/stargazers)!
|
|
20
|
+
|
|
21
|
+
*如有使用上的问题,可以在 Gitee 仓库中提 Issue 或者添加我的微信 `im_chenpipi` 并留言。*
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 截图
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## 运行环境
|
|
40
|
+
|
|
41
|
+
平台:Windows、macOS
|
|
42
|
+
|
|
43
|
+
引擎:Cocos Creator 2.x
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## 下载 & 安装
|
|
48
|
+
|
|
49
|
+
### 扩展商店安装
|
|
50
|
+
|
|
51
|
+
本扩展已上架 Cocos 商店,点击 Cocos Creator 编辑器顶部菜单栏中的 *扩展 -> 扩展商店* 即可打开扩展商店。
|
|
52
|
+
|
|
53
|
+
在上方搜索栏中输入“**Quick Finder**”并搜索就可以找到本插件,点进去直接安装即可(建议安装到全局)。
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
*Quick Finder:[http://store.cocos.com/app/detail/2745](http://store.cocos.com/app/detail/2745)*
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### 自行下载安装
|
|
62
|
+
|
|
63
|
+
在[此处](https://gitee.com/ifaswind/ccc-quick-finder/releases)或仓库发行版处下载最新的扩展压缩包。
|
|
64
|
+
|
|
65
|
+
下载完成后将压缩包解压:
|
|
66
|
+
|
|
67
|
+
- Windows:解压到 `C:\Users\${你的用户名}\.CocosCreator\packages\` 目录下
|
|
68
|
+
- macOS:解压到 `~/.CocosCreator/packages/` 目录下
|
|
69
|
+
|
|
70
|
+
以 Windows 为例,扩展的 `main.js` 文件在我的电脑上的完整目录为 `C:\Users\Shaun\.CocosCreator\packages\ccc-quick-finder\main.js`。
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## 使用说明
|
|
75
|
+
|
|
76
|
+
### 快速搜索并打开场景/预制体
|
|
77
|
+
|
|
78
|
+
1. 按下快捷键(默认为 `F1`)或者点击编辑器顶部菜单栏中的 *扩展 -> Quick Finder -> 搜索* 即可打开搜索栏。
|
|
79
|
+
|
|
80
|
+
2. 在搜索栏中输入关键词就会得到符合条件的结果列表。
|
|
81
|
+
|
|
82
|
+
3. 滑动鼠标滚轮可以滚动结果列表;按下键盘的上下箭头键可以选择文件;按下键盘的左右箭头键可以在(编辑器内的)资源管理器中定位当前选中的文件。
|
|
83
|
+
|
|
84
|
+
4. 找到目标文件后,鼠标点击或者按下回车键即可快速打开(仅场景和预制体)或在资源管理器中定位文件。
|
|
85
|
+
|
|
86
|
+
另外,点击搜索栏外的任意位置或者按下 Esc 按键即可关闭搜索栏。
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### 设置
|
|
91
|
+
|
|
92
|
+
点击编辑器顶部菜单栏中的 *扩展 -> Quick Finder -> 设置* 即可打开扩展的设置面板。
|
|
93
|
+
|
|
94
|
+
在设置面板中你可以更换打开搜索栏的快捷键,也可以自定义一个自己喜欢的快捷键。
|
|
95
|
+
|
|
96
|
+
不过需要注意的是,并非所有的按键都可以使用,因为有些快捷键已被系统或 Cocos Creator 占用。
|
|
97
|
+
|
|
98
|
+
*键盘快捷键参考:[https://www.electronjs.org/docs/api/accelerator](https://www.electronjs.org/docs/api/accelerator)*
|
|
99
|
+
|
|
100
|
+
🥳 Enjoy!
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## 更新日志
|
|
105
|
+
|
|
106
|
+
[发行版](https://gitee.com/ifaswind/ccc-quick-finder/releases)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## 依赖
|
|
111
|
+
|
|
112
|
+
- [cocos-creator](https://github.com/cocos-creator)
|
|
113
|
+
- [electron](https://github.com/electron/electron)
|
|
114
|
+
- [vue](https://github.com/vuejs/vue)
|
|
115
|
+
- [node-fetch](https://github.com/node-fetch/node-fetch)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## 许可
|
|
120
|
+
|
|
121
|
+
本项目使用 [MIT license](https://opensource.org/licenses/MIT) 许可证书。
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# 公众号
|
|
130
|
+
|
|
131
|
+
## 菜鸟小栈
|
|
132
|
+
|
|
133
|
+
😺 我是陈皮皮,一个还在不断学习的游戏开发者,一个热爱分享的 Cocos Star Writer。
|
|
134
|
+
|
|
135
|
+
🎨 这是我的个人公众号,专注但不仅限于游戏开发和前端技术分享。
|
|
136
|
+
|
|
137
|
+
💖 每一篇原创都非常用心,你的关注就是我原创的动力!
|
|
138
|
+
|
|
139
|
+
> Input and output.
|
|
140
|
+
|
|
141
|
+

|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## 游戏开发交流群
|
|
146
|
+
|
|
147
|
+
皮皮创建了一个**游戏开发交流群**,供小伙伴们交流开发经验、问题求助和摸鱼(划掉)。
|
|
148
|
+
|
|
149
|
+
感兴趣的小伙伴可以添加我微信 `im_chenpipi` 并留言 `加群`。
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'name': 'Quick Finder',
|
|
3
|
+
'search': 'Search',
|
|
4
|
+
'settings': 'Settings',
|
|
5
|
+
'checkUpdate': 'Check Update',
|
|
6
|
+
// update
|
|
7
|
+
'currentLatest': 'Currently the latest version!',
|
|
8
|
+
'hasNewVersion': 'New version found!',
|
|
9
|
+
'localVersion': 'Local version: ',
|
|
10
|
+
'latestVersion': 'Latest version: ',
|
|
11
|
+
'releases': 'Releases: https://gitee.com/ifaswind/ccc-quick-finder/releases',
|
|
12
|
+
'cocosStore': 'Cocos Store: http://store.cocos.com/app/detail/2745',
|
|
13
|
+
// main
|
|
14
|
+
'dataError': 'Load assets data failed, please reopen the search bar and try again!',
|
|
15
|
+
// search
|
|
16
|
+
'searchPlaceholder': 'Enter file name...',
|
|
17
|
+
'searchBtn': 'GO',
|
|
18
|
+
// setting
|
|
19
|
+
'openable': 'Openable File Types',
|
|
20
|
+
'openableTooltip': 'Types of file that can be open via search bar.',
|
|
21
|
+
'scene': 'Scene',
|
|
22
|
+
'prefab': 'Prefab',
|
|
23
|
+
'typescript': 'TypeScript',
|
|
24
|
+
'javascript': 'JavaScript',
|
|
25
|
+
'json': 'JSON',
|
|
26
|
+
'markdown': 'Markdown',
|
|
27
|
+
'txt': 'Txt',
|
|
28
|
+
'none': 'None',
|
|
29
|
+
'selectKey': 'Hotkey',
|
|
30
|
+
'selectKeyTooltip': 'Chose a hotkey to open the search bar quickly',
|
|
31
|
+
'customKey': 'Custom',
|
|
32
|
+
'customKeyPlaceholder': 'Choose a hotkey above or customize one by yourself',
|
|
33
|
+
'customKeyTooltip': 'You can also customize your own hotkey',
|
|
34
|
+
'autoCheck': 'Auto Check Update',
|
|
35
|
+
'autoCheckTooltip': 'Check if there is a new version when the extension is loaded',
|
|
36
|
+
'reference': '· Hotkey customization reference: ',
|
|
37
|
+
'accelerator': 'Keyboard Shortcuts',
|
|
38
|
+
'repository': '· Git repository of this extension: ',
|
|
39
|
+
'apply': 'Apply',
|
|
40
|
+
'quoteError': 'Do not use double quotes!',
|
|
41
|
+
'customKeyError': 'Please specify a hotkey!',
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'name': 'Quick Finder',
|
|
3
|
+
'search': '搜索',
|
|
4
|
+
'settings': '设置',
|
|
5
|
+
'checkUpdate': '检查更新',
|
|
6
|
+
// update
|
|
7
|
+
'currentLatest': '当前已是最新版本!',
|
|
8
|
+
'hasNewVersion': '发现新版本!',
|
|
9
|
+
'localVersion': '本地版本:',
|
|
10
|
+
'latestVersion': '最新版本:',
|
|
11
|
+
'releases': '发行版:https://gitee.com/ifaswind/ccc-quick-finder/releases',
|
|
12
|
+
'cocosStore': 'Cocos 商店:http://store.cocos.com/app/detail/2745',
|
|
13
|
+
// main
|
|
14
|
+
'dataError': '资源数据加载失败,请关闭搜索栏后重试!',
|
|
15
|
+
// search
|
|
16
|
+
'searchPlaceholder': '请输入文件名称...',
|
|
17
|
+
'searchBtn': 'GO',
|
|
18
|
+
// settings
|
|
19
|
+
'openable': '快速打开文件类型',
|
|
20
|
+
'openableTooltip': '可以在搜索栏中快速打开的文件类型',
|
|
21
|
+
'scene': '场景',
|
|
22
|
+
'prefab': '预制体',
|
|
23
|
+
'typescript': 'TypeScript',
|
|
24
|
+
'javascript': 'JavaScript',
|
|
25
|
+
'json': 'JSON',
|
|
26
|
+
'markdown': 'Markdown',
|
|
27
|
+
'txt': '文本',
|
|
28
|
+
'none': '无',
|
|
29
|
+
'selectKey': '快捷键',
|
|
30
|
+
'selectKeyTooltip': '选择一个快速打开搜索栏的快捷键',
|
|
31
|
+
'customKey': '自定义',
|
|
32
|
+
'customKeyPlaceholder': '在上方选择一个快捷键或自定义一个快捷键',
|
|
33
|
+
'customKeyTooltip': '自定义快速打开搜索栏的快捷键',
|
|
34
|
+
'autoCheck': '自动检查更新',
|
|
35
|
+
'autoCheckTooltip': '扩展启动时自动检查是否有新版本',
|
|
36
|
+
'reference': '· 快捷键自定义请参考:',
|
|
37
|
+
'accelerator': '键盘快捷键',
|
|
38
|
+
'repository': '· 本扩展的 Git 仓库:',
|
|
39
|
+
'apply': '应用',
|
|
40
|
+
'quoteError': '请勿使用双引号!',
|
|
41
|
+
'customKeyError': '请指定一个快捷键!',
|
|
42
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|