feat: add baidu statistics code; use dialog instead of zenity for shell.
This commit is contained in:
@@ -19,13 +19,12 @@ class SchemeApplyUtil implements SchemeApplyUtilStub {
|
|||||||
'${H.transGesturePropsToConfig(scheme.gestures ?? [])}',
|
'${H.transGesturePropsToConfig(scheme.gestures ?? [])}',
|
||||||
'EOF',
|
'EOF',
|
||||||
];
|
];
|
||||||
cmd.add('zenity'
|
cmd.add('dialog'
|
||||||
' --title="${LocaleKeys.info_apply_scheme_success.tr()}"'
|
' --title "${LocaleKeys.info_apply_scheme_success.tr()}"'
|
||||||
' --question'
|
' --yes-label "${LocaleKeys.info_apply_scheme_logout_immediately.tr()}"'
|
||||||
' --no-wrap'
|
' --no-label "${LocaleKeys.str_cancel.tr()}"'
|
||||||
' --text="${LocaleKeys.info_apply_scheme_description.tr()}"'
|
' --yesno "${LocaleKeys.info_apply_scheme_description.tr()}"'
|
||||||
' --ok-label=${LocaleKeys.info_apply_scheme_logout_immediately.tr()}'
|
' 8 30'
|
||||||
' --cancel-label=${LocaleKeys.str_cancel.tr()}'
|
|
||||||
' && ${deepinLogoutCommands.join(' ')}');
|
' && ${deepinLogoutCommands.join(' ')}');
|
||||||
Clipboard.setData(ClipboardData(
|
Clipboard.setData(ClipboardData(
|
||||||
text: cmd.join('\n'),
|
text: cmd.join('\n'),
|
||||||
|
|||||||
@@ -27,6 +27,16 @@
|
|||||||
|
|
||||||
<title>dde_gesture_manager</title>
|
<title>dde_gesture_manager</title>
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
|
<!-- Baidu statistics -->
|
||||||
|
<script>
|
||||||
|
var _hmt = _hmt || [];
|
||||||
|
(function() {
|
||||||
|
var hm = document.createElement("script");
|
||||||
|
hm.src = "https://hm.baidu.com/hm.js?45acc9824a216a8f1792b419eb91f090";
|
||||||
|
var s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(hm, s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- This script installs service_worker.js to provide PWA functionality to
|
<!-- This script installs service_worker.js to provide PWA functionality to
|
||||||
|
|||||||
Reference in New Issue
Block a user