This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserModel { | |
construct(data) { | |
this.data = data | |
} | |
name() { | |
return this.data.firstname + ' ' + this.data.lastname | |
} | |
// and so on, put other methods here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[AspNetUsers] ( | |
[Id] NVARCHAR (450) NOT NULL, | |
[UserName] NVARCHAR (256) NULL, | |
[Ime] NVARCHAR (30) NULL, | |
[Prezime] NVARCHAR (30) NULL, | |
[NormalizedUserName] NVARCHAR (256) NULL, | |
[Email] NVARCHAR (256) NULL, | |
[NormalizedEmail] NVARCHAR (256) NULL, | |
[EmailConfirmed] BIT NOT NULL, | |
[PasswordHash] NVARCHAR (MAX) NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<!-- for example router view --> | |
<router-view></router-view> | |
</div> | |
</template> | |
<script> | |
export default { | |
mounted () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Make clicks pass-through */ | |
#nprogress { | |
pointer-events: none; | |
} | |
#nprogress .bar { | |
background: #29d; | |
position: fixed; | |
z-index: 1031; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add a request interceptor | |
axios.interceptors.request.use(function (config) { | |
// Do something before request is sent | |
NProgress.start(); | |
return config; | |
}, function (error) { | |
// Do something with request error | |
console.error(error) | |
return Promise.reject(error); | |
}); |