Skip to content

Commit

Permalink
Revert "Merge pull request #84 from codex-team/user-support"
Browse files Browse the repository at this point in the history
This reverts commit 5b993c1, reversing
changes made to 192d4c2.
  • Loading branch information
n0str committed Dec 8, 2017
1 parent 5b993c1 commit 22e6b2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 63 deletions.
15 changes: 3 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,17 @@ const BrowserWindow = electron.BrowserWindow;
let pkg = require('./package.json');

const DirectoryClass = require('./models/directory');
const UsersClass = require('./models/users');
const DirectoryControllerClass = require('./controllers/directory');
const NotesControllerClass = require('./controllers/note');


const db = require('./utils/database');

db.makeInitialSettings(app.getPath('userData'));
let Directory = new DirectoryClass();
let Users = new UsersClass();

Users.register().then(function() {

let directoryCtrl = new DirectoryControllerClass();
let notesCtrl = new NotesControllerClass();

}).catch(function (err) {
console.log("Initialization error", err);
});

// run controllers
let directoryCtrl = new DirectoryControllerClass();
let notesCtrl = new NotesControllerClass();

let mainWindow = null;

Expand Down
51 changes: 0 additions & 51 deletions models/users.js

This file was deleted.

0 comments on commit 22e6b2b

Please sign in to comment.