Skip to content

Instantly share code, notes, and snippets.

View nemanja947's full-sized avatar

Nemanja Bjelic nemanja947

  • Belgrade,Serbia
View GitHub Profile
class UserModel {
construct(data) {
this.data = data
}
name() {
return this.data.firstname + ' ' + this.data.lastname
}
// and so on, put other methods here
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,
<template>
<div id="app">
<!-- for example router view -->
<router-view></router-view>
</div>
</template>
<script>
export default {
mounted () {
@nemanja947
nemanja947 / nprogress.css
Created January 25, 2018 08:19
NProgress css example
/* Make clicks pass-through */
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: #29d;
position: fixed;
z-index: 1031;
@nemanja947
nemanja947 / NprogressAxios.js
Last active October 7, 2023 01:44
NProgress implementation with Axios
// 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);
});