Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 526b614

Browse files
bump node deps; bump .NET nuget packages; refactor ClientApp javascript/vue files
1 parent b640bec commit 526b614

File tree

7 files changed

+20
-18
lines changed

7 files changed

+20
-18
lines changed

‎GhostUI/ClientApp/.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
> 1%
2+
last 2 versions
23
not dead
3-
not op_mini all

‎GhostUI/ClientApp/src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Vue from 'vue';
2+
import App from '@/App.vue';
23
import '@/registerServiceWorker';
34
import '@/assets/style/scss/main.scss';
4-
import '@/config/fa.config';
5-
import App from '@/App.vue';
65
import store from '@/store';
76
import router from '@/router';
7+
import Snotify from 'vue-snotify';
88
import { vClickOutside } from '@/plugins';
99
import { SignalRApi } from '@/api/signalr.service';
1010
import { AxiosGlobalConfig, snotifyDefaults } from '@/config';
11-
import Snotifyfrom'vue-snotify';
11+
import '@/config/fa.config';
1212

1313
// Install custom plugins/third-party packages
1414
Vue.use(vClickOutside);
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export default {
1+
const DEFAULT_EVENTS: string[] = ['click', 'touchstart'];
2+
3+
const vClickOutside = {
24
install(Vue) {
35
Vue.directive('click-outside', {
46
bind: function(el, binding, vNode) {
@@ -10,24 +12,24 @@
1012

1113
const bubble = binding.modifiers.bubble;
1214

13-
const handler = (e) => {
15+
const handlerFn = (e) => {
1416
if (bubble || (!el.contains(e.target) && el !== e.target)) {
1517
binding.value(e);
1618
}
1719
};
1820

19-
el.__vueClickOutside__ = handler;
20-
document.addEventListener('click', handler, true);
21-
document.addEventListener('touchstart', handler, true);
21+
el.__vueClickOutside__ = handlerFn;
22+
DEFAULT_EVENTS.forEach((type) => document.addEventListener(type, handlerFn));
2223
},
2324

2425
unbind: function(el) {
25-
if (!el.__vueClickOutside__) return;
26-
27-
document.removeEventListener('click', el.__vueClickOutside__, true);
28-
document.removeEventListener('touchstart', el.__vueClickOutside__, true);
29-
el.__vueClickOutside__ = null;
26+
if (el.__vueClickOutside__) {
27+
DEFAULT_EVENTS.forEach((type) => document?.removeEventListener(type, el.__vueClickOutside__));
28+
el.__vueClickOutside__ = null;
29+
}
3030
}
3131
});
3232
}
3333
};
34+
35+
export default vClickOutside;

‎GhostUI/ClientApp/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"lib": [
2626
"esnext",
2727
"dom",
28-
"dom.iterable"
28+
"dom.iterable",
29+
"scripthost"
2930
]
3031
},
3132
"include": [

‎GhostUI/ClientApp/vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
},
3838

3939
// https://cli.vuejs.org/guide/webpack.html
40-
configureWebpack: (config) => {
40+
configureWebpack: () => {
4141
if (process.env.NODE_ENV !== "production") {
4242
return {};
4343
}

‎GhostUI/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
114114
settings.DocumentPath = "/docs/api-specification.json";
115115
});
116116

117-
app.UseHttpsRedirection();
117+
// app.UseHttpsRedirection();
118118
app.UseStaticFiles();
119119
app.UseSpaStaticFiles();
120120
app.UseRouting();

‎GhostUI/appsettings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@
3333
"Webhooks": [],
3434
"EvaluationTimeOnSeconds": 10,
3535
"MinimumSecondsBetweenFailureNotifications": 60
36-
// "HealthCheckDatabaseConnectionString": "Data Source=[PUT-MY-PATH-HERE]\\healthchecksdb" //-> Optional, default on WebContentRoot
3736
}
3837
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /