Skip to content

Commit 6f54138

Browse files
committed
adding phoenix libs partial
1 parent 997cde6 commit 6f54138

15 files changed

Lines changed: 1422 additions & 19 deletions

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ node_modules
66
.parcel-cache
77

88
dist/*
9-
!dist/fslib.js
10-
!dist/fslib.js.map
9+
!dist/virtualfs.js
10+
!dist/virtualfs.js.map

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ npm run build
1212
```
1313

1414
To Test:
15-
While developing, use test or testDist script to open browser tests.
16-
* test runs tests against the src folder and
17-
* testDist runs tests against the release build
15+
While developing, use test script to open browser tests.
16+
* Test runs tests against the release build.
17+
* You should `npm run build` if any changes were made to the src folder
1818
```bash
19+
npm run build
1920
npm run test
20-
npm run testDist
2121
```
2222

2323

@@ -26,5 +26,5 @@ NOTE: you can also use `npm run dev` to also start a web server for development.
2626

2727

2828
```js
29-
<script src=""/>
29+
<script src="path/to/dist/virtualfs.js"/>
3030
```

dist/virtualfs.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/virtualfs.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/constants.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* GNU AGPL-3.0 License
3+
*
4+
* Copyright (c) 2021 - present core.ai . All rights reserved.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under
7+
* the terms of the GNU Affero General Public License as published by the Free
8+
* Software Foundation, either version 3 of the License, or (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
* See the GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License along
15+
* with this program. If not, see https://opensource.org/licenses/AGPL-3.0.
16+
*
17+
*/
18+
19+
// jshint ignore: start
20+
/*eslint no-console: 0*/
21+
/*eslint strict: ["error", "global"]*/
22+
/* jshint ignore:start */
23+
24+
const Constants = {
25+
MOUNT_DEVICE_NAME: 'nativeFsAccess',
26+
KIND_FILE: 'file',
27+
KIND_DIRECTORY: 'directory',
28+
NODE_TYPE_FILE: 'FILE',
29+
NODE_TYPE_DIRECTORY: 'DIRECTORY',
30+
IDB_RW_TYPE: 'readwrite',
31+
MOUNT_POINT_ROOT: '/mnt'
32+
};
33+
34+
module.exports ={
35+
Constants
36+
};

src/dep.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)