Skip to content

Commit

Permalink
Merge pull request #897 from Pat1enceLos/pipClone
Browse files Browse the repository at this point in the history
refactor(browsingview): replace webView to browserView
  • Loading branch information
ipy authored Sep 9, 2019
2 parents 4f7552e + b980195 commit 8a6dac0
Show file tree
Hide file tree
Showing 137 changed files with 5,856 additions and 2,860 deletions.
5 changes: 2 additions & 3 deletions .electron-vue/dev-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ function greeting() {
const cols = process.stdout.columns;
let text = '';

if (cols > 104) text = 'electron-vue';
else if (cols > 76) text = 'electron-|vue';
if (cols > 76) text = 'SPlayer';
else text = false;

if (text) {
Expand All @@ -183,7 +182,7 @@ function greeting() {
font: 'simple3d',
space: false,
});
} else console.log(chalk.yellow.bold('\n electron-vue'));
} else console.log(chalk.yellow.bold('\n SPlayer'));
console.log(chalk.blue(' getting ready...') + '\n');
}

Expand Down
13 changes: 2 additions & 11 deletions .electron-vue/webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ let rendererConfig = {
about: path.join(__dirname, '../src/renderer/about.js'),
labor: path.join(__dirname, '../src/renderer/labor.ts'),
index: path.join(__dirname, '../src/renderer/main.ts'),
browsing: path.join(__dirname, '../src/renderer/browsing.ts'),
},
externals: [
...Object.keys(Object.assign({}, dependencies, optionalDependencies)).filter(
Expand Down Expand Up @@ -110,17 +111,6 @@ let rendererConfig = {
use: 'babel-loader',
exclude: /node_modules/,
},
{
// 匹配 *.worker.js
test: /\.worker\.js$/,
use: {
loader: 'workerize-loader',
},
},
{
test: /\.node$/,
use: 'node-loader',
},
{
test: /\.vue$/,
use: {
Expand Down Expand Up @@ -211,6 +201,7 @@ let rendererConfig = {
new HtmlWebpackPlugin(generateHtmlWebpackPluginConfig('labor')),
new HtmlWebpackPlugin(generateHtmlWebpackPluginConfig('about')),
new HtmlWebpackPlugin(generateHtmlWebpackPluginConfig('preference')),
new HtmlWebpackPlugin(generateHtmlWebpackPluginConfig('browsing')),
new webpack.HotModuleReplacementPlugin(),
],
output: {
Expand Down
6 changes: 0 additions & 6 deletions appveyor-appx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ platform:

configuration: Release

cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\AppData\Local\Yarn\cache'

init:
- git config --global core.autocrlf input
# Provide a short commit SHA1 too
Expand Down
6 changes: 0 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ platform:

configuration: Release

cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\AppData\Local\Yarn\cache'

init:
- git config --global core.autocrlf input

Expand Down
Binary file added build/icons/mojave-pip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/mojave-window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/normal-pip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/normal-window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 18 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "splayer",
"productName": "splayer",
"homepage": "https://splayer.org",
"version": "4.3.1",
"version": "4.4.0-beta.0",
"author": "tomasen <[email protected]>",
"description": "a media player",
"license": "GPL-3.0-or-later",
"main": "./dist/electron/main.js",
"engines": {
"node": "^11"
"node": ">=11.0.0"
},
"scripts": {
"build": "node .electron-vue/build.js && electron-builder --p never",
Expand All @@ -19,15 +19,13 @@
"start": "npm run stage",
"dev": "cross-env SAGI_API=sagi-api:8443 node .electron-vue/dev-runner.js",
"stage": "node .electron-vue/dev-runner.js",
"e2e": "npm run pack && electron-mocha test/e2e",
"install-app-deps": "electron-builder install-app-deps",
"lint": "eslint --ext .ts,.js,.vue -f ./node_modules/eslint-friendly-formatter src test",
"lint:fix": "eslint --ext .ts,.js,.vue -f ./node_modules/eslint-friendly-formatter --fix src test",
"pack": "npm run pack:main && npm run pack:renderer",
"pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js",
"pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js",
"rebuild:win-mouse": "electron-rebuild -f -e node_modules/@chiflix/electron -w win-mouse",
"test": "npm run unit && npm run e2e",
"test": "npm run unit",
"unit": "karma start test/unit/karma.conf.js",
"postinstall": "node ./scripts/post-install.js"
},
Expand All @@ -45,7 +43,7 @@
"@types/fs-extra": "^7.0.0",
"@types/lodash": "^4.14.134",
"@types/lolex": "^3.1.1",
"ass-compiler": "0.0.10",
"ass-compiler": "github:YvonTre/ass-compiler",
"axios": "^0.19.0",
"chardet": "^0.7.0",
"configcat-js": "^1.1.19",
Expand All @@ -56,7 +54,6 @@
"fs-extra": "^7.0.1",
"get-video-id": "^3.1.4",
"google-protobuf": "^3.6.0",
"highlight.js": "~9.3.0",
"iconv-lite": "^0.4.24",
"idb": "^4.0.3",
"lethargy": "^1.0.4",
Expand All @@ -68,15 +65,14 @@
"os-locale": "^3.0.1",
"p-queue": "^6.0.0",
"rimraf": "^2.6.3",
"rollup": "^1.17.0",
"romanize": "^1.1.1",
"sagi-api": "^0.0.19",
"source-map-support": "^0.5.9",
"subtitle": "github:YvonTre/subtitle.js",
"traditional-or-simplified": "^1.0.3",
"url-parse-lax": "^3.0.0",
"uuid": "^3.2.1",
"vue": "^2.5.18",
"vue": "^2.6.10",
"vue-analytics": "^5.16.1",
"vue-async-computed": "^3.5.1",
"vue-axios": "^2.1.4",
Expand All @@ -90,6 +86,7 @@
"winston-daily-rotate-file": "^3.9.0"
},
"optionalDependencies": {
"osx-mouse-cocoa": "github:Pat1enceLos/osx-mouse-cocoa",
"win-mouse": "1.3.0"
},
"devDependencies": {
Expand All @@ -112,11 +109,12 @@
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"@chiflix/electron": "5.0.10",
"@chiflix/electron": "5.0.10-dev.5",
"@sentry/webpack-plugin": "^1.6.2",
"@types/chai": "^4.1.7",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.4",
"@types/os-locale": "^2.1.0",
"@types/rimraf": "^2.0.2",
"@types/sinon": "^7.0.12",
Expand All @@ -135,10 +133,9 @@
"css-loader": "^2.1.1",
"del": "^3.0.0",
"devtron": "^1.4.0",
"electron-builder": "20.38.2",
"electron-debug": "^1.4.0",
"electron-mocha": "^6.0.4",
"electron-rebuild": "^1.8.5",
"electron-builder": "21.2.0",
"electron-debug": "^3.0.1",
"electron-mocha": "^8.1.2",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-friendly-formatter": "^4.0.1",
Expand All @@ -149,7 +146,7 @@
"eslint-plugin-vue": "^5.2.2",
"exports-loader": "^0.7.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^2.0.0",
"file-loader": "^4.2.0",
"fork-ts-checker-webpack-plugin": "^1.4.3",
"html-webpack-plugin": "^3.2.0",
"istanbul": "github:Xesenix/istanbul",
Expand All @@ -164,35 +161,30 @@
"karma-webpack": "^3.0.5",
"mocha": "^5.2.0",
"mocha-webpack": "^1.1.0",
"mock-fs": "^4.8.0",
"module-alias": "^2.0.6",
"multispinner": "^0.2.1",
"node-loader": "^0.6.0",
"node-sass": "^4.12.0",
"raw-loader": "^2.0.0",
"require-dir": "^1.2.0",
"sass-loader": "^7.1.0",
"sass-resources-loader": "^2.0.0",
"sinon": "^7.2.3",
"sinon-chai": "^3.3.0",
"spectron": "^3.8.0",
"style-loader": "^0.23.1",
"svg-sprite-loader": "^4.1.3",
"terser-webpack-plugin": "^1.4.1",
"ts-loader": "^6.0.0",
"typescript": "^3.5.2",
"typescript": "~3.5.3",
"url-loader": "^1.1.2",
"vue-eslint-parser": "^6.0.4",
"vue-html-loader": "^1.2.4",
"vue-i18n-loader": "^1.0.0",
"vue-loader": "^15.4.2",
"vue-loader": "^15.7.1",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.5.18",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.6",
"vue-template-compiler": "^2.6.10",
"webpack": "^4.39.3",
"webpack-cli": "^3.3.7",
"webpack-dev-server": "^3.8.0",
"webpack-hot-middleware": "^2.25.0",
"webpack-merge": "^4.2.1",
"workerize-loader": "^1.0.4"
"webpack-merge": "^4.2.2"
}
}
36 changes: 13 additions & 23 deletions scripts/patch/appx/AppxTarget.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8a6dac0

Please sign in to comment.