-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bbbc7df
Showing
49 changed files
with
1,308 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
/app-builds | ||
/release | ||
main.js | ||
src/**/*.js | ||
!src/karma.conf.js | ||
*.js.map | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
package-lock.json | ||
|
||
# e2e | ||
/e2e/*.js | ||
!/e2e/protractor.conf.js | ||
/e2e/*.map | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
os: | ||
- linux | ||
- osx | ||
language: node_js | ||
node_js: | ||
- '12' | ||
- '10' | ||
dist: xenial | ||
sudo: required | ||
services: | ||
- xvfb | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
install: | ||
- npm set progress=false | ||
- npm install | ||
script: | ||
- ng lint | ||
- npm run test | ||
- npm run e2e | ||
- npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## WebDAV GUI | ||
|
||
## Table of Contents | ||
|
||
- [Description](#description) | ||
- [Screenshots](#screenshots) | ||
- [Installation](#installation) | ||
- [License](#license) | ||
|
||
## Description | ||
|
||
WebDAV Server for MacOS, Windows and Linux | ||
|
||
## Screenshots | ||
|
||
![](https://github.com/svtslv/webdav-gui/raw/master/screenshots/public.png) | ||
|
||
## Installation | ||
|
||
```bash | ||
git clone https://github.com/svtslv/webdav-gui | ||
``` | ||
|
||
```bash | ||
cd webdav-gui | ||
``` | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
### MacOS | ||
|
||
```bash | ||
npm run electron:mac | ||
``` | ||
|
||
### Windows | ||
|
||
```bash | ||
npm run electron:windows | ||
``` | ||
|
||
### Linux | ||
|
||
```bash | ||
npm run electron:linux | ||
``` | ||
|
||
## License | ||
|
||
MIT | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"angular-electron": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-builders/custom-webpack:browser", | ||
"options": { | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"polyfills": "src/polyfills.ts", | ||
"assets": [ | ||
"src/assets", | ||
"src/favicon.ico", | ||
"src/favicon.png", | ||
"src/favicon.icns", | ||
"src/favicon.256x256.png", | ||
"src/favicon.512x512.png" | ||
], | ||
"styles": [ | ||
"src/styles.scss" | ||
], | ||
"scripts": [], | ||
"customWebpackConfig": { | ||
"path": "./angular.webpack.js" | ||
} | ||
}, | ||
"configurations": { | ||
"dev": { | ||
"optimization": false, | ||
"outputHashing": "all", | ||
"sourceMap": true, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": false, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": false, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.dev.ts" | ||
} | ||
] | ||
}, | ||
"web": { | ||
"optimization": false, | ||
"outputHashing": "all", | ||
"sourceMap": true, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": false, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": false, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.web.ts" | ||
} | ||
] | ||
}, | ||
"production": { | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-builders/custom-webpack:dev-server", | ||
"options": { | ||
"browserTarget": "angular-electron:build" | ||
}, | ||
"configurations": { | ||
"dev": { | ||
"browserTarget": "angular-electron:build:dev" | ||
}, | ||
"web": { | ||
"browserTarget": "angular-electron:build:web" | ||
}, | ||
"production": { | ||
"browserTarget": "angular-electron:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "angular-electron:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-builders/custom-webpack:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"polyfills": "src/polyfills-test.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"karmaConfig": "src/karma.conf.js", | ||
"scripts": [], | ||
"styles": [ | ||
"src/styles.scss" | ||
], | ||
"assets": [ | ||
"src/assets", | ||
"src/favicon.ico", | ||
"src/favicon.png", | ||
"src/favicon.icns", | ||
"src/favicon.256x256.png", | ||
"src/favicon.512x512.png" | ||
], | ||
"customWebpackConfig": { | ||
"path": "./angular.webpack.js", | ||
"target": "electron-renderer" | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-eslint/builder:lint", | ||
"options": { | ||
"eslintConfig": "src/eslintrc.config.json", | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"angular-electron-e2e": { | ||
"root": "e2e", | ||
"projectType": "application", | ||
"architect": { | ||
"lint": { | ||
"builder": "@angular-eslint/builder:lint", | ||
"options": { | ||
"eslintConfig": "e2e/eslintrc.e2e.json", | ||
"tsConfig": [ | ||
"e2e/tsconfig.e2e.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "angular-electron", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"prefix": "app", | ||
"styleext": "scss" | ||
}, | ||
"@schematics/angular:directive": { | ||
"prefix": "app" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Custom angular webpack configuration | ||
*/ | ||
|
||
module.exports = (config, options) => { | ||
config.target = 'electron-renderer'; | ||
if (options.customWebpackConfig.target) { | ||
config.target = options.customWebpackConfig.target; | ||
} else if (options.fileReplacements) { | ||
for(let fileReplacement of options.fileReplacements) { | ||
if (fileReplacement.replace !== 'src/environments/environment.ts') { | ||
continue; | ||
} | ||
|
||
let fileReplacementParts = fileReplacement['with'].split('.'); | ||
if (['dev', 'prod', 'test', 'electron-renderer'].indexOf(fileReplacementParts[1]) < 0) { | ||
config.target = fileReplacementParts[1]; | ||
} | ||
break; | ||
} | ||
} | ||
|
||
return config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const Application = require('spectron').Application; | ||
const electronPath = require('electron'); // Require Electron from the binaries included in node_modules. | ||
const path = require('path'); | ||
|
||
export default function setup(): void { | ||
beforeEach(async function () { | ||
this.app = new Application({ | ||
// Your electron path can be any binary | ||
// i.e for OSX an example path could be '/Applications/MyApp.app/Contents/MacOS/MyApp' | ||
// But for the sake of the example we fetch it from our node_modules. | ||
path: electronPath, | ||
|
||
// Assuming you have the following directory structure | ||
|
||
// |__ my project | ||
// |__ ... | ||
// |__ main.js | ||
// |__ package.json | ||
// |__ index.html | ||
// |__ ... | ||
// |__ test | ||
// |__ spec.js <- You are here! ~ Well you should be. | ||
|
||
// The following line tells spectron to look and use the main.js file | ||
// and the package.json located 1 level above. | ||
args: [path.join(__dirname, '..')], | ||
webdriverOptions: {} | ||
}); | ||
await this.app.start(); | ||
const browser = this.app.client; | ||
await browser.waitUntilWindowLoaded(); | ||
|
||
browser.timeouts('script', 15000); | ||
}); | ||
|
||
afterEach(function () { | ||
if (this.app && this.app.isRunning()) { | ||
return this.app.stop(); | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../eslintrc.json", | ||
"parserOptions": { | ||
"project": ["e2e/tsconfig.e2e.json"] | ||
} | ||
} |
Oops, something went wrong.