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
2019-12-16 10:44:38.237 10084-10084/org.edx.mobile E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: org.edx.mobile, PID: 10084 | |
java.lang.RuntimeException: java.lang.InstantiationException: java.lang.Class<org.edx.mobile.util.Config$ApiUrlVersionConfig> has no zero argument constructor | |
at org.edx.mobile.util.Config.getObjectOrNewInstance(Config.java:851) | |
at org.edx.mobile.util.Config.getApiUrlVersionConfig(Config.java:838) | |
at org.edx.mobile.view.CourseOutlineFragment.onCreateLoader(CourseOutlineFragment.java:254) | |
at androidx.loader.app.LoaderManagerImpl.createAndInstallLoader(LoaderManagerImpl.java:383) | |
at androidx.loader.app.LoaderManagerImpl.initLoader(LoaderManagerImpl.java:421) | |
at org.edx.mobile.view.CourseOutlineFragment.fetchCourseComponent(CourseOutlineFragment.java:230) | |
at org.edx.mobile.view.CourseOutlineFragment.onCreateView(CourseOutlineFragment.java:181) |
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
2019-11-08 11:07:46.506 20350-20350/mypackage.classical.test V/CouchbaseLite/QUERY: {QueryEnum#726} END | |
2019-11-08 11:07:46.506 20350-20350/mypackage.classical.test I/CouchbaseLite/QUERY: End of query enumeration | |
2019-11-08 11:07:46.561 20350-20350/mypackage.classical.test I/CouchbaseLite/REPLICATOR: Replicator is starting ..... | |
2019-11-08 11:07:46.561 20350-20350/mypackage.classical.test I/CouchbaseLite/REPLICATOR: Replicator{@b73c872,<->,Database{@447e7c3, name='mydb'},URLEndpoint{url=ws://mydomain.com:4984/mydb}]: Starting | |
2019-11-08 11:07:46.579 20350-20350/mypackage.classical.test I/CouchbaseLite/DATABASE: {DB#727}==> N8litecore14SQLiteDataFileE /data/user/0/mypackage.classical.test/files/mydb.cblite2/db.sqlite3 @0x6f7a4e4300 | |
2019-11-08 11:07:46.579 20350-20350/mypackage.classical.test I/CouchbaseLite/DATABASE: {DB#727} Opening database | |
2019-11-08 11:07:46.583 20350-20350/mypackage.classical.test I/CouchbaseLite/NETWORK: {N8litecore4blip10ConnectionE#728}==> N8litecore4blip10ConnectionE ->ws://mydomain.c |
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 JSONResponse { | |
constructor() {} | |
static success(req, res, message, data) { | |
res.status(200).json({ | |
code: 200, | |
message: message || 'success', | |
data: data, | |
}); | |
} |
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
import * as express from 'express' | |
import router from './routes/index' | |
import * as bodyParser from 'body-parser'; | |
class App { | |
public express | |
constructor() { | |
this.express = express() | |
this.express.use(bodyParser.json({ limit: '50mb' })) | |
this.loadRoutes() | |
} |
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
import * as express from 'express' | |
import Teacher from './../models/Teacher' | |
import Student from './../models/Student' | |
import User from '../models/User'; | |
import JSONResponse from '../libs/JSONResponse' | |
const router = express.Router() | |
router.post('/register', (req, res) => { | |
try { | |
let user: User; |
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
import User from './User' | |
class Student extends User { | |
constructor() | |
constructor(email: String) | |
constructor(name: String, email: String) | |
constructor(name: String, email: String, pwd: String) | |
constructor(name?: String, email?: String, pwd?: String) { | |
super(name, email, pwd, 'student') | |
} |
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
import User from './User' | |
import Student from './Student' | |
class Teacher extends User { | |
constructor() | |
constructor(email: String) | |
constructor(name: String, email: String) | |
constructor(name: String, email: String, pwd: String) | |
constructor(name?: String, email?: String, pwd?: String) { | |
super(name, email, pwd, 'teacher') |
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 User { | |
public name: String | |
public email: String | |
public role: String | |
private pwd: String | |
private ID: Number | |
constructor() | |
constructor(email: String) | |
constructor(name: String, email: String) |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"outDir": "dist", | |
"sourceMap": true | |
}, | |
"include": [ | |
"src/**/*.ts" |
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
{ | |
"name": "ts-server", | |
"version": "1.0.0", | |
"description": "", | |
"main": "server.js", | |
"scripts": { | |
"build": "./node_modules/.bin/tsc", | |
"start": "npm run build && node dist/server.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, |
NewerOlder