mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Mostly finished with backend data api poc
This commit is contained in:
parent
b6feb258b1
commit
729e3b4167
@ -1,9 +1,14 @@
|
||||
var endpoint = require('./endpoint.js');
|
||||
var auth = require('../../core/jwt_auth.js').auth;
|
||||
var sql = require('./sql.js');
|
||||
|
||||
var RegisterAPI = function(app, api) {
|
||||
endpoint.Register(app, api, 'account', 'account', 'id');
|
||||
|
||||
//Can register custom controller actions here.
|
||||
app.post('/api/data/account/search', auth, function (req, res) {
|
||||
sql.Search(req, res, 'account', 'id', ['id', 'name']);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
||||
@ -7,7 +7,7 @@ var RegisterAPI = function(app, api) {
|
||||
|
||||
//Can register custom controller actions here.
|
||||
app.post('/api/data/item/search', auth, function (req, res) {
|
||||
sql.Search(req, res, 'items', 'id', ['id', 'name']);
|
||||
sql.Search(req, res, 'items', 'id', ['id', 'name', 'icon']);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -32,7 +32,8 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
||||
res.header("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT");
|
||||
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization");
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
461
wi/wi-front/dist/css/vendor.css
vendored
461
wi/wi-front/dist/css/vendor.css
vendored
File diff suppressed because one or more lines are too long
28301
wi/wi-front/dist/js/bundle.js
vendored
28301
wi/wi-front/dist/js/bundle.js
vendored
File diff suppressed because it is too large
Load Diff
2
wi/wi-front/dist/js/bundle.js.map
vendored
2
wi/wi-front/dist/js/bundle.js.map
vendored
File diff suppressed because one or more lines are too long
@ -74,7 +74,9 @@ gulp.task('javascript:prod', ['app:javascript:prod']);
|
||||
var vendor_css = [
|
||||
'node_modules/angular-material/angular-material.min.css',
|
||||
'node_modules/angular-loading-bar/build/loading-bar.min.css',
|
||||
'node_modules/mdi/css/materialdesignicons.min.css'
|
||||
'node_modules/mdi/css/materialdesignicons.min.css',
|
||||
'node_modules/datatables.net-dt/css/jquery.dataTables.css',
|
||||
'node_modules/angular-datatables/dist/css/angular-datatables.min.css'
|
||||
];
|
||||
|
||||
gulp.task('vendor:css:prod', function() {
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
"angular": "^1.6.1",
|
||||
"angular-animate": "^1.6.1",
|
||||
"angular-aria": "^1.6.1",
|
||||
"angular-datatables": "^0.6.0",
|
||||
"angular-loading-bar": "^0.9.0",
|
||||
"angular-material": "^1.1.1",
|
||||
"angular-ui-router": "^0.4.2",
|
||||
|
||||
@ -1,11 +1,16 @@
|
||||
'use strict';
|
||||
var $ = global.jQuery = require('jquery');
|
||||
require('datatables.net')(jQuery);
|
||||
|
||||
var angular = require('angular');
|
||||
require('angular-material');
|
||||
require('angular-ui-router');
|
||||
require('angular-loading-bar');
|
||||
require('angular-animate');
|
||||
require('ngstorage');
|
||||
require('angular-datatables');
|
||||
|
||||
var app = angular.module('app', ['ngMaterial', 'ui.router', 'angular-loading-bar', 'ngAnimate' ,'ngStorage', 'templates']);
|
||||
var app = angular.module('app', ['ngMaterial', 'ui.router', 'angular-loading-bar', 'ngAnimate' ,'ngStorage', 'templates', 'datatables']);
|
||||
|
||||
app.config(['$sceDelegateProvider', 'cfpLoadingBarProvider', '$animateProvider', '$compileProvider', '$localStorageProvider', '$sessionStorageProvider', '$httpProvider',
|
||||
function($sceDelegateProvider, cfpLoadingBarProvider, $animateProvider, $compileProvider, $localStorageProvider, $sessionStorageProvider, $httpProvider) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user