forked from tauri-apps/tauri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(web-view): revert to now well-maintained upstream web-view [WIP] * feat(tests): add jest testing, first test * feat(lint): install, config and fix
- Loading branch information
1 parent
1ee1933
commit 5ec8e2f
Showing
37 changed files
with
4,897 additions
and
177 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 @@ | ||
NODE_ENV=test |
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 @@ | ||
/src-tauri |
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,23 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
jest: true | ||
}, | ||
|
||
extends: ["standard"], | ||
|
||
plugins: [], | ||
|
||
globals: { | ||
__statics: true, | ||
process: true | ||
}, | ||
|
||
// add your custom rules here | ||
rules: { | ||
// allow console.log during development only | ||
"no-console": process.env.NODE_ENV === "production" ? "error" : "off", | ||
// allow debugger during development only | ||
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -59,3 +59,6 @@ typings/ | |
debug.log | ||
package-lock.json | ||
.vscode/settings.json | ||
|
||
|
||
src-tauri |
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ node_modules | |
.github | ||
.idea | ||
SECURITY.md | ||
|
||
src-tauri |
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,35 @@ | ||
module.exports = { | ||
globals: { | ||
__DEV__: true | ||
}, | ||
setupFilesAfterEnv: ['<rootDir>/test/jest/jest.setup.js'], | ||
// noStackTrace: true, | ||
// bail: true, | ||
// cache: false, | ||
// verbose: true, | ||
// watch: true, | ||
collectCoverage: true, | ||
coverageDirectory: '<rootDir>/test/jest/coverage', | ||
collectCoverageFrom: [ | ||
'<rootDir>/mode/**/*.js', | ||
], | ||
coverageReporters: ['json-summary', 'text', 'lcov'], | ||
coverageThreshold: { | ||
global: { | ||
// branches: 50, | ||
// functions: 50, | ||
// lines: 50, | ||
// statements: 50 | ||
} | ||
}, | ||
testMatch: [ | ||
'<rootDir>/test/jest/__tests__/**/*.spec.js', | ||
'<rootDir>/test/jest/__tests__/**/*.test.js' | ||
], | ||
moduleFileExtensions: ['js', 'json'], | ||
moduleNameMapper: { | ||
'^~/(.*)$': '<rootDir>/$1', | ||
'^mode/(.*)$': '<rootDir>/mode/$1' | ||
}, | ||
transform: {} | ||
} |
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use tauri_ui::WebView; | ||
use web_view::WebView; | ||
|
||
use std::process::{Child, Command, Stdio}; | ||
|
||
|
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use tauri_ui::WebView; | ||
use web_view::WebView; | ||
|
||
use crate::dir; | ||
use crate::execute_promise; | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
use std::sync::Mutex; | ||
use tauri_ui::WebView; | ||
use web_view::WebView; | ||
use uuid::Uuid; | ||
|
||
struct Salt { | ||
|
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
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
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
Empty file.
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
Oops, something went wrong.