feat: add baidu statistics code; use dialog instead of zenity for shell.

dev
DebuggerX 3 years ago
parent a6de246dd0
commit b667823d27

@ -19,13 +19,12 @@ class SchemeApplyUtil implements SchemeApplyUtilStub {
'${H.transGesturePropsToConfig(scheme.gestures ?? [])}',
'EOF',
];
cmd.add('zenity'
' --title="${LocaleKeys.info_apply_scheme_success.tr()}"'
' --question'
' --no-wrap'
' --text="${LocaleKeys.info_apply_scheme_description.tr()}"'
' --ok-label=${LocaleKeys.info_apply_scheme_logout_immediately.tr()}'
' --cancel-label=${LocaleKeys.str_cancel.tr()}'
cmd.add('dialog'
' --title "${LocaleKeys.info_apply_scheme_success.tr()}"'
' --yes-label "${LocaleKeys.info_apply_scheme_logout_immediately.tr()}"'
' --no-label "${LocaleKeys.str_cancel.tr()}"'
' --yesno "${LocaleKeys.info_apply_scheme_description.tr()}"'
' 8 30'
' && ${deepinLogoutCommands.join(' ')}');
Clipboard.setData(ClipboardData(
text: cmd.join('\n'),

@ -27,6 +27,16 @@
<title>dde_gesture_manager</title>
<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>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to

Loading…
Cancel
Save