This commit is contained in:
Cris Stringfellow 2022-02-26 09:15:45 +08:00
parent 671d883ccf
commit 4dfb69d46b
6 changed files with 13841 additions and 31 deletions

View File

@ -1,4 +1,4 @@
# :floppy_disk: [DiskerNet](https://github.com/c9fe/22120) [![npm downloads](https://img.shields.io/npm/dt/archivist1?label=npm%20downloads)](https://npmjs.com/package/archivist1) [![binary downloads](https://img.shields.io/github/downloads/c9fe/22120/total?label=OS%20binary%20downloads)](https://GitHub.com/i5ik/DiskerNet/releases) [![visitors+++](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fc9fe%2F22120&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=%28today%2Ftotal%29%20visitors%2B%2B%2B%20since%20Oct%2027%202020&edge_flat=false)](https://hits.seeyoufarm.com) ![version](https://img.shields.io/npm/v/archivist1)
# :floppy_disk: [DiskerNet](https://github.com/c9fe/22120) [![source lines of code](https://sloc.xyz/github/crisdosyago/Diskernet)](https://sloc.xyz) [![npm downloads (22120)](https://img.shields.io/npm/dt/archivist1?label=npm%20downloads%20%2822120%29)](https://npmjs.com/package/archivist1) [![npm downloads (diskernet, since Jan 2022)](https://img.shields.io/npm/dt/diskernet?label=npm%20downloads%20%28diskernet%2C%20since%20Jan%202022%29)](https://npmjs.com/package/diskernet) [![binary downloads](https://img.shields.io/github/downloads/c9fe/22120/total?label=OS%20binary%20downloads)](https://GitHub.com/crisdosyago/DiskerNet/releases) [![visitors+++](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fc9fe%2F22120&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=%28today%2Ftotal%29%20visitors%2B%2B%2B%20since%20Oct%2027%202020&edge_flat=false)](https://hits.seeyoufarm.com) ![version](https://img.shields.io/npm/v/archivist1)
:floppy_disk: - an internet on yer Disk
@ -14,11 +14,11 @@ This feature is just released in version 2 so it will improve over time.
## Get it
[Download a release](https://github.com/i5ik/Diskernet/releases)
[Download a release](https://github.com/crisdosyago/Diskernet/releases)
or ...
**Get it on npm:**
**Get it on [npm](https://www.npmjs.com/package/diskernet):**
```sh
$ npm i -g diskernet@latest
@ -29,7 +29,7 @@ or...
**Build your own binaries:**
```sh
$ git clone https://github.com/i5ik/DiskerNet
$ git clone https://github.com/crisdosyago/DiskerNet
$ cd DiskerNet
$ npm i
$ ./scripts/build_setup.sh
@ -68,11 +68,13 @@ $ cd bin/
## License
22120 is licensed under Polyform Strict License 1.0.0 (no modification, no distribution). You can purchase a license to use for personal, research, noncommercial purposes, below:
22120 is licensed under Polyform Strict License 1.0.0 (no modification, no distribution). You can purchase a license for different uses below:
- [Buy a Perpetual Non-commercial Use License of the current Version re-upped Monthly to the Latest Version, USD$1.99 per month](https://buy.stripe.com/fZeg0a45zdz58U028z) [Read license](https://github.com/DOSYCORPS/polyform-licenses/blob/1.0.0/PolyForm-Noncommercial-1.0.0.md)
- [Buy a Perpetual Internal Use License of the current Version re-upped Monthly to the Latest Version, USD $12.99 per month](https://buy.stripe.com/00g4hsgSlbqXb288wY) [Read license](https://github.com/DOSYCORPS/polyform-licenses/blob/1.0.0/PolyForm-Internal-Use-1.0.0.md)
- [Buy a Perpetual Small-medium Business License of the current Version re-upped Monthly to the Latest Version, USD $99 per month](https://buy.stripe.com/aEUbJUgSl2UreekdRj) [Read license](https://github.com/DOSYCORPS/polyform-licenses/blob/1.0.0/PolyForm-Small-Business-1.0.0.md)
- for personal, research, noncommercial purposes:
[Buy a Perpetual Non-commercial Use License of the current Version re-upped Monthly to the Latest Version, USD$1.99 per month](https://buy.stripe.com/fZeg0a45zdz58U028z) [Read license](https://github.com/DOSYCORPS/polyform-licenses/blob/1.0.0/PolyForm-Noncommercial-1.0.0.md)
- for part of your internal tooling in your org: [Buy a Perpetual Internal Use License of the current Version re-upped Monthly to the Latest Version, USD $12.99 per month](https://buy.stripe.com/00g4hsgSlbqXb288wY) [Read license](https://github.com/DOSYCORPS/polyform-licenses/blob/1.0.0/PolyForm-Internal-Use-1.0.0.md)
- for anywhere in your business: [Buy a Perpetual Small-medium Business License of the current Version re-upped Monthly to the Latest Version, USD $99 per month](https://buy.stripe.com/aEUbJUgSl2UreekdRj) [Read license](https://github.com/DOSYCORPS/polyform-licenses/blob/1.0.0/PolyForm-Small-Business-1.0.0.md)
<p align=right><small><a href=#toc>Top</a></small></p>

13818
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,10 @@
{
"name": "diskernet",
"version": "2.6.0",
"version": "2.4.11",
"type": "module",
"description": "Library server and an archivist browser controller.",
"main": "build/22120.js",
"module": "src/app.js",
"main": "src/app.js",
"module": "dist/22120-module.js",
"bin": {
"diskernet": "build/22120.js"
},
@ -26,21 +27,11 @@
"url": "git+https://github.com/dosyago/22120.git"
},
"pkg": {
"patches": {
"./node_modules/fetch-blob/streams.cjs": [
"Object.assign(globalThis, require('node:stream/web'))",
"Object.assign(globalThis, require('stream').web)"
]
},
"scripts": "build/*.js",
"assets": "public/**/*",
"outputPath": "bin"
},
"keywords": [
"web-archive",
"search-engine",
"self-hosted",
"offline",
"archivist",
"library"
],
@ -71,7 +62,6 @@
"nodemon": "latest",
"npx": "^3.0.0",
"webpack": "latest",
"webpack-cli": "latest",
"rollup-plugin-terser": "^7.0.2"
"webpack-cli": "latest"
}
}

View File

@ -97,6 +97,6 @@
</form>
<footer>
<cite>
<a rel=author href=https://github.com/i5ik/22120>22120 GitHub</a>
<a rel=author href=https://github.com/crisdosyago/22120>22120 GitHub</a>
</cite>
</footer>

View File

@ -3,10 +3,10 @@
#./scripts/compile.sh
description=$1
latest_tag=$(git describe --abbrev=0)
grel release -u i5ik -r 22120 --tag $latest_tag --name "New release" --description '"'"$description"'"'
grel upload -u i5ik -r 22120 --tag $latest_tag --name "diskernet-win.exe" --file bin/diskernet-win.exe
grel upload -u i5ik -r 22120 --tag $latest_tag --name "diskernet-linux" --file bin/diskernet-linux
grel upload -u i5ik -r 22120 --tag $latest_tag --name "diskernet-macos" --file bin/diskernet-macos
grel release -u crisdosyago -r 22120 --tag $latest_tag --name "New release" --description '"'"$description"'"'
grel upload -u crisdosyago -r 22120 --tag $latest_tag --name "diskernet-win.exe" --file bin/diskernet-win.exe
grel upload -u crisdosyago -r 22120 --tag $latest_tag --name "diskernet-linux" --file bin/diskernet-linux
grel upload -u crisdosyago -r 22120 --tag $latest_tag --name "diskernet-macos" --file bin/diskernet-macos

View File

@ -1,5 +1,5 @@
import path from 'path';
//import {fileURLToPath} from 'url';
import {fileURLToPath} from 'url';
export const DEBUG = process.env.DEBUG_22120 || false;
export const SHOW_FETCH = false;
@ -40,8 +40,8 @@ export const SNIP_CONTEXT = 31;
export const NO_SANDBOX = process.env.DEBUG_22120 || false;
//export const APP_ROOT = '.';
export const APP_ROOT = __dirname;
//export const APP_ROOT = path.dirname(fileURLToPath(import.meta.url));
//export const APP_ROOT = __dirname;
export const APP_ROOT = path.dirname(fileURLToPath(import.meta.url));
export const sleep = ms => new Promise(res => setTimeout(res, ms));