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 fbb3b67

Browse files
updating typeings for third-party dependencies; updating tsconfig.json configuration
1 parent aadfc02 commit fbb3b67

File tree

11 files changed

+45
-40
lines changed

11 files changed

+45
-40
lines changed

‎GhostUI/ClientApp/.browserslistrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
> 1%
2-
last2versions
3-
not dead
2+
notdead
3+
not op_miniall

‎GhostUI/ClientApp/.eslintrc.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
module.exports = {
22
root: true,
33
env: {
4-
node: true
4+
node: true,
55
},
66
extends: [
77
"plugin:vue/essential",
88
"eslint:recommended",
99
"@vue/typescript/recommended",
10-
"@vue/prettier/@typescript-eslint"
10+
"@vue/prettier/@typescript-eslint",
1111
],
1212
parserOptions: {
13-
ecmaVersion: 2020
13+
ecmaVersion: 2020,
1414
},
1515
rules: {
16+
"@typescript-eslint/no-inferrable-types": "off",
1617
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
17-
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
18-
}
18+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
19+
},
1920
};

‎GhostUI/ClientApp/src/components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<font-awesome-icon :icon="['fab', 'medium-m']"/>
2424
</a>
2525
</div>
26-
<div class="content">based-ghost LLC &copy; 2020</div>
26+
<div class="content">based-ghost LLC &copy; 2021</div>
2727
</footer>
2828
</template>
2929

‎GhostUI/ClientApp/src/config/axios.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const handleAxiosError = (error: AxiosError): void => {
1010
};
1111

1212
// Setup Error Message
13-
if (typeof error !== 'undefined' && error.hasOwnProperty('message')) {
13+
if (
14+
typeof error !== 'undefined' &&
15+
Object.prototype.hasOwnProperty.call(error, 'message')
16+
) {
1417
message.body = error.message;
1518
}
1619

@@ -41,9 +44,9 @@ const handleAxiosError = (error: AxiosError): void => {
4144

4245
// Try to Use the Response Message
4346
if (
44-
error.hasOwnProperty('response') &&
45-
error.response.hasOwnProperty('data') &&
46-
error.response.data.hasOwnProperty('message') &&
47+
Object.prototype.hasOwnProperty.call(error,'response') &&
48+
Object.prototype.hasOwnProperty.call(error.response,'data') &&
49+
Object.prototype.hasOwnProperty.call(error.response.data,'message') &&
4750
!!error.response.data.message.length
4851
) {
4952
message.body = error.response.data.message;
@@ -52,10 +55,7 @@ const handleAxiosError = (error: AxiosError): void => {
5255

5356

5457
// Log in console or use Snotify notification (via Global EventBus)
55-
EventBus.$snotify.error(
56-
`${message.status} (${message.body})`,
57-
'XHR Error'
58-
);
58+
EventBus.$snotify.error(`${message.status} (${message.body})`, 'XHR Error');
5959
};
6060

6161
export default class AxiosGlobalConfig {

‎GhostUI/ClientApp/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import '@/config/fa.config';
55
import App from '@/App.vue';
66
import store from '@/store';
77
import router from '@/router';
8-
import Snotify from 'vue-snotify';
98
import { vClickOutside } from '@/plugins';
109
import { SignalRApi } from '@/api/signalR.service';
11-
import { snotifyDefaults } from '@/config/vue-snotify.config';
1210
import AxiosGlobalConfig from '@/config/axios.config';
11+
import Snotify from 'vue-snotify';
12+
import { snotifyDefaults } from '@/config/vue-snotify.config';
1313

1414
// Install custom plugins/third-party packages
1515
Vue.use(vClickOutside);

‎GhostUI/ClientApp/src/types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import './shims-vue';
2+
import './shims-svg';
3+
import './shims-tsx';
4+
import './shims-snotify';
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import Vue from 'vue'
2-
import { SnotifyService } from 'vue-snotify/SnotifyService'
1+
import { SnotifyService } from 'vue-snotify/SnotifyService'
32

43
declare module 'vue/types/vue' {
54
interface Vue {
65
$snotify: SnotifyService
76
}
8-
}
7+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
declare module "*.vue" {
22
import Vue from "vue";
33
export default Vue;
4-
}
4+
}

‎GhostUI/ClientApp/src/views/Login/child-components/PasswordInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { AuthModule } from "../../../store/modules/auth";
2828
2929
@Component
3030
export default class PasswordInput extends Vue {
31-
public showPassword = false;
31+
public showPassword:boolean = false;
3232
3333
@Prop() public readonly isInputInvalid: boolean;
3434

‎GhostUI/ClientApp/tsconfig.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
"target": "esnext",
44
"module": "esnext",
55
"jsx": "preserve",
6-
"strict": true,
7-
"allowJs": true,
8-
"noImplicitAny": false,
6+
"noImplicitAny": false,
7+
"noImplicitThis": true,
98
"importHelpers": true,
109
"moduleResolution": "node",
11-
"resolveJsonModule": true,
1210
"experimentalDecorators": true,
1311
"esModuleInterop": true,
14-
"strictPropertyInitialization": false,
12+
"strictPropertyInitialization": false,
1513
"allowSyntheticDefaultImports": true,
1614
"sourceMap": true,
1715
"baseUrl": ".",
@@ -27,7 +25,8 @@
2725
"lib": [
2826
"esnext",
2927
"dom",
30-
"dom.iterable"
28+
"dom.iterable",
29+
"scripthost"
3130
]
3231
},
3332
"include": [
@@ -40,4 +39,4 @@
4039
"exclude": [
4140
"node_modules"
4241
]
43-
}
42+
}

0 commit comments

Comments
(0)

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