hfs 0.47.1 → 0.47.2
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/admin/assets/{index-181be09e.js → index-ca5ac85e.js} +86 -86
- package/{frontend/assets/sha512-68c37a24.js → admin/assets/sha512-0935647a.js} +1 -1
- package/admin/index.html +1 -1
- package/frontend/assets/{index-9c16ae37.css → index-0ea37f5f.css} +1 -1
- package/frontend/assets/{index-880d25cb.js → index-7eec0199.js} +3 -3
- package/{admin/assets/sha512-98fc6b17.js → frontend/assets/sha512-108e3b0a.js} +1 -1
- package/frontend/index.html +2 -2
- package/package.json +1 -1
- package/plugins/download-counter/public/main.js +1 -1
- package/plugins/updater-disabled/plugin.js +4 -3
- package/src/const.js +1 -1
- package/src/langs/hfs-lang-fr.json +17 -4
- package/src/langs/hfs-lang-it.json +7 -3
- package/src/perm.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as OF,c as UF}from"./index-
|
|
1
|
+
import{g as OF,c as UF}from"./index-7eec0199.js";function gF(sF,hF){for(var eF=0;eF<hF.length;eF++){const tF=hF[eF];if(typeof tF!="string"&&!Array.isArray(tF)){for(const w in tF)if(w!=="default"&&!(w in sF)){const lF=Object.getOwnPropertyDescriptor(tF,w);lF&&Object.defineProperty(sF,w,lF.get?lF:{enumerable:!0,get:()=>tF[w]})}}}return Object.freeze(Object.defineProperty(sF,Symbol.toStringTag,{value:"Module"}))}var dF={exports:{}};/*
|
|
2
2
|
* [js-sha512]{@link https://github.com/emn178/js-sha512}
|
|
3
3
|
*
|
|
4
4
|
* @version 0.8.0
|
package/frontend/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0" />
|
|
6
6
|
<link href="/fontello.css" rel="stylesheet" />
|
|
7
7
|
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-7eec0199.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="/assets/index-0ea37f5f.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{ // this wrapper avoids name clashing of outer variables and functions
|
|
2
2
|
const config = HFS.getPluginConfig()
|
|
3
3
|
|
|
4
|
-
const label = HFS.t(["
|
|
4
|
+
const label = HFS.t(["download counter", "Download counter"])
|
|
5
5
|
const inMenu = config.where === 'menu'
|
|
6
6
|
HFS.onEvent('additionalEntryDetails', ({ entry: { hits } }) =>
|
|
7
7
|
hits && !inMenu && `<span class="download-counter" title="${label}">${hits}</span>`)
|
|
@@ -5,11 +5,12 @@ Its capability is to offer automatic restart when an update is available in the
|
|
|
5
5
|
Tip: In my case I'm uploading "hfs.exe-new" over ftp, and it's a bit slow, so to avoid the plugin to catch
|
|
6
6
|
an unfinished file, I do the upload using a temporary name, and only when it's done I rename it to "hfs.exe-new".
|
|
7
7
|
*/
|
|
8
|
-
exports.version = 0.
|
|
8
|
+
exports.version = 0.3
|
|
9
9
|
exports.description = "automatic restart when an update is available in the form of hfs.exe-new file"
|
|
10
10
|
exports.apiRequired = 3 // api.log
|
|
11
11
|
|
|
12
12
|
const NEW = 'hfs.exe-new'
|
|
13
|
+
const UPDATING = 'hfs.exe-updating'
|
|
13
14
|
const BATCH_NAME = 'run-updater.bat'
|
|
14
15
|
const BATCH = `@echo off
|
|
15
16
|
:loop
|
|
@@ -19,7 +20,7 @@ hfs %*
|
|
|
19
20
|
endlocal
|
|
20
21
|
if exist hfs.exe-new (
|
|
21
22
|
move /y hfs.exe hfs.exe-old
|
|
22
|
-
move /y ${
|
|
23
|
+
move /y ${UPDATING} hfs.exe
|
|
23
24
|
goto loop
|
|
24
25
|
)
|
|
25
26
|
`
|
|
@@ -33,7 +34,7 @@ exports.init = async api => {
|
|
|
33
34
|
|
|
34
35
|
api.log("ready")
|
|
35
36
|
const timer = setInterval(() => {
|
|
36
|
-
fs.
|
|
37
|
+
fs.rename(NEW, UPDATING, err => {
|
|
37
38
|
if (err) return
|
|
38
39
|
api.log("exiting for update")
|
|
39
40
|
process.exit(0)
|
package/src/const.js
CHANGED
|
@@ -38,7 +38,7 @@ exports.DEV = process.env.DEV || exports.argv.dev ? 'DEV' : '';
|
|
|
38
38
|
exports.ORIGINAL_CWD = process.cwd();
|
|
39
39
|
exports.HFS_STARTED = new Date();
|
|
40
40
|
const PKG_PATH = (0, path_1.join)(__dirname, '..', 'package.json');
|
|
41
|
-
exports.BUILD_TIMESTAMP = "2023-08-
|
|
41
|
+
exports.BUILD_TIMESTAMP = "2023-08-25T16:03:42.830Z";
|
|
42
42
|
const pkg = JSON.parse(fs.readFileSync(PKG_PATH, 'utf8'));
|
|
43
43
|
exports.VERSION = pkg.version;
|
|
44
44
|
exports.RUNNING_BETA = exports.VERSION.includes('-');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Club Microtel Vernon",
|
|
3
|
-
"version": 1.
|
|
4
|
-
"hfs_version": "0.
|
|
3
|
+
"version": 1.3,
|
|
4
|
+
"hfs_version": "0.47.1",
|
|
5
5
|
"translate": {
|
|
6
6
|
"Select": "Selectionner",
|
|
7
7
|
"n_files": "{n,plural, one{# fichier} other{# fichiers}}",
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
"upload_finished": "{n} terminé(s) ({size})",
|
|
96
96
|
"upload_errors": "{n} échoués",
|
|
97
97
|
"upload_file_rejected": "Certains fichiers ont été refusés",
|
|
98
|
-
"Download counter": "Compteur de téléchargements",
|
|
99
98
|
"File menu": "Menu du fichier",
|
|
100
99
|
"Folder menu": "Menu du dossier",
|
|
101
100
|
"Name": "Nom",
|
|
@@ -113,6 +112,20 @@
|
|
|
113
112
|
"Tiles mode:": "Mode tuiles:",
|
|
114
113
|
"off": "Désactivé",
|
|
115
114
|
"Operation successful": "Opération réussie",
|
|
116
|
-
"Uploader": "Téléchargeur"
|
|
115
|
+
"Uploader": "Téléchargeur",
|
|
116
|
+
"download counter": "Compteur de téléchargements",
|
|
117
|
+
"Switch zoom mode": "Changer le mode zoom",
|
|
118
|
+
"Full screen": "Plein écran",
|
|
119
|
+
"File Show help": "Aide pour l'affichage des fichiers",
|
|
120
|
+
"showHelpMain": "Vous pouvez utiliser le clavier pour certaines actions:",
|
|
121
|
+
"showHelp_←/→": "←/→",
|
|
122
|
+
"showHelp_↑/↓": "↑/↓",
|
|
123
|
+
"showHelp_space": "Espace",
|
|
124
|
+
"showHelp_←/→_body": "Atteindre le précédent/prochain fichier",
|
|
125
|
+
"showHelp_↑/↓_body": "Faire défiler verticalement les images très hautes",
|
|
126
|
+
"showHelp_space_body": "Sélectionner",
|
|
127
|
+
"showHelp_D_body": "Télécharger",
|
|
128
|
+
"showHelp_Z_body": "Modes de zoom",
|
|
129
|
+
"showHelp_F_body": "Plein écran"
|
|
117
130
|
}
|
|
118
131
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Massimo Melina",
|
|
3
|
-
"version": 1.
|
|
4
|
-
"hfs_version": "0.47.
|
|
3
|
+
"version": 1.8,
|
|
4
|
+
"hfs_version": "0.47.1",
|
|
5
5
|
"translate": {
|
|
6
6
|
"Select": "Seleziona",
|
|
7
7
|
"n_files": "{n} file",
|
|
@@ -118,6 +118,10 @@
|
|
|
118
118
|
"showHelp_space_body": "seleziona",
|
|
119
119
|
"showHelp_D_body": "download",
|
|
120
120
|
"showHelp_Z_body": "cambia modalità zoom",
|
|
121
|
-
"showHelp_F_body": "pieno schermo"
|
|
121
|
+
"showHelp_F_body": "pieno schermo",
|
|
122
|
+
"": "PLUGINS SECTION",
|
|
123
|
+
"": "PLUGIN thumbnails",
|
|
124
|
+
"Enable tiles mode": "Modalità griglia",
|
|
125
|
+
"thumbnails_switchBack": "Puoi tornare alla lista com'era prima entrando in Opzioni"
|
|
122
126
|
}
|
|
123
127
|
}
|
package/src/perm.js
CHANGED
|
@@ -142,7 +142,7 @@ exports.setAccount = setAccount;
|
|
|
142
142
|
function delAccount(username) {
|
|
143
143
|
if (!getAccount(username))
|
|
144
144
|
return false;
|
|
145
|
-
exports.accountsConfig.set(accounts =>
|
|
145
|
+
exports.accountsConfig.set(accounts => lodash_1.default.omit(accounts, normalizeUsername(username)));
|
|
146
146
|
saveAccountsAsap();
|
|
147
147
|
return true;
|
|
148
148
|
}
|