Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
6
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.563 to 1.1.564

code/www/xf-admin/views/sign-in/sign-in.css

2

code/api/demo.api.js

@@ -7,3 +7,3 @@ 'use strict';

$hello() {
return 'hello world';
return 'hello world123123';
}

@@ -10,0 +10,0 @@

@@ -28,3 +28,3 @@ 'use strict'

mysql: {
db1: { host: '192.168.1.191', port: '3306', user: 'rtworld', password: 'rtworld123456', database: 'node_tester' }
db1: { host: '192.168.1.191', port: '3306', user: 'rtworld', password: 'rtworld123456', database: 'rtworld_mz' }
}

@@ -31,0 +31,0 @@ }

@@ -1,3 +0,2 @@


xf.module({
xf.module({

@@ -12,3 +11,3 @@ name: 'DEditor.Form',

init: function (page) {
init: function(page) {
var el = page.context.el;

@@ -31,3 +30,3 @@ var list = el.classList;

computed: {
metaMap: function () {
metaMap: function() {
return this.Context.para.metaMap;

@@ -40,6 +39,6 @@ }

// 推测题目
getName: function (name) {
getName: function(name) {
var t = this;
var arr = t.Context.para.fields || [];
var field = arr.filter(function (n) {
var field = arr.filter(function(n) {
return n.field === name;

@@ -51,3 +50,3 @@ });

// 载入记录
load: function (id) {
load: function(id) {
var t = this;

@@ -57,3 +56,3 @@ var para = { id: id };

t.Modal.post('@find', para).done(function (result) {
t.Modal.post('@find', para).done(function(result) {
for (var k in t.row) {

@@ -74,7 +73,7 @@ var v = result[k];

// 保存记录
save: function () {
save: function() {
var t = this;
var para = t.row;
var msg = t.Modal.checker(t.row, t.checker, { box: t.$el });
var msg = t.Modal.checker(para, t.checker, { box: t.$el });
if (msg) {

@@ -86,3 +85,3 @@ if (msg.length) { alert(msg.join('\n')); }

var aName = t.mode === 1 ? '@create' : '@update';
t.Modal.post(aName, para).done(function (json) {
t.Modal.post(aName, para).done(function(json) {
t.Modal.callback({});

@@ -94,3 +93,3 @@ t.Page.close();

// 重新载入
reset: function () {
reset: function() {
var t = this;

@@ -101,3 +100,3 @@ t.load();

// 所有输入都可用
enableAll: function () {
enableAll: function() {

@@ -104,0 +103,0 @@ var all = this.$el.querySelectorAll('[disabled]');

@@ -1,2 +0,1 @@

xf.module({

@@ -6,5 +5,5 @@

module: function () {
module: function() {
var Builder = function (context, opt) {
var Builder = function(context, opt) {

@@ -15,6 +14,6 @@ var t = this;

// 成员
t.context = c; // 上下文
t.name = c.name; // 视图名
t.opt = opt = opt || {}; // 构建参数
t.map = opt.map || {}; // 自定义配置
t.context = c; // 上下文
t.name = c.name; // 视图名
t.opt = opt = opt || {}; // 构建参数
t.map = opt.map || {}; // 自定义配置
c.modal = t;

@@ -58,3 +57,3 @@

// 创建Vue对象
vue: function (name) {
vue: function(name) {

@@ -71,6 +70,6 @@ var t = this;

computed: {
Page: function () { return t.context.page; }, // 页面对象
View: function () { return t.context.view; }, // 视图对象
Context: function () { return t.context; }, // 上下文
Modal: function () { return t; } // 视图控制器
Page: function() { return t.context.page; }, // 页面对象
View: function() { return t.context.view; }, // 视图对象
Context: function() { return t.context; }, // 上下文
Modal: function() { return t; } // 视图控制器
},

@@ -111,3 +110,3 @@ methods: {

// 视图控制器创建就绪
ready: function (fn) {
ready: function(fn) {
var t = this;

@@ -118,7 +117,7 @@ var c = t.context;

// 执行回调
fn.call(t, c.para);
fn && fn.call(t, c.para);
},
// 提交数据
post: function (url, data, option) {
post: function(url, data, option) {
var t = this;

@@ -130,3 +129,3 @@

opt.beforeSend = function () {
opt.beforeSend = function() {
t._postRemain = t._postRemain || 0;

@@ -137,3 +136,3 @@ t._postRemain++;

opt.beforeReady = function () {
opt.beforeReady = function() {
t._postRemain--;

@@ -149,3 +148,3 @@ if (t._postRemain === 0) {

// 检查数据
checker: function (row, rules, opt) {
checker: function(row, rules, opt) {
var t = this;

@@ -155,3 +154,3 @@ opt = opt || {};

// 在元素上显示错误
var tip = function (key, msg) {
var tip = function(key, msg) {
var el = opt.box.querySelector('[data-checker="' + key + '"]');

@@ -165,3 +164,3 @@ if (!el) return false;

el._checker_msg = xf.el('div', { className: 'checker-msg' });
el.addEventListener('click', function (e) {
el.addEventListener('click', function(e) {
e.target.classList.remove('error');

@@ -210,3 +209,3 @@ el._checker_msg.remove();

// 回调函数
callback: function (para) {
callback: function(para) {
xf.log('[#93B983]callback', para);

@@ -220,3 +219,3 @@ return this.context.para.callback.call(this, para);

// 在数组中,根据value找key
Builder.findKey = function (arr, val) {
Builder.findKey = function(arr, val) {
arr = arr || [];

@@ -223,0 +222,0 @@ var len = arr.length;

@@ -29,3 +29,3 @@ #!/usr/bin/env node

console.log('demo inited');
console.log('���븴�����');
{
"name": "koa-rtapi",
"version": "1.1.563",
"version": "1.1.564",
"description": "koa api in rtworld company",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc