Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
0bd9bf42
Commit
0bd9bf42
authored
Jan 17, 2024
by
14699
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整弹窗位置
parent
c74c7dbe
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
659 additions
and
287 deletions
+659
-287
config.xml
config.xml
+4
-0
prod.env.js
config/prod.env.js
+1
-1
android.json
plugins/android.json
+48
-0
README.md
plugins/cordova-plugin-crosswalk-webview/README.md
+0
-11
update_config.js
...s/cordova-plugin-crosswalk-webview/hooks/update_config.js
+26
-31
package.json
plugins/cordova-plugin-crosswalk-webview/package.json
+20
-55
plugin.xml
plugins/cordova-plugin-crosswalk-webview/plugin.xml
+8
-20
fetch.json
plugins/fetch.json
+159
-159
App.vue
src/App.vue
+3
-3
yarn.lock
yarn.lock
+390
-7
No files found.
config.xml
View file @
0bd9bf42
...
...
@@ -128,4 +128,8 @@
</plugin>
<engine
name=
"ios"
spec=
"^4.5.5"
/>
<engine
name=
"android"
spec=
"^6.2.3"
/>
<preference
name=
"xwalkVersion"
value=
"19+"
/>
<preference
name=
"xwalkCommandLine"
value=
"--disable-pull-to-refresh-effect"
/>
<preference
name=
"xwalkMode"
value=
"embedded"
/>
<preference
name=
"xwalkMultipleApk"
value=
"true"
/>
</widget>
config/prod.env.js
View file @
0bd9bf42
...
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.6.
7
"'
currentVersion
:
'"3.6.
8
"'
}
plugins/android.json
View file @
0bd9bf42
...
...
@@ -12,6 +12,45 @@
},
"cordova-plugin-camera"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-crosswalk-webview"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-datepicker"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-device"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-dialogs"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-file"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-file-transfer"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-image-picker"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-media-capture"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-network-information"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-splashscreen"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-statusbar"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-whitelist"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"ionic-plugin-keyboard"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
}
},
"dependent_plugins"
:
{
...
...
@@ -20,6 +59,15 @@
},
"cordova-plugin-contacts"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-themeablebrowser"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-x-toast"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"es6-promise-plugin"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
}
}
}
\ No newline at end of file
plugins/cordova-plugin-crosswalk-webview/README.md
View file @
0bd9bf42
...
...
@@ -109,17 +109,6 @@ You can also set user agent with the preference of xwalkUserAgent.
### Release Notes
#### 2.2.0 (November 4, 2016)
*
Uses the latest Crosswalk 22 stable version by default
*
Keep compatible for Cordova-android 6.0 with evaluating Javascript bridge
#### 2.1.0 (September 9, 2016)
*
Uses the latest Crosswalk 21 stable version by default
#### 2.0.0 (August 17, 2016)
*
Uses the latest Crosswalk 20 stable version by default
*
Discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20
#### 1.8.0 (June 30, 2016)
*
Uses the latest Crosswalk 19 stable version by default
...
...
plugins/cordova-plugin-crosswalk-webview/hooks/update_config.js
View file @
0bd9bf42
...
...
@@ -25,8 +25,6 @@ module.exports = function(context) {
'platforms'
,
'android'
),
projectConfigurationFile
=
path
.
join
(
context
.
opts
.
projectRoot
,
'config.xml'
),
platformConfigurationFile
=
path
.
join
(
androidPlatformDir
,
'res'
,
'xml'
,
'config.xml'
),
projectManifestFile
=
path
.
join
(
androidPlatformDir
,
'AndroidManifest.xml'
),
xwalk64bit
=
"xwalk64bit"
,
...
...
@@ -34,7 +32,7 @@ module.exports = function(context) {
specificVersion
=
false
;
/** Init */
var
CordovaConfig
=
new
ConfigParser
(
p
latform
ConfigurationFile
);
var
CordovaConfig
=
new
ConfigParser
(
p
roject
ConfigurationFile
);
var
addPermission
=
function
()
{
var
projectManifestXmlRoot
=
XmlHelpers
.
parseElementtreeSync
(
projectManifestFile
);
...
...
@@ -113,27 +111,29 @@ module.exports = function(context) {
/** Add preference */
this
.
addPreferences
=
function
()
{
// Pick the xwalk variables with the cli preferences
//
parseCliPreference();
parseCliPreference
();
// Add the permission of writing external storage when using shared mode
if
(
CordovaConfig
.
getGlobalPreference
(
'xwalkMode'
)
==
'shared'
)
{
if
(
xwalkVariables
[
'xwalkMode'
]
==
'shared'
)
{
addPermission
();
}
else
if
(
xwalkVariables
[
'xwalkMode'
]
==
'lite'
&&
specificVersion
==
false
)
{
xwalkVariables
[
'xwalkVersion'
]
=
xwalkLiteVersion
;
}
// Configure the final value in the config.xml
//
var configXmlRoot = XmlHelpers.parseElementtreeSync(projectConfigurationFile);
//
var preferenceUpdated = false;
//
for (var name in xwalkVariables) {
//
var child = configXmlRoot.find('./preference[@name="' + name + '"]');
//
if(!child) {
//
preferenceUpdated = true;
//
child = et.XML('<preference name="' + name + '" value="' + xwalkVariables[name] + '" />');
//
XmlHelpers.graftXML(configXmlRoot, [child], '/*');
//
}
//
}
//
if(preferenceUpdated) {
//
fs.writeFileSync(projectConfigurationFile, configXmlRoot.write({indent: 4}), 'utf-8');
//
}
var
configXmlRoot
=
XmlHelpers
.
parseElementtreeSync
(
projectConfigurationFile
);
var
preferenceUpdated
=
false
;
for
(
var
name
in
xwalkVariables
)
{
var
child
=
configXmlRoot
.
find
(
'./preference[@name="'
+
name
+
'"]'
);
if
(
!
child
)
{
preferenceUpdated
=
true
;
child
=
et
.
XML
(
'<preference name="'
+
name
+
'" value="'
+
xwalkVariables
[
name
]
+
'" />'
);
XmlHelpers
.
graftXML
(
configXmlRoot
,
[
child
],
'/*'
);
}
}
if
(
preferenceUpdated
)
{
fs
.
writeFileSync
(
projectConfigurationFile
,
configXmlRoot
.
write
({
indent
:
4
}),
'utf-8'
);
}
}
/** Remove preference*/
...
...
@@ -143,14 +143,14 @@ module.exports = function(context) {
removePermission
();
}
//
var configXmlRoot = XmlHelpers.parseElementtreeSync(projectConfigurationFile);
//
for (var name in xwalkVariables) {
//
var child = configXmlRoot.find('./preference[@name="' + name + '"]');
//
if (child) {
//
XmlHelpers.pruneXML(configXmlRoot, [child], '/*');
//
}
//
}
//
fs.writeFileSync(projectConfigurationFile, configXmlRoot.write({indent: 4}), 'utf-8');
var
configXmlRoot
=
XmlHelpers
.
parseElementtreeSync
(
projectConfigurationFile
);
for
(
var
name
in
xwalkVariables
)
{
var
child
=
configXmlRoot
.
find
(
'./preference[@name="'
+
name
+
'"]'
);
if
(
child
)
{
XmlHelpers
.
pruneXML
(
configXmlRoot
,
[
child
],
'/*'
);
}
}
fs
.
writeFileSync
(
projectConfigurationFile
,
configXmlRoot
.
write
({
indent
:
4
}),
'utf-8'
);
}
var
build64bit
=
function
()
{
...
...
@@ -189,11 +189,6 @@ module.exports = function(context) {
fs
.
writeFileSync
(
projectConfigurationFile
,
configXmlRoot
.
write
({
indent
:
4
}),
'utf-8'
);
}
}
console
.
log
(
"Crosswalk info:"
);
console
.
log
(
" After much discussion and analysis of the market,"
);
console
.
log
(
" we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20,"
);
console
.
log
(
" so the minSdkVersion of Cordova project is configured to 16 by default.
\n
"
);
}
xwalkVariables
=
defaultPreferences
();
...
...
plugins/cordova-plugin-crosswalk-webview/package.json
View file @
0bd9bf42
{
"_from"
:
"cordova-plugin-crosswalk-webview@2.2.0"
,
"_id"
:
"cordova-plugin-crosswalk-webview@2.2.0"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-qShYPyUhfxw/vZ4D56LQPWiO5XOaLVw7W0DM+f4Q0kUP8GtedvwIRUuSsQqETXSwEGoFLB0fiVRdN4r2Kb9/rQ=="
,
"_location"
:
"/cordova-plugin-crosswalk-webview"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"version"
,
"registry"
:
true
,
"raw"
:
"cordova-plugin-crosswalk-webview@2.2.0"
,
"name"
:
"cordova-plugin-crosswalk-webview"
,
"escapedName"
:
"cordova-plugin-crosswalk-webview"
,
"rawSpec"
:
"2.2.0"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"2.2.0"
},
"_requiredBy"
:
[
"#DEV:/"
,
"#USER"
],
"_resolved"
:
"https://registry.npmjs.org/cordova-plugin-crosswalk-webview/-/cordova-plugin-crosswalk-webview-2.2.0.tgz"
,
"_shasum"
:
"b5b7781e3a913b018005657d347cdb726fd92e53"
,
"_spec"
:
"cordova-plugin-crosswalk-webview@2.2.0"
,
"_where"
:
"/Volumes/work/APP/hls-xcmg-vue-app"
,
"author"
:
""
,
"bugs"
:
{
"url"
:
"https://crosswalk-project.org/jira"
},
"bundleDependencies"
:
false
,
"version"
:
"1.8.0"
,
"description"
:
"Changes the default WebView to CrossWalk"
,
"cordova"
:
{
"id"
:
"cordova-plugin-crosswalk-webview"
,
"platforms"
:
[
"android"
]
},
"deprecated"
:
false
,
"description"
:
"Changes the default WebView to CrossWalk"
,
"engines"
:
{
"cordovaDependencies"
:
{
"2.0.0"
:
{
"cordova"
:
">=5.2.0"
,
"cordova-android"
:
"4 - 5"
},
"2.1.0"
:
{
"cordova"
:
">=5.2.0"
,
"cordova-android"
:
"4 - 5"
},
"2.2.0"
:
{
"cordova"
:
">=5.2.0"
,
"cordova-android"
:
">=6"
},
"3.0.0"
:
{
"cordova"
:
">100"
}
}
"repository"
:
{
"type"
:
"git"
,
"url"
:
"https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git"
},
"homepage"
:
"https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview"
,
"keywords"
:
[
"cordova"
,
"chromium"
,
...
...
@@ -65,11 +21,20 @@
"ecosystem:cordova"
,
"cordova-android"
],
"engines"
:
[
{
"name"
:
"cordova-android"
,
"version"
:
">=4"
},
{
"name"
:
"cordova-plugman"
,
"version"
:
">=4.2.0"
}
],
"author"
:
""
,
"license"
:
"Apache 2.0"
,
"name"
:
"cordova-plugin-crosswalk-webview"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git"
"bugs"
:
{
"url"
:
"https://crosswalk-project.org/jira"
},
"
version"
:
"2.2.0
"
"
homepage"
:
"https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
"
}
plugins/cordova-plugin-crosswalk-webview/plugin.xml
View file @
0bd9bf42
...
...
@@ -3,7 +3,7 @@
<plugin
xmlns=
"http://apache.org/cordova/ns/plugins/1.0"
xmlns:android=
"http://schemas.android.com/apk/res/android"
id=
"cordova-plugin-crosswalk-webview"
version=
"
2.2
.0"
>
version=
"
1.8
.0"
>
<name>
Crosswalk WebView Engine
</name>
<description>
Changes the default WebView to CrossWalk
</description>
...
...
@@ -13,25 +13,19 @@
<issue>
https://crosswalk-project.org/jira
</issue>
<engines>
<engine
name=
"cordova-android"
version=
">=
6
"
/>
<engine
name=
"cordova-plugman"
version=
">=
5
.2.0"
/>
<!-- needed for gradleReference support -->
<engine
name=
"cordova-android"
version=
">=
4
"
/>
<engine
name=
"cordova-plugman"
version=
">=
4
.2.0"
/>
<!-- needed for gradleReference support -->
</engines>
<!-- android -->
<platform
name=
"android"
>
<preference
name=
"XWALK_VERSION"
default=
"22+"
/>
<preference
name=
"XWALK_LITEVERSION"
default=
"xwalk_core_library_canary:17+"
/>
<preference
name=
"XWALK_COMMANDLINE"
default=
"--disable-pull-to-refresh-effect"
/>
<preference
name=
"XWALK_MODE"
default=
"embedded"
/>
<preference
name=
"XWALK_MULTIPLEAPK"
default=
"true"
/>
<config-file
target=
"res/xml/config.xml"
parent=
"/*"
>
<preference
name=
"webView"
value=
"org.crosswalk.engine.XWalkWebViewEngine"
/>
<preference
name=
"xwalkVersion"
value=
"$XWALK_VERSION"
/>
<preference
name=
"xwalkLiteVersion"
value=
"$XWALK_LITEVERSION"
/>
<preference
name=
"xwalkCommandLine"
value=
"$XWALK_COMMANDLINE"
/>
<preference
name=
"xwalkMode"
value=
"$XWALK_MODE"
/>
<preference
name=
"xwalkMultipleApk"
value=
"$XWALK_MULTIPLEAPK"
/>
<preference
name=
"android-minSdkVersion"
value=
"16"
/>
<preference
name=
"xwalkVersion"
default=
"19+"
/>
<preference
name=
"xwalkLiteVersion"
default=
"xwalk_core_library_canary:17+"
/>
<preference
name=
"xwalkCommandLine"
default=
"--disable-pull-to-refresh-effect"
/>
<preference
name=
"xwalkMode"
default=
"embedded"
/>
<preference
name=
"xwalkMultipleApk"
default=
"true"
/>
</config-file>
<config-file
target=
"AndroidManifest.xml"
parent=
"/*"
>
...
...
@@ -55,10 +49,4 @@
<hook
type=
"after_build"
src=
"hooks/after_build/000-build_64_bit.js"
/>
<hook
type=
"before_build"
src=
"hooks/before_build/000-build_64_bit.js"
/>
</platform>
<info>
After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20.
So the minSdkVersion of Cordova project is configured to 16 by default.
</info>
</plugin>
plugins/fetch.json
View file @
0bd9bf42
...
...
@@ -109,14 +109,6 @@
"PHOTOLIBRARY_USAGE_DESCRIPTION"
:
" "
}
},
"cordova-plugin-crosswalk-webview"
:
{
"source"
:
{
"type"
:
"registry"
,
"id"
:
"cordova-plugin-crosswalk-webview@2.2.0"
},
"is_top_level"
:
true
,
"variables"
:
{}
},
"cordova-plugin-file"
:
{
"source"
:
{
"type"
:
"registry"
,
...
...
@@ -157,5 +149,13 @@
},
"is_top_level"
:
true
,
"variables"
:
{}
},
"cordova-plugin-crosswalk-webview"
:
{
"source"
:
{
"type"
:
"registry"
,
"id"
:
"cordova-plugin-crosswalk-webview@1.8.0"
},
"is_top_level"
:
true
,
"variables"
:
{}
}
}
\ No newline at end of file
src/App.vue
View file @
0bd9bf42
...
...
@@ -64,7 +64,7 @@ export default {
//overflow-scrolling: touch;
}
.weui-dialog {
top: 45vh !important;
}
//
.weui-dialog {
//
top: 45vh !important;
//
}
</
style
>
yarn.lock
View file @
0bd9bf42
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment