code
stringlengths 2
1.05M
|
---|
var pronto = require('../pronto');
var util = require('util');
function SPrintF(){}
pronto.inheritsCommand(SPrintF);
module.exports = SPrintF;
/**
* Simple sprintf template.
*
* This takes to arguments:
*
* %s: title
* %s: body
*/
SPrintF.HTML5 = (function () {
return "<!DOCTYPE html>\n<html>\n<head>\n"
+ "<meta charset=\"utf-8\">\n<title>%s</title>\n</head>\n"
+ "<body>%s</body></html>";
})();
SPrintF.prototype.execute = function(cxt, params){
var filter = params.format|| "%s";
delete params.format;
var allArgs = [filter];
for (param in params) {
allArgs.push(params[param]);
}
var res = util.format.apply(this,allArgs);
this.done(res);
}
|
/*
General functions
*/
.import "qrc:/dataStorage.js" as Storage
function addTask(taskModel, task, tasksList, parentLayout) {
var extraData = loadExtraData(parentLayout)
if (task.length > 0) {
var item = {task: task, state: "paused"};
console.log("Extra data: " + extraData);
for (var property in extraData) {
item[property] = extraData[property];
}
delete item['task']
console.log("Task: " + task);
console.log("Item: " + JSON.stringify(item));
Storage.AddOrUpdateTask(task, item);
item['task'] = task;
tasksModel.insert(0, item);
tasksList.currentIndex = 0;
}
}
function loadExtraData(parentLayout) {
var extraData = {};
for (var x=0; x<parentLayout.inputObjects.length; x++) {
var extra = parentLayout.inputObjects[x].extraData();
for (var property in extra) {
extraData[property] = extra[property];
}
}
return extraData;
}
|
import $ from 'jquery'
export default function (element, destination) {
element.remove()
destination.append(element)
}
|
(function () {
'use strict';
class Material {
constructor(args) {
this.values = args.values;
}
}
module.exports = Material;
}());
|
var jshint = require('gulp-jshint');
var reporter = require('../');
var gutil = require('gulp-util');
var join = require('path').join;
var fs = require('fs');
var should = require('should');
var outfilename = join(__dirname, '../jshint-output.html');
describe('file reporter', function () {
afterEach(function (done) {
fs.unlink(outfilename, done);
});
it('should write a line for every error and every filename that failed', function (done) {
var fileRoot = '/home/username/code/project';
var getErrCountRE = /(\d+) lint errors/;
var head = jshint();
var tail = head.pipe(jshint.reporter(reporter, { filename: outfilename }));
tail.once('end', function () {
fs.readFile(outfilename, 'utf8', function (err, out) {
should.not.exist(err);
out.should.match(getErrCountRE);
var count = out.match(getErrCountRE)[1];
out.match(/^ \[\d+/gm).length.should.eql(count);
done();
});
});
head.write(new gutil.File({
cwd: fileRoot,
base: fileRoot,
path: fileRoot + '/file.js',
contents: new Buffer('not valid json', 'utf8')
}));
head.end();
});
});
|
const { UserResource, Permission } = require('../../lib/index');
const User = require('./user.model');
const userResource = new UserResource({ model: User });
/**
* Custom endpoints.
*/
userResource.add({
id: 'check',
path: '/check',
method: 'get',
handler: () => ({ working: true }),
});
userResource.get('check').access(Permission.isUser());
/**
* General permissions.
*/
userResource.get('findById').access(Permission.isUser());
userResource.get('changePassword').access(Permission.isUser());
userResource.get('forgotPassword').access(Permission.isAnyone());
userResource.get('resetPassword').access(Permission.isTokenized());
module.exports = userResource;
|
import Resources from "./Resources"
import Resource from "./Resource"
import Texture from "./Texture"
import Spritesheet from "./Spritesheet"
import Frame from "./Frame"
class Animation extends Resource
{
constructor() {
super()
this.loadLater = true
this.frames = []
this.delay = 0
this.pauseLastFrame = false
}
loadFromConfig(config) {
this.delay = config.delay || 100
this.pauseLastFrame = config.pauseLastFrame || false
this.loadFrames(config.frames)
}
loadFrames(frames) {
for(let n = 0; n < frames.length; n++) {
const frameInfo = frames[n]
if(typeof frameInfo === "string") {
this.loadFrame(frameInfo, this.delay)
}
else {
this.loadFrame(frameInfo.texture, frameInfo.delay || this.delay, frameInfo.regex)
}
}
}
loadFrame(texture, delay, regex) {
const index = texture.indexOf("/")
if(index === -1) {
const source = Resources.get(texture)
if(source instanceof Texture) {
const sourceFrames = source.frames
if(regex) {
for(let key in sourceFrames) {
if(!key.match(regex)) {
continue
}
const sourceFrame = sourceFrames[key]
const frame = new Frame(sourceFrame.texture, sourceFrame.coords, delay)
this.frames.push(frame)
}
}
else {
for(let key in sourceFrames) {
const sourceFrame = sourceFrames[key]
const frame = new Frame(sourceFrame.texture, sourceFrame.coords, delay)
this.frames.push(frame)
}
}
}
else {
console.warn(`(Animation.loadFrames) Unsupported source type: ${source.name}`)
return
}
}
else {
const sourceInfo = texture.split("/")
const source = Resources.get(sourceInfo[0])
if(source instanceof Texture) {
const sourceFrame = source.getFrame(sourceInfo[1])
const frame = new Frame(sourceFrame.texture, sourceFrame.coords, delay)
this.frames.push(frame)
}
else {
console.warn(`(Animation.loadFrames) Unsupported source type: ${source.name}`)
return
}
}
}
getFrame(frameIndex) {
return this.frames[frameIndex]
}
}
export default Animation
|
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('bs');
|
(function () {
function Courses() {
// indexed by the provided courseid which omits 0 and hence a sparse array
// careful when iterating or getting length!
this.courses = [];
this.totaltracks = 0;
this.numberofcourses = 0;
this.highestControlNumber = 0;
}
Courses.prototype = {
Constructor: Courses,
getCourseName: function (courseid) {
return this.courses[courseid].name;
},
isValidCourseId: function (courseid) {
// detects the unused entries in the courses array
// index 0 never used: some others not used if you only set up certain courses for a set of results
return courseid in this.courses;
},
getCoursesForEvent: function () {
var i, course, courses;
courses = [];
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
course = {};
course.id = this.courses[i].courseid;
course.name = this.courses[i].name;
course.results = this.courses[i].resultcount;
courses.push(course);
}
}
return courses;
},
getHighestControlNumber: function () {
return this.highestControlNumber;
},
getCourseDetails: function (courseid) {
return this.courses[courseid];
},
getCourseLegLengths: function (courseid) {
return this.courses[courseid].getLegLengths();
},
getNumberOfControlsOnCourse: function (courseid) {
// codes list includes "S" and "F", so allow for them
return this.courses[courseid].codes.length - 2;
},
incrementTracksCount: function (courseid) {
this.courses[courseid].incrementTracksCount();
this.totaltracks += 1;
},
addCourse: function (courseObject) {
this.courses[courseObject.courseid] = courseObject;
this.numberofcourses += 1;
// allow for courses with no defined controls
// careful here: != catches null and undefined, but !== just catches undefined
if (this.courses[courseObject.courseid].codes !== undefined) {
if (this.courses[courseObject.courseid].codes.length > this.highestControlNumber) {
// the codes includes Start and Finish: we don't need F so subtract 1 to get controls
this.highestControlNumber = this.courses[courseObject.courseid].codes.length - 1;
this.updateControlDropdown();
}
}
},
updateCourseDropdown: function () {
$("#rg2-course-select").empty();
var i, dropdown;
dropdown = document.getElementById("rg2-course-select");
dropdown.options.add(rg2.utils.generateOption(null, rg2.t("Select course")));
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
dropdown.options.add(rg2.utils.generateOption(i, rg2.he.decode(this.courses[i].name)));
}
}
},
updateControlDropdown: function () {
var i, dropdown;
dropdown = document.getElementById("rg2-control-select");
$("#rg2-control-select").empty();
dropdown.options.add(rg2.utils.generateOption(0, "S"));
dropdown.options.add(rg2.utils.generateOption(rg2.config.MASS_START_BY_CONTROL, "By control"));
for (i = 1; i < this.highestControlNumber; i += 1) {
dropdown.options.add(rg2.utils.generateOption(i, i));
}
},
deleteAllCourses: function () {
this.courses.length = 0;
this.numberofcourses = 0;
this.totaltracks = 0;
this.highestControlNumber = 0;
},
drawCourses: function (intensity) {
var i;
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
this.courses[i].drawCourse(intensity);
}
}
},
putOnDisplay: function (courseid) {
if (this.courses[courseid] !== undefined) {
this.courses[courseid].display = true;
}
},
putAllOnDisplay: function () {
for (let i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
this.putOnDisplay(i);
}
}
},
removeAllFromDisplay: function () {
for (let i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
this.removeFromDisplay(i);
}
}
},
removeFromDisplay: function (courseid) {
this.courses[courseid].display = false;
},
getCoursesOnDisplay: function () {
var i, courses;
courses = [];
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
if (this.courses[i].display) {
courses.push(i);
}
}
}
return courses;
},
allCoursesDisplayed: function () {
for (let i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
if (!this.courses[i].display) {
return false;
}
}
}
return true;
},
getNumberOfCourses: function () {
return this.numberofcourses;
},
// look through all courses and extract list of controls
generateControlList: function (controls) {
var codes, x, y, i, j;
// for all courses
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
codes = this.courses[i].codes;
x = this.courses[i].x;
y = this.courses[i].y;
// for all controls on course
if (codes !== undefined) {
for (j = 0; j < codes.length; j += 1) {
controls.addControl(codes[j], x[j], y[j]);
}
}
}
}
},
updateScoreCourse: function (courseid, codes, x, y) {
var i;
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
if (this.courses[i].courseid === courseid) {
this.courses[i].codes = codes;
this.courses[i].x = x;
this.courses[i].y = y;
this.courses[i].setAngles();
break;
}
}
}
},
setResultsCount: function () {
var i;
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
this.courses[i].resultcount = rg2.results.countResultsByCourseID(i);
}
}
},
formatCoursesAsTable: function () {
var details, html;
html = "<table class='coursemenutable'><tr><th>" + rg2.t("Course") + "</th><th><i class='fa fa-eye'></i></th>";
html += "<th>" + rg2.t("Runners") + "</th><th>" + rg2.t("Routes") + "</th><th><i class='fa fa-eye'></i></th><th><i class='fa fa-play'></i></th></tr>";
details = this.formatCourseDetails();
// add bottom row for all courses checkboxes
html += details.html + "<tr class='allitemsrow'><td>" + rg2.t("All") + "</td>";
html += "<td><input class='showallcourses' id=" + details.coursecount + " type=checkbox name=course></input></td>";
html += "<td>" + details.res + "</td><td>" + this.totaltracks + "</td><td>";
if (this.totaltracks > 0) {
html += "<input id=" + details.coursecount + " class='alltracks' type=checkbox name=track></input>";
}
html += "</td><td></td></tr></table>";
return html;
},
formatCourseDetails: function () {
let details = { html: "", res: 0 };
let i;
for (i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
details.html += "<tr><td>" + this.courses[i].name + "</td>" + "<td><input class='showcourse' id=" + i + " type=checkbox name=course></input></td>";
details.html += "<td>" + this.courses[i].resultcount + "</td>" + "<td>" + this.courses[i].trackcount + "</td><td>";
details.res += this.courses[i].resultcount;
if (this.courses[i].trackcount > 0) {
details.html += "<input id=" + i + " class='allcoursetracks' type=checkbox name=track></input></td>";
details.html += "<td><input id=" + i + " class='allcoursetracksreplay' type=checkbox name=replay></input>";
} else {
details.html += "</td><td>";
}
details.html += "</td></tr>";
}
}
details.coursecount = i;
return details;
},
formatCourseFilters: function () {
let details = "";
for (let i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
// only filter for normal events with at least one control as well as start and finish
if ((!this.courses[i].isScoreCourse) && (this.courses[i].codes.length > 2)) {
details += "<div class='filter-item'>" + this.courses[i].name + "</div><div class='filter-item' id='course-filter-" + this.courses[i].courseid + "'></div>";
}
}
}
return details;
},
formatFilterSliders: function () {
for (let i = 0; i < this.courses.length; i += 1) {
if (this.courses[i] !== undefined) {
let self = this;
$("#course-filter-" + this.courses[i].courseid).slider({
range: true,
min: 0,
max: this.courses[i].codes.length,
values: [0, this.courses[i].codes.length],
slide: function (event, ui) {
self.filterChanged(i, ui.values[0], ui.values[1]);
}
})
}
}
},
drawLinesBetweenControls: function (pt, angle, courseid, opt, filter) {
this.courses[courseid].drawLinesBetweenControls(pt, angle, opt, filter);
},
getFilterDetails: function (courseid) {
const filter = {};
filter.filterFrom = this.courses[courseid].filterFrom;
filter.filterTo = this.courses[courseid].filterTo;
return filter;
},
// slider callback
filterChanged: function (courseid, low, high) {
this.courses[courseid].filterFrom = low;
this.courses[courseid].filterTo = high;
rg2.redraw(false);
},
getExcluded: function (courseid) {
if (courseid in this.courses) {
return this.courses[courseid].exclude;
} else {
return [];
}
},
};
rg2.Courses = Courses;
}());
|
Package.describe({
summary: "a slightly more flexible way to do reactive variables"
});
Package.on_use(function (api) {
api.export("ReactiveVariable");
api.add_files('lib/ReactiveVariable.js', 'client');
});
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Highlighting text that matches the selection
//
// Defines an option highlightSelectionMatches, which, when enabled,
// will style strings that match the selection throughout the
// document.
//
// The option can be set to true to simply enable it, or to a
// {minChars, style, wordsOnly, showToken, delay} object to explicitly
// configure it. minChars is the minimum amount of characters that should be
// selected for the behavior to occur, and style is the token style to
// apply to the matches. This will be prefixed by "cm-" to create an
// actual CSS class name. If wordsOnly is enabled, the matches will be
// highlighted only if the selected text is a word. showToken, when enabled,
// will cause the current token to be highlighted when nothing is selected.
// delay is used to specify how much time to wait, in milliseconds, before
// highlighting the matches.
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("node_modules/codemirror/lib/codemirror.js"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use strict";
var DEFAULT_MIN_CHARS = 2;
var DEFAULT_TOKEN_STYLE = "matchhighlight";
var DEFAULT_DELAY = 100;
var DEFAULT_WORDS_ONLY = false;
function State(options) {
if (typeof options == "object") {
this.minChars = options.minChars;
this.style = options.style;
this.showToken = options.showToken;
this.delay = options.delay;
this.wordsOnly = options.wordsOnly;
}
if (this.style == null) this.style = DEFAULT_TOKEN_STYLE;
if (this.minChars == null) this.minChars = DEFAULT_MIN_CHARS;
if (this.delay == null) this.delay = DEFAULT_DELAY;
if (this.wordsOnly == null) this.wordsOnly = DEFAULT_WORDS_ONLY;
this.overlay = this.timeout = null;
}
CodeMirror.defineOption("highlightSelectionMatches", false, function(cm, val, old) {
if (old && old != CodeMirror.Init) {
var over = cm.state.matchHighlighter.overlay;
if (over) cm.removeOverlay(over);
clearTimeout(cm.state.matchHighlighter.timeout);
cm.state.matchHighlighter = null;
cm.off("cursorActivity", cursorActivity);
}
if (val) {
cm.state.matchHighlighter = new State(val);
highlightMatches(cm);
cm.on("cursorActivity", cursorActivity);
}
});
function cursorActivity(cm) {
var state = cm.state.matchHighlighter;
clearTimeout(state.timeout);
state.timeout = setTimeout(function() {highlightMatches(cm);}, state.delay);
}
function highlightMatches(cm) {
cm.operation(function() {
var state = cm.state.matchHighlighter;
if (state.overlay) {
cm.removeOverlay(state.overlay);
state.overlay = null;
}
if (!cm.somethingSelected() && state.showToken) {
var re = state.showToken === true ? /[\w$]/ : state.showToken;
var cur = cm.getCursor(), line = cm.getLine(cur.line), start = cur.ch, end = start;
while (start && re.test(line.charAt(start - 1))) --start;
while (end < line.length && re.test(line.charAt(end))) ++end;
if (start < end)
cm.addOverlay(state.overlay = makeOverlay(line.slice(start, end), re, state.style));
return;
}
var from = cm.getCursor("from"), to = cm.getCursor("to");
if (from.line != to.line) return;
if (state.wordsOnly && !isWord(cm, from, to)) return;
var selection = cm.getRange(from, to).replace(/^\s+|\s+$/g, "");
if (selection.length >= state.minChars)
cm.addOverlay(state.overlay = makeOverlay(selection, false, state.style));
});
}
function isWord(cm, from, to) {
var str = cm.getRange(from, to);
if (str.match(/^\w+$/) !== null) {
if (from.ch > 0) {
var pos = {line: from.line, ch: from.ch - 1};
var chr = cm.getRange(pos, from);
if (chr.match(/\W/) === null) return false;
}
if (to.ch < cm.getLine(from.line).length) {
var pos = {line: to.line, ch: to.ch + 1};
var chr = cm.getRange(to, pos);
if (chr.match(/\W/) === null) return false;
}
return true;
} else return false;
}
function boundariesAround(stream, re) {
return (!stream.start || !re.test(stream.string.charAt(stream.start - 1))) &&
(stream.pos == stream.string.length || !re.test(stream.string.charAt(stream.pos)));
}
function makeOverlay(query, hasBoundary, style) {
return {token: function(stream) {
if (stream.match(query) &&
(!hasBoundary || boundariesAround(stream, hasBoundary)))
return style;
stream.next();
stream.skipTo(query.charAt(0)) || stream.skipToEnd();
}};
}
});
|
'use strict';
const babel = require('gulp-babel');
const del = require('del');
const download = require('gulp-download');
const ejs = require('gulp-ejs');
const gulp = require('gulp');
const zip = require('gulp-zip');
const install = require('gulp-install');
const path = require('path');
const plumber = require('gulp-plumber');
const rename = require('gulp-rename');
const replace = require('gulp-replace');
const sass = require('gulp-sass');
const spawn = require('cross-spawn').spawn;
const watch = require('gulp-watch');
const args = require('minimist')(process.argv.slice(2));
const runSequence = require('run-sequence').use(gulp);
const bumpUpdaterJSON = require('./scripts/bump_updater_json');
const PATH_APP = path.join(__dirname, 'app');
const PATH_BUILD = path.join(PATH_APP, 'build');
gulp.task('init', (cb) => {
runSequence(
'build',
'install',
cb
);
});
gulp.task('build', (cb) => {
runSequence(
'build:clean',
'build:css',
'build:ejs',
'build:html',
'build:images',
'build:js',
'build:js:resources',
cb
);
});
gulp.task('install', (cb) => {
let sequenceArray = [
'install:app-dependencies',
'install:sass-tarballs'
];
if (process.platform === 'win32') {
sequenceArray = sequenceArray.concat([
'install:node',
'install:sass-bridge-dependencies',
'install:zip-sass-bridge'
]);
}
sequenceArray.push(cb);
runSequence.apply(null, sequenceArray);
});
gulp.task('build:clean', () => {
return del([path.join(PATH_BUILD, '**', '*')]);
});
gulp.task('build:css', () => {
return gulp.src('app/src/css/*')
.pipe(plumber())
.pipe(sass())
.pipe(gulp.dest(path.join(PATH_BUILD, 'css')));
});
gulp.task('build:ejs', () => {
const relativeRootPath = '../../../';
const lexiconPath = relativeRootPath + 'node_modules/lexicon-ux/build/';
gulp.src('app/src/html/templates/components/*.ejs')
.pipe(ejs({
scripts: [
'${appPath}/bower_components/jquery/dist/jquery.js',
'${lexiconPath}/js/bootstrap.js',
'${lexiconPath}/js/svg4everybody.js'
]
}))
.pipe(rename({
extname: '.html'
}))
.pipe(gulp.dest(path.join(PATH_BUILD, 'html/components')));
});
gulp.task('build:html', () => {
return gulp.src('app/src/html/**/*.html')
.pipe(gulp.dest(path.join(PATH_BUILD, 'html')));
});
gulp.task('build:images', () => {
return gulp.src('app/src/images/**/*')
.pipe(gulp.dest(path.join(PATH_BUILD, 'images')));
});
gulp.task('build:js', () => {
return gulp.src('app/src/js/**/*.js')
.pipe(plumber())
.pipe(babel())
.pipe(gulp.dest(path.join(PATH_BUILD, 'js')));
});
gulp.task('build:js:resources', () => {
return gulp.src('app/src/js/**/*.!(js)')
.pipe(gulp.dest(path.join(PATH_BUILD, 'js')));
});
gulp.task('install:app-dependencies', () => {
return gulp.src([path.join(PATH_APP, 'bower.json'), path.join(PATH_APP, 'package.json')])
.pipe(install());
});
gulp.task('install:node', function() {
const nodeBinaryURL = 'https://nodejs.org/download/release/v6.1.0/win-x64/node.exe';
return download(nodeBinaryURL)
.pipe(gulp.dest('app/sass-bridge'));
});
gulp.task('install:sass-bridge-dependencies', () => {
gulp.src(path.join(PATH_APP, 'sass-bridge/package.json'))
.pipe(install());
});
gulp.task('install:zip-sass-bridge', () => {
return gulp.src(path.join(PATH_APP, 'sass-bridge/**/*'))
.pipe(zip('sass-bridge.zip'))
.pipe(gulp.dest('app/tarballs'));
});
gulp.task('install:sass-tarballs', () => {
const lexiconPkg = require(path.join(__dirname, 'app/node_modules/lexicon-ux/package.json'));
const resources = [
'https://registry.npmjs.org/bourbon/-/bourbon-4.2.7.tgz',
'https://registry.npmjs.org/lexicon-ux/-/lexicon-ux-' + lexiconPkg.version + '.tgz'
];
return download(resources)
.pipe(gulp.dest('app/tarballs'));
});
gulp.task('version', (cb) => {
let type = 'patch';
if (args.minor) {
type = 'minor';
}
else if (args.major) {
type = 'major';
}
spawn('npm', ['version', type], {
cwd: PATH_APP
}).on('close', () => {
bumpUpdaterJSON();
cb();
});
});
gulp.task('watch', () => {
watch('app/src/css/**/*', vinyl => {
gulp.start('build:css');
});
watch('app/src/(html|images)/**/*', vinyl => {
gulp.start('build:html');
gulp.start('build:images');
});
watch('app/src/js/**/*', vinyl => {
gulp.start('build:js');
gulp.start('build:js:resources');
});
});
|
'use strict';
const gulp = require('gulp');
const gutil = require('gulp-util');
const sass = require('gulp-sass');
const cssnano = require('gulp-cssnano');
const sourcemaps = require('gulp-sourcemaps');
gulp.task('styles', () => {
gulp.src('./src/client/styles/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(cssnano())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./dist/client/styles'));
});
|
/*
* parse rule
*/
var _placeholder = function() {
return "@" + Math.random().toString(36).substring(2)
}
var placeholder = {
"<": "<",
">": ">",
"{": _placeholder(),
"(": _placeholder(),
")": _placeholder(),
"}": _placeholder()
}
var _Rg = function(s) {
return RegExp(s, "g")
}
var placeholderReg = {
"<": /</g,
">": />/g,
"/{": /\\\{/g,
"{": _Rg(placeholder["{"]),
"/(": /\\\(/g,
"(": _Rg(placeholder["("]),
"/)": /\\\)/g,
")": _Rg(placeholder[")"]),
"/}": /\\\}/g,
"}": _Rg(placeholder["}"])
}
var _head = /\{([\w\W]*?)\(/g,
_footer = /\)[\s]*\}/g;
function parseRule(str) {
var parseStr = str
.replace(/</g, placeholder["<"])
.replace(/>/g, placeholder[">"])
.replace(placeholderReg["/{"], placeholder["{"])
.replace(placeholderReg["/("], placeholder["("])
.replace(placeholderReg["/)"], placeholder[")"])
.replace(placeholderReg["/}"], placeholder["}"])
.replace(_head, "<span type='handle' handle='$1'>")
.replace(_footer, "</span>")
.replace(placeholderReg["{"], "{")
.replace(placeholderReg["("], "(")
.replace(placeholderReg[")"], ")")
.replace(placeholderReg["}"], "}");
return parseStr;
};
var _matchRule = /\{[\w\W]*?\([\w\W]*?\)[\s]*\}/;
/*
* expores function
*/
var V = global.ViewParser = {
prefix: "attr-",
parse: function(htmlStr) {
var _shadowBody = $.DOM.clone(shadowBody);
_shadowBody.innerHTML = htmlStr;
var insertBefore = [];
_traversal(_shadowBody, function(node, index, parentNode) {
if (node.nodeType === 3) {
$.push(insertBefore, {
baseNode: node,
parentNode: parentNode,
insertNodesHTML: parseRule(node.data)
});
}
});
$.forEach(insertBefore, function(item) {
var node = item.baseNode,
parentNode = item.parentNode,
insertNodesHTML = item.insertNodesHTML;
shadowDIV.innerHTML = insertNodesHTML;
//Using innerHTML rendering is complete immediate operation DOM,
//innerHTML otherwise covered again, the node if it is not,
//then memory leaks, IE can not get to the full node.
$.forEach(shadowDIV.childNodes, function(refNode) {
$.DOM.insertBefore(parentNode, refNode, node)
})
parentNode.removeChild(node);
});
_shadowBody.innerHTML = _shadowBody.innerHTML;
var result = ElementHandle(_shadowBody);
return View(result);
},
scans: function() {
$.forEach(document.getElementsByTagName("script"), function(scriptNode) {
if (scriptNode.getAttribute("type") === "text/template") {
V.modules[scriptNode.getAttribute("name")] = V.parse(scriptNode.innerHTML);
}
});
},
registerTrigger: function(handleName, triggerFactory) {
// if (V.triggers[handleName]) {
// throw handleName + " trigger already exists.";
// }
V.triggers[handleName] = triggerFactory;
},
registerHandle: function(handleName, handle) {
// if (V.handles[handleName]) {
// throw handleName + " handler already exists.";
// }
V.handles[handleName] = handle
},
registerAttrHandle:function(match,handle){
var attrHandle = V.attrHandles[V.attrHandles.length] = {
match:null,
handle:handle
}
if (typeof match==="function") {
attrHandle.match = match;
}else{
attrHandle.match = function(attrKey){
return attrKey===match;
}
}
},
triggers: {},
handles: {},
attrHandles:[],
modules: {},
attrModules: {},
eachModules: {},
_instances:{}
};
|
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else if (typeof module === "object" && module.exports) {
module.exports = factory( require( "jquery" ) );
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default messages for the jQuery validation plugin.
* Locale: UK (Ukrainian; українська мова)
*/
$.extend( $.validator.messages, {
required: "Це поле необхідно заповнити.",
remote: "Будь ласка, введіть правильне значення.",
email: "Будь ласка, введіть коректну адресу електронної пошти.",
url: "Будь ласка, введіть коректний URL.",
date: "Будь ласка, введіть коректну дату.",
dateISO: "Будь ласка, введіть коректну дату у форматі ISO.",
number: "Будь ласка, введіть число.",
digits: "Вводите потрібно лише цифри.",
creditcard: "Будь ласка, введіть правильний номер кредитної карти.",
equalTo: "Будь ласка, введіть таке ж значення ще раз.",
extension: "Будь ласка, виберіть файл з правильним розширенням.",
maxlength: $.validator.format( "Будь ласка, введіть не більше {0} символів." ),
minlength: $.validator.format( "Будь ласка, введіть не менше {0} символів." ),
rangelength: $.validator.format( "Будь ласка, введіть значення довжиною від {0} до {1} символів." ),
range: $.validator.format( "Будь ласка, введіть число від {0} до {1}." ),
max: $.validator.format( "Будь ласка, введіть число, менше або рівно {0}." ),
min: $.validator.format( "Будь ласка, введіть число, більше або рівно {0}." )
} );
<<<<<<< HEAD
=======
return $;
>>>>>>> 0259c07ee5ecd3b82c4f38429c4e4bf45bc44096
}));
|
version https://git-lfs.github.com/spec/v1
oid sha256:06a0b73e7a8b601c56b83f9026bf18a329a14c1aa90b5f30f322ca650b7acacf
size 217
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].onclick = function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight){
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
}
}
|
/* @module:class
Set the module description.
*/
require ('./NodeParseModules/Overrides');
/* @class
Override this Function as a class.
@argument cheddar
Takes over the name `able`. Should be type `Number`.
@argument:String able
Does not refer to a real argument. Should be type `String`.
*/
module.exports.classy = function (able) {
/* @:String bar
Override name from `foo` to `bar` and type from `Number` to `String`.
*/
this.foo = 9001;
/* @:Number */
this.baz = 'over nine thousand';
};
module.exports.classy (4);
module.exports.classy.prototype.typeOnlyOverride = function(){
/* @:Number */
this.bilge = 'over nine thousand';
};
/*
Do a thing.
@returns:String
Should be named `bar` and typed `String`. It's not called `foo` because that name has been
remounted.
*/
module.exports.classy.prototype.doThing = function(){ return this.foo; };
/*
Argument implied name test.
@argument
Should be named `foo`.
@argument:RegExp
Should be named `bar` and typed `RegExp`.
*/
module.exports.impliedName = function (foo, bar) { };
/*
Argument override test.
@argument:String foo
Override the first argument's type from `Number` to `String`.
*/
module.exports.argType = function (foo) { };
module.exports.argType (4);
module.exports.fancyArgs = function (
/* @:RegExp */
able,
/* @:String monkey
Override this argument name from `baker` to `monkey` and set type to `String`.
*/
baker,
/* @argument (rover
Override this argument name from `charlie` to `rover`.
*/
charlie
) { };
|
ScalaJS.is.scala_collection_GenIterableViewLike$Appended = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_collection_GenIterableViewLike$Appended)))
});
ScalaJS.as.scala_collection_GenIterableViewLike$Appended = (function(obj) {
if ((ScalaJS.is.scala_collection_GenIterableViewLike$Appended(obj) || (obj === null))) {
return obj
} else {
ScalaJS.throwClassCastException(obj, "scala.collection.GenIterableViewLike$Appended")
}
});
ScalaJS.isArrayOf.scala_collection_GenIterableViewLike$Appended = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scala_collection_GenIterableViewLike$Appended)))
});
ScalaJS.asArrayOf.scala_collection_GenIterableViewLike$Appended = (function(obj, depth) {
if ((ScalaJS.isArrayOf.scala_collection_GenIterableViewLike$Appended(obj, depth) || (obj === null))) {
return obj
} else {
ScalaJS.throwArrayCastException(obj, "Lscala.collection.GenIterableViewLike$Appended;", depth)
}
});
ScalaJS.data.scala_collection_GenIterableViewLike$Appended = new ScalaJS.ClassTypeData({
scala_collection_GenIterableViewLike$Appended: 0
}, true, "scala.collection.GenIterableViewLike$Appended", undefined, {
scala_collection_GenIterableViewLike$Appended: 1,
scala_collection_GenIterableViewLike$Transformed: 1,
scala_collection_GenIterableView: 1,
scala_collection_GenIterableViewLike: 1,
scala_collection_GenIterable: 1,
scala_collection_GenIterableLike: 1,
scala_collection_GenTraversableViewLike$Appended: 1,
scala_collection_GenTraversableViewLike$Transformed: 1,
scala_collection_GenTraversableView: 1,
scala_collection_GenTraversableViewLike: 1,
scala_collection_GenTraversable: 1,
scala_collection_generic_GenericTraversableTemplate: 1,
scala_collection_generic_HasNewBuilder: 1,
scala_collection_GenTraversableLike: 1,
scala_collection_Parallelizable: 1,
scala_collection_GenTraversableOnce: 1,
java_lang_Object: 1
});
//@ sourceMappingURL=GenIterableViewLike$Appended.js.map
|
/*
* Created by zhangchong on 5/30/2016.
* Copyright (c) 2016 com.infohold.BcupBread. All rights reserved.
*/
var area = [
{
"CityID" : 1,
"DisName" : "东城区",
"DisSort" : null,
"Id" : 1
},
{
"CityID" : 1,
"DisName" : "西城区",
"DisSort" : null,
"Id" : 2
},
{
"CityID" : 1,
"DisName" : "崇文区",
"DisSort" : null,
"Id" : 3
},
{
"CityID" : 1,
"DisName" : "宣武区",
"DisSort" : null,
"Id" : 4
},
{
"CityID" : 1,
"DisName" : "朝阳区",
"DisSort" : null,
"Id" : 5
},
{
"CityID" : 1,
"DisName" : "丰台区",
"DisSort" : null,
"Id" : 6
},
{
"CityID" : 1,
"DisName" : "石景山区",
"DisSort" : null,
"Id" : 7
},
{
"CityID" : 1,
"DisName" : "海淀区",
"DisSort" : null,
"Id" : 8
},
{
"CityID" : 1,
"DisName" : "门头沟区",
"DisSort" : null,
"Id" : 9
},
{
"CityID" : 1,
"DisName" : "房山区",
"DisSort" : null,
"Id" : 10
},
{
"CityID" : 1,
"DisName" : "通州区",
"DisSort" : null,
"Id" : 11
},
{
"CityID" : 1,
"DisName" : "顺义区",
"DisSort" : null,
"Id" : 12
},
{
"CityID" : 1,
"DisName" : "昌平区",
"DisSort" : null,
"Id" : 13
},
{
"CityID" : 1,
"DisName" : "大兴区",
"DisSort" : null,
"Id" : 14
},
{
"CityID" : 1,
"DisName" : "怀柔区",
"DisSort" : null,
"Id" : 15
},
{
"CityID" : 1,
"DisName" : "平谷区",
"DisSort" : null,
"Id" : 16
},
{
"CityID" : 1,
"DisName" : "密云县",
"DisSort" : null,
"Id" : 17
},
{
"CityID" : 1,
"DisName" : "延庆县",
"DisSort" : null,
"Id" : 18
},
{
"CityID" : 2,
"DisName" : "和平区",
"DisSort" : null,
"Id" : 19
},
{
"CityID" : 2,
"DisName" : "河东区",
"DisSort" : null,
"Id" : 20
},
{
"CityID" : 2,
"DisName" : "河西区",
"DisSort" : null,
"Id" : 21
},
{
"CityID" : 2,
"DisName" : "南开区",
"DisSort" : null,
"Id" : 22
},
{
"CityID" : 2,
"DisName" : "河北区",
"DisSort" : null,
"Id" : 23
},
{
"CityID" : 2,
"DisName" : "红桥区",
"DisSort" : null,
"Id" : 24
},
{
"CityID" : 2,
"DisName" : "塘沽区",
"DisSort" : null,
"Id" : 25
},
{
"CityID" : 2,
"DisName" : "汉沽区",
"DisSort" : null,
"Id" : 26
},
{
"CityID" : 2,
"DisName" : "大港区",
"DisSort" : null,
"Id" : 27
},
{
"CityID" : 2,
"DisName" : "东丽区",
"DisSort" : null,
"Id" : 28
},
{
"CityID" : 2,
"DisName" : "西青区",
"DisSort" : null,
"Id" : 29
},
{
"CityID" : 2,
"DisName" : "津南区",
"DisSort" : null,
"Id" : 30
},
{
"CityID" : 2,
"DisName" : "北辰区",
"DisSort" : null,
"Id" : 31
},
{
"CityID" : 2,
"DisName" : "武清区",
"DisSort" : null,
"Id" : 32
},
{
"CityID" : 2,
"DisName" : "宝坻区",
"DisSort" : null,
"Id" : 33
},
{
"CityID" : 2,
"DisName" : "宁河县",
"DisSort" : null,
"Id" : 34
},
{
"CityID" : 2,
"DisName" : "静海县",
"DisSort" : null,
"Id" : 35
},
{
"CityID" : 2,
"DisName" : "蓟县",
"DisSort" : null,
"Id" : 36
},
{
"CityID" : 3,
"DisName" : "黄浦区",
"DisSort" : null,
"Id" : 37
},
{
"CityID" : 3,
"DisName" : "卢湾区",
"DisSort" : null,
"Id" : 38
},
{
"CityID" : 3,
"DisName" : "徐汇区",
"DisSort" : null,
"Id" : 39
},
{
"CityID" : 3,
"DisName" : "长宁区",
"DisSort" : null,
"Id" : 40
},
{
"CityID" : 3,
"DisName" : "静安区",
"DisSort" : null,
"Id" : 41
},
{
"CityID" : 3,
"DisName" : "普陀区",
"DisSort" : null,
"Id" : 42
},
{
"CityID" : 3,
"DisName" : "闸北区",
"DisSort" : null,
"Id" : 43
},
{
"CityID" : 3,
"DisName" : "虹口区",
"DisSort" : null,
"Id" : 44
},
{
"CityID" : 3,
"DisName" : "杨浦区",
"DisSort" : null,
"Id" : 45
},
{
"CityID" : 3,
"DisName" : "闵行区",
"DisSort" : null,
"Id" : 46
},
{
"CityID" : 3,
"DisName" : "宝山区",
"DisSort" : null,
"Id" : 47
},
{
"CityID" : 3,
"DisName" : "嘉定区",
"DisSort" : null,
"Id" : 48
},
{
"CityID" : 3,
"DisName" : "浦东新区",
"DisSort" : null,
"Id" : 49
},
{
"CityID" : 3,
"DisName" : "金山区",
"DisSort" : null,
"Id" : 50
},
{
"CityID" : 3,
"DisName" : "松江区",
"DisSort" : null,
"Id" : 51
},
{
"CityID" : 3,
"DisName" : "青浦区",
"DisSort" : null,
"Id" : 52
},
{
"CityID" : 3,
"DisName" : "南汇区",
"DisSort" : null,
"Id" : 53
},
{
"CityID" : 3,
"DisName" : "奉贤区",
"DisSort" : null,
"Id" : 54
},
{
"CityID" : 3,
"DisName" : "崇明县",
"DisSort" : null,
"Id" : 55
},
{
"CityID" : 4,
"DisName" : "万州区",
"DisSort" : null,
"Id" : 56
},
{
"CityID" : 4,
"DisName" : "涪陵区",
"DisSort" : null,
"Id" : 57
},
{
"CityID" : 4,
"DisName" : "渝中区",
"DisSort" : null,
"Id" : 58
},
{
"CityID" : 4,
"DisName" : "大渡口区",
"DisSort" : null,
"Id" : 59
},
{
"CityID" : 4,
"DisName" : "江北区",
"DisSort" : null,
"Id" : 60
},
{
"CityID" : 4,
"DisName" : "沙坪坝区",
"DisSort" : null,
"Id" : 61
},
{
"CityID" : 4,
"DisName" : "九龙坡区",
"DisSort" : null,
"Id" : 62
},
{
"CityID" : 4,
"DisName" : "南岸区",
"DisSort" : null,
"Id" : 63
},
{
"CityID" : 4,
"DisName" : "北碚区",
"DisSort" : null,
"Id" : 64
},
{
"CityID" : 4,
"DisName" : "万盛区",
"DisSort" : null,
"Id" : 65
},
{
"CityID" : 4,
"DisName" : "双桥区",
"DisSort" : null,
"Id" : 66
},
{
"CityID" : 4,
"DisName" : "渝北区",
"DisSort" : null,
"Id" : 67
},
{
"CityID" : 4,
"DisName" : "巴南区",
"DisSort" : null,
"Id" : 68
},
{
"CityID" : 4,
"DisName" : "黔江区",
"DisSort" : null,
"Id" : 69
},
{
"CityID" : 4,
"DisName" : "长寿区",
"DisSort" : null,
"Id" : 70
},
{
"CityID" : 4,
"DisName" : "江津区",
"DisSort" : null,
"Id" : 71
},
{
"CityID" : 4,
"DisName" : "合川区",
"DisSort" : null,
"Id" : 72
},
{
"CityID" : 4,
"DisName" : "永川区",
"DisSort" : null,
"Id" : 73
},
{
"CityID" : 4,
"DisName" : "南川区",
"DisSort" : null,
"Id" : 74
},
{
"CityID" : 4,
"DisName" : "綦江县",
"DisSort" : null,
"Id" : 75
},
{
"CityID" : 4,
"DisName" : "潼南县",
"DisSort" : null,
"Id" : 76
},
{
"CityID" : 4,
"DisName" : "铜梁县",
"DisSort" : null,
"Id" : 77
},
{
"CityID" : 4,
"DisName" : "大足县",
"DisSort" : null,
"Id" : 78
},
{
"CityID" : 4,
"DisName" : "荣昌县",
"DisSort" : null,
"Id" : 79
},
{
"CityID" : 4,
"DisName" : "璧山县",
"DisSort" : null,
"Id" : 80
},
{
"CityID" : 4,
"DisName" : "梁平县",
"DisSort" : null,
"Id" : 81
},
{
"CityID" : 4,
"DisName" : "城口县",
"DisSort" : null,
"Id" : 82
},
{
"CityID" : 4,
"DisName" : "丰都县",
"DisSort" : null,
"Id" : 83
},
{
"CityID" : 4,
"DisName" : "垫江县",
"DisSort" : null,
"Id" : 84
},
{
"CityID" : 4,
"DisName" : "武隆县",
"DisSort" : null,
"Id" : 85
},
{
"CityID" : 4,
"DisName" : "忠县",
"DisSort" : null,
"Id" : 86
},
{
"CityID" : 4,
"DisName" : "开县",
"DisSort" : null,
"Id" : 87
},
{
"CityID" : 4,
"DisName" : "云阳县",
"DisSort" : null,
"Id" : 88
},
{
"CityID" : 4,
"DisName" : "奉节县",
"DisSort" : null,
"Id" : 89
},
{
"CityID" : 4,
"DisName" : "巫山县",
"DisSort" : null,
"Id" : 90
},
{
"CityID" : 4,
"DisName" : "巫溪县",
"DisSort" : null,
"Id" : 91
},
{
"CityID" : 4,
"DisName" : "石柱土家族自治县",
"DisSort" : null,
"Id" : 92
},
{
"CityID" : 4,
"DisName" : "秀山土家族苗族自治县",
"DisSort" : null,
"Id" : 93
},
{
"CityID" : 4,
"DisName" : "酉阳土家族苗族自治县",
"DisSort" : null,
"Id" : 94
},
{
"CityID" : 4,
"DisName" : "彭水苗族土家族自治县",
"DisSort" : null,
"Id" : 95
},
{
"CityID" : 5,
"DisName" : "邯山区",
"DisSort" : null,
"Id" : 96
},
{
"CityID" : 5,
"DisName" : "丛台区",
"DisSort" : null,
"Id" : 97
},
{
"CityID" : 5,
"DisName" : "复兴区",
"DisSort" : null,
"Id" : 98
},
{
"CityID" : 5,
"DisName" : "峰峰矿区",
"DisSort" : null,
"Id" : 99
},
{
"CityID" : 5,
"DisName" : "邯郸县",
"DisSort" : null,
"Id" : 100
},
{
"CityID" : 5,
"DisName" : "临漳县",
"DisSort" : null,
"Id" : 101
},
{
"CityID" : 5,
"DisName" : "成安县",
"DisSort" : null,
"Id" : 102
},
{
"CityID" : 5,
"DisName" : "大名县",
"DisSort" : null,
"Id" : 103
},
{
"CityID" : 5,
"DisName" : "涉县",
"DisSort" : null,
"Id" : 104
},
{
"CityID" : 5,
"DisName" : "磁县",
"DisSort" : null,
"Id" : 105
},
{
"CityID" : 5,
"DisName" : "肥乡县",
"DisSort" : null,
"Id" : 106
},
{
"CityID" : 5,
"DisName" : "永年县",
"DisSort" : null,
"Id" : 107
},
{
"CityID" : 5,
"DisName" : "邱县",
"DisSort" : null,
"Id" : 108
},
{
"CityID" : 5,
"DisName" : "鸡泽县",
"DisSort" : null,
"Id" : 109
},
{
"CityID" : 5,
"DisName" : "广平县",
"DisSort" : null,
"Id" : 110
},
{
"CityID" : 5,
"DisName" : "馆陶县",
"DisSort" : null,
"Id" : 111
},
{
"CityID" : 5,
"DisName" : "魏县",
"DisSort" : null,
"Id" : 112
},
{
"CityID" : 5,
"DisName" : "曲周县",
"DisSort" : null,
"Id" : 113
},
{
"CityID" : 5,
"DisName" : "武安市",
"DisSort" : null,
"Id" : 114
},
{
"CityID" : 6,
"DisName" : "长安区",
"DisSort" : null,
"Id" : 115
},
{
"CityID" : 6,
"DisName" : "桥东区",
"DisSort" : null,
"Id" : 116
},
{
"CityID" : 6,
"DisName" : "桥西区",
"DisSort" : null,
"Id" : 117
},
{
"CityID" : 6,
"DisName" : "新华区",
"DisSort" : null,
"Id" : 118
},
{
"CityID" : 6,
"DisName" : "井陉矿区",
"DisSort" : null,
"Id" : 119
},
{
"CityID" : 6,
"DisName" : "裕华区",
"DisSort" : null,
"Id" : 120
},
{
"CityID" : 6,
"DisName" : "井陉县",
"DisSort" : null,
"Id" : 121
},
{
"CityID" : 6,
"DisName" : "正定县",
"DisSort" : null,
"Id" : 122
},
{
"CityID" : 6,
"DisName" : "栾城县",
"DisSort" : null,
"Id" : 123
},
{
"CityID" : 6,
"DisName" : "行唐县",
"DisSort" : null,
"Id" : 124
},
{
"CityID" : 6,
"DisName" : "灵寿县",
"DisSort" : null,
"Id" : 125
},
{
"CityID" : 6,
"DisName" : "高邑县",
"DisSort" : null,
"Id" : 126
},
{
"CityID" : 6,
"DisName" : "深泽县",
"DisSort" : null,
"Id" : 127
},
{
"CityID" : 6,
"DisName" : "赞皇县",
"DisSort" : null,
"Id" : 128
},
{
"CityID" : 6,
"DisName" : "无极县",
"DisSort" : null,
"Id" : 129
},
{
"CityID" : 6,
"DisName" : "平山县",
"DisSort" : null,
"Id" : 130
},
{
"CityID" : 6,
"DisName" : "元氏县",
"DisSort" : null,
"Id" : 131
},
{
"CityID" : 6,
"DisName" : "赵县",
"DisSort" : null,
"Id" : 132
},
{
"CityID" : 6,
"DisName" : "辛集市",
"DisSort" : null,
"Id" : 133
},
{
"CityID" : 6,
"DisName" : "藁城市",
"DisSort" : null,
"Id" : 134
},
{
"CityID" : 6,
"DisName" : "晋州市",
"DisSort" : null,
"Id" : 135
},
{
"CityID" : 6,
"DisName" : "新乐市",
"DisSort" : null,
"Id" : 136
},
{
"CityID" : 6,
"DisName" : "鹿泉市",
"DisSort" : null,
"Id" : 137
},
{
"CityID" : 7,
"DisName" : "新市区",
"DisSort" : null,
"Id" : 138
},
{
"CityID" : 7,
"DisName" : "北市区",
"DisSort" : null,
"Id" : 139
},
{
"CityID" : 7,
"DisName" : "南市区",
"DisSort" : null,
"Id" : 140
},
{
"CityID" : 7,
"DisName" : "满城县",
"DisSort" : null,
"Id" : 141
},
{
"CityID" : 7,
"DisName" : "清苑县",
"DisSort" : null,
"Id" : 142
},
{
"CityID" : 7,
"DisName" : "涞水县",
"DisSort" : null,
"Id" : 143
},
{
"CityID" : 7,
"DisName" : "阜平县",
"DisSort" : null,
"Id" : 144
},
{
"CityID" : 7,
"DisName" : "徐水县",
"DisSort" : null,
"Id" : 145
},
{
"CityID" : 7,
"DisName" : "定兴县",
"DisSort" : null,
"Id" : 146
},
{
"CityID" : 7,
"DisName" : "唐县",
"DisSort" : null,
"Id" : 147
},
{
"CityID" : 7,
"DisName" : "高阳县",
"DisSort" : null,
"Id" : 148
},
{
"CityID" : 7,
"DisName" : "容城县",
"DisSort" : null,
"Id" : 149
},
{
"CityID" : 7,
"DisName" : "涞源县",
"DisSort" : null,
"Id" : 150
},
{
"CityID" : 7,
"DisName" : "望都县",
"DisSort" : null,
"Id" : 151
},
{
"CityID" : 7,
"DisName" : "安新县",
"DisSort" : null,
"Id" : 152
},
{
"CityID" : 7,
"DisName" : "易县",
"DisSort" : null,
"Id" : 153
},
{
"CityID" : 7,
"DisName" : "曲阳县",
"DisSort" : null,
"Id" : 154
},
{
"CityID" : 7,
"DisName" : "蠡县",
"DisSort" : null,
"Id" : 155
},
{
"CityID" : 7,
"DisName" : "顺平县",
"DisSort" : null,
"Id" : 156
},
{
"CityID" : 7,
"DisName" : "博野县",
"DisSort" : null,
"Id" : 157
},
{
"CityID" : 7,
"DisName" : "雄县",
"DisSort" : null,
"Id" : 158
},
{
"CityID" : 7,
"DisName" : "涿州市",
"DisSort" : null,
"Id" : 159
},
{
"CityID" : 7,
"DisName" : "定州市",
"DisSort" : null,
"Id" : 160
},
{
"CityID" : 7,
"DisName" : "安国市",
"DisSort" : null,
"Id" : 161
},
{
"CityID" : 7,
"DisName" : "高碑店市",
"DisSort" : null,
"Id" : 162
},
{
"CityID" : 8,
"DisName" : "桥东区",
"DisSort" : null,
"Id" : 163
},
{
"CityID" : 8,
"DisName" : "桥西区",
"DisSort" : null,
"Id" : 164
},
{
"CityID" : 8,
"DisName" : "宣化区",
"DisSort" : null,
"Id" : 165
},
{
"CityID" : 8,
"DisName" : "下花园区",
"DisSort" : null,
"Id" : 166
},
{
"CityID" : 8,
"DisName" : "宣化县",
"DisSort" : null,
"Id" : 167
},
{
"CityID" : 8,
"DisName" : "张北县",
"DisSort" : null,
"Id" : 168
},
{
"CityID" : 8,
"DisName" : "康保县",
"DisSort" : null,
"Id" : 169
},
{
"CityID" : 8,
"DisName" : "沽源县",
"DisSort" : null,
"Id" : 170
},
{
"CityID" : 8,
"DisName" : "尚义县",
"DisSort" : null,
"Id" : 171
},
{
"CityID" : 8,
"DisName" : "蔚县",
"DisSort" : null,
"Id" : 172
},
{
"CityID" : 8,
"DisName" : "阳原县",
"DisSort" : null,
"Id" : 173
},
{
"CityID" : 8,
"DisName" : "怀安县",
"DisSort" : null,
"Id" : 174
},
{
"CityID" : 8,
"DisName" : "万全县",
"DisSort" : null,
"Id" : 175
},
{
"CityID" : 8,
"DisName" : "怀来县",
"DisSort" : null,
"Id" : 176
},
{
"CityID" : 8,
"DisName" : "涿鹿县",
"DisSort" : null,
"Id" : 177
},
{
"CityID" : 8,
"DisName" : "赤城县",
"DisSort" : null,
"Id" : 178
},
{
"CityID" : 8,
"DisName" : "崇礼县",
"DisSort" : null,
"Id" : 179
},
{
"CityID" : 9,
"DisName" : "双桥区",
"DisSort" : null,
"Id" : 180
},
{
"CityID" : 9,
"DisName" : "双滦区",
"DisSort" : null,
"Id" : 181
},
{
"CityID" : 9,
"DisName" : "鹰手营子矿区",
"DisSort" : null,
"Id" : 182
},
{
"CityID" : 9,
"DisName" : "承德县",
"DisSort" : null,
"Id" : 183
},
{
"CityID" : 9,
"DisName" : "兴隆县",
"DisSort" : null,
"Id" : 184
},
{
"CityID" : 9,
"DisName" : "平泉县",
"DisSort" : null,
"Id" : 185
},
{
"CityID" : 9,
"DisName" : "滦平县",
"DisSort" : null,
"Id" : 186
},
{
"CityID" : 9,
"DisName" : "隆化县",
"DisSort" : null,
"Id" : 187
},
{
"CityID" : 9,
"DisName" : "丰宁满族自治县",
"DisSort" : null,
"Id" : 188
},
{
"CityID" : 9,
"DisName" : "宽城满族自治县",
"DisSort" : null,
"Id" : 189
},
{
"CityID" : 9,
"DisName" : "围场满族蒙古族自治县",
"DisSort" : null,
"Id" : 190
},
{
"CityID" : 10,
"DisName" : "路南区",
"DisSort" : null,
"Id" : 191
},
{
"CityID" : 10,
"DisName" : "路北区",
"DisSort" : null,
"Id" : 192
},
{
"CityID" : 10,
"DisName" : "古冶区",
"DisSort" : null,
"Id" : 193
},
{
"CityID" : 10,
"DisName" : "开平区",
"DisSort" : null,
"Id" : 194
},
{
"CityID" : 10,
"DisName" : "丰南区",
"DisSort" : null,
"Id" : 195
},
{
"CityID" : 10,
"DisName" : "丰润区",
"DisSort" : null,
"Id" : 196
},
{
"CityID" : 10,
"DisName" : "滦县",
"DisSort" : null,
"Id" : 197
},
{
"CityID" : 10,
"DisName" : "滦南县",
"DisSort" : null,
"Id" : 198
},
{
"CityID" : 10,
"DisName" : "乐亭县",
"DisSort" : null,
"Id" : 199
},
{
"CityID" : 10,
"DisName" : "迁西县",
"DisSort" : null,
"Id" : 200
},
{
"CityID" : 10,
"DisName" : "玉田县",
"DisSort" : null,
"Id" : 201
},
{
"CityID" : 10,
"DisName" : "唐海县",
"DisSort" : null,
"Id" : 202
},
{
"CityID" : 10,
"DisName" : "遵化市",
"DisSort" : null,
"Id" : 203
},
{
"CityID" : 10,
"DisName" : "迁安市",
"DisSort" : null,
"Id" : 204
},
{
"CityID" : 11,
"DisName" : "安次区",
"DisSort" : null,
"Id" : 205
},
{
"CityID" : 11,
"DisName" : "广阳区",
"DisSort" : null,
"Id" : 206
},
{
"CityID" : 11,
"DisName" : "固安县",
"DisSort" : null,
"Id" : 207
},
{
"CityID" : 11,
"DisName" : "永清县",
"DisSort" : null,
"Id" : 208
},
{
"CityID" : 11,
"DisName" : "香河县",
"DisSort" : null,
"Id" : 209
},
{
"CityID" : 11,
"DisName" : "大城县",
"DisSort" : null,
"Id" : 210
},
{
"CityID" : 11,
"DisName" : "文安县",
"DisSort" : null,
"Id" : 211
},
{
"CityID" : 11,
"DisName" : "大厂回族自治县",
"DisSort" : null,
"Id" : 212
},
{
"CityID" : 11,
"DisName" : "霸州市",
"DisSort" : null,
"Id" : 213
},
{
"CityID" : 11,
"DisName" : "三河市",
"DisSort" : null,
"Id" : 214
},
{
"CityID" : 12,
"DisName" : "新华区",
"DisSort" : null,
"Id" : 215
},
{
"CityID" : 12,
"DisName" : "运河区",
"DisSort" : null,
"Id" : 216
},
{
"CityID" : 12,
"DisName" : "沧县",
"DisSort" : null,
"Id" : 217
},
{
"CityID" : 12,
"DisName" : "青县",
"DisSort" : null,
"Id" : 218
},
{
"CityID" : 12,
"DisName" : "东光县",
"DisSort" : null,
"Id" : 219
},
{
"CityID" : 12,
"DisName" : "海兴县",
"DisSort" : null,
"Id" : 220
},
{
"CityID" : 12,
"DisName" : "盐山县",
"DisSort" : null,
"Id" : 221
},
{
"CityID" : 12,
"DisName" : "肃宁县",
"DisSort" : null,
"Id" : 222
},
{
"CityID" : 12,
"DisName" : "南皮县",
"DisSort" : null,
"Id" : 223
},
{
"CityID" : 12,
"DisName" : "吴桥县",
"DisSort" : null,
"Id" : 224
},
{
"CityID" : 12,
"DisName" : "献县",
"DisSort" : null,
"Id" : 225
},
{
"CityID" : 12,
"DisName" : "孟村回族自治县",
"DisSort" : null,
"Id" : 226
},
{
"CityID" : 12,
"DisName" : "泊头市",
"DisSort" : null,
"Id" : 227
},
{
"CityID" : 12,
"DisName" : "任丘市",
"DisSort" : null,
"Id" : 228
},
{
"CityID" : 12,
"DisName" : "黄骅市",
"DisSort" : null,
"Id" : 229
},
{
"CityID" : 12,
"DisName" : "河间市",
"DisSort" : null,
"Id" : 230
},
{
"CityID" : 13,
"DisName" : "桃城区",
"DisSort" : null,
"Id" : 231
},
{
"CityID" : 13,
"DisName" : "枣强县",
"DisSort" : null,
"Id" : 232
},
{
"CityID" : 13,
"DisName" : "武邑县",
"DisSort" : null,
"Id" : 233
},
{
"CityID" : 13,
"DisName" : "武强县",
"DisSort" : null,
"Id" : 234
},
{
"CityID" : 13,
"DisName" : "饶阳县",
"DisSort" : null,
"Id" : 235
},
{
"CityID" : 13,
"DisName" : "安平县",
"DisSort" : null,
"Id" : 236
},
{
"CityID" : 13,
"DisName" : "故城县",
"DisSort" : null,
"Id" : 237
},
{
"CityID" : 13,
"DisName" : "景县",
"DisSort" : null,
"Id" : 238
},
{
"CityID" : 13,
"DisName" : "阜城县",
"DisSort" : null,
"Id" : 239
},
{
"CityID" : 13,
"DisName" : "冀州市",
"DisSort" : null,
"Id" : 240
},
{
"CityID" : 13,
"DisName" : "深州市",
"DisSort" : null,
"Id" : 241
},
{
"CityID" : 14,
"DisName" : "桥东区",
"DisSort" : null,
"Id" : 242
},
{
"CityID" : 14,
"DisName" : "桥西区",
"DisSort" : null,
"Id" : 243
},
{
"CityID" : 14,
"DisName" : "邢台县",
"DisSort" : null,
"Id" : 244
},
{
"CityID" : 14,
"DisName" : "临城县",
"DisSort" : null,
"Id" : 245
},
{
"CityID" : 14,
"DisName" : "内丘县",
"DisSort" : null,
"Id" : 246
},
{
"CityID" : 14,
"DisName" : "柏乡县",
"DisSort" : null,
"Id" : 247
},
{
"CityID" : 14,
"DisName" : "隆尧县",
"DisSort" : null,
"Id" : 248
},
{
"CityID" : 14,
"DisName" : "任县",
"DisSort" : null,
"Id" : 249
},
{
"CityID" : 14,
"DisName" : "南和县",
"DisSort" : null,
"Id" : 250
},
{
"CityID" : 14,
"DisName" : "宁晋县",
"DisSort" : null,
"Id" : 251
},
{
"CityID" : 14,
"DisName" : "巨鹿县",
"DisSort" : null,
"Id" : 252
},
{
"CityID" : 14,
"DisName" : "新河县",
"DisSort" : null,
"Id" : 253
},
{
"CityID" : 14,
"DisName" : "广宗县",
"DisSort" : null,
"Id" : 254
},
{
"CityID" : 14,
"DisName" : "平乡县",
"DisSort" : null,
"Id" : 255
},
{
"CityID" : 14,
"DisName" : "威县",
"DisSort" : null,
"Id" : 256
},
{
"CityID" : 14,
"DisName" : "清河县",
"DisSort" : null,
"Id" : 257
},
{
"CityID" : 14,
"DisName" : "临西县",
"DisSort" : null,
"Id" : 258
},
{
"CityID" : 14,
"DisName" : "南宫市",
"DisSort" : null,
"Id" : 259
},
{
"CityID" : 14,
"DisName" : "沙河市",
"DisSort" : null,
"Id" : 260
},
{
"CityID" : 15,
"DisName" : "海港区",
"DisSort" : null,
"Id" : 261
},
{
"CityID" : 15,
"DisName" : "山海关区",
"DisSort" : null,
"Id" : 262
},
{
"CityID" : 15,
"DisName" : "北戴河区",
"DisSort" : null,
"Id" : 263
},
{
"CityID" : 15,
"DisName" : "青龙满族自治县",
"DisSort" : null,
"Id" : 264
},
{
"CityID" : 15,
"DisName" : "昌黎县",
"DisSort" : null,
"Id" : 265
},
{
"CityID" : 15,
"DisName" : "抚宁县",
"DisSort" : null,
"Id" : 266
},
{
"CityID" : 15,
"DisName" : "卢龙县",
"DisSort" : null,
"Id" : 267
},
{
"CityID" : 16,
"DisName" : "朔城区",
"DisSort" : null,
"Id" : 268
},
{
"CityID" : 16,
"DisName" : "平鲁区",
"DisSort" : null,
"Id" : 269
},
{
"CityID" : 16,
"DisName" : "山阴县",
"DisSort" : null,
"Id" : 270
},
{
"CityID" : 16,
"DisName" : "应县",
"DisSort" : null,
"Id" : 271
},
{
"CityID" : 16,
"DisName" : "右玉县",
"DisSort" : null,
"Id" : 272
},
{
"CityID" : 16,
"DisName" : "怀仁县",
"DisSort" : null,
"Id" : 273
},
{
"CityID" : 17,
"DisName" : "忻府区",
"DisSort" : null,
"Id" : 274
},
{
"CityID" : 17,
"DisName" : "定襄县",
"DisSort" : null,
"Id" : 275
},
{
"CityID" : 17,
"DisName" : "五台县",
"DisSort" : null,
"Id" : 276
},
{
"CityID" : 17,
"DisName" : "代县",
"DisSort" : null,
"Id" : 277
},
{
"CityID" : 17,
"DisName" : "繁峙县",
"DisSort" : null,
"Id" : 278
},
{
"CityID" : 17,
"DisName" : "宁武县",
"DisSort" : null,
"Id" : 279
},
{
"CityID" : 17,
"DisName" : "静乐县",
"DisSort" : null,
"Id" : 280
},
{
"CityID" : 17,
"DisName" : "神池县",
"DisSort" : null,
"Id" : 281
},
{
"CityID" : 17,
"DisName" : "五寨县",
"DisSort" : null,
"Id" : 282
},
{
"CityID" : 17,
"DisName" : "岢岚县",
"DisSort" : null,
"Id" : 283
},
{
"CityID" : 17,
"DisName" : "河曲县",
"DisSort" : null,
"Id" : 284
},
{
"CityID" : 17,
"DisName" : "保德县",
"DisSort" : null,
"Id" : 285
},
{
"CityID" : 17,
"DisName" : "偏关县",
"DisSort" : null,
"Id" : 286
},
{
"CityID" : 17,
"DisName" : "原平市",
"DisSort" : null,
"Id" : 287
},
{
"CityID" : 18,
"DisName" : "小店区",
"DisSort" : null,
"Id" : 288
},
{
"CityID" : 18,
"DisName" : "迎泽区",
"DisSort" : null,
"Id" : 289
},
{
"CityID" : 18,
"DisName" : "杏花岭区",
"DisSort" : null,
"Id" : 290
},
{
"CityID" : 18,
"DisName" : "尖草坪区",
"DisSort" : null,
"Id" : 291
},
{
"CityID" : 18,
"DisName" : "万柏林区",
"DisSort" : null,
"Id" : 292
},
{
"CityID" : 18,
"DisName" : "晋源区",
"DisSort" : null,
"Id" : 293
},
{
"CityID" : 18,
"DisName" : "清徐县",
"DisSort" : null,
"Id" : 294
},
{
"CityID" : 18,
"DisName" : "阳曲县",
"DisSort" : null,
"Id" : 295
},
{
"CityID" : 18,
"DisName" : "娄烦县",
"DisSort" : null,
"Id" : 296
},
{
"CityID" : 18,
"DisName" : "古交市",
"DisSort" : null,
"Id" : 297
},
{
"CityID" : 19,
"DisName" : "矿区",
"DisSort" : null,
"Id" : 298
},
{
"CityID" : 19,
"DisName" : "南郊区",
"DisSort" : null,
"Id" : 299
},
{
"CityID" : 19,
"DisName" : "新荣区",
"DisSort" : null,
"Id" : 300
},
{
"CityID" : 19,
"DisName" : "阳高县",
"DisSort" : null,
"Id" : 301
},
{
"CityID" : 19,
"DisName" : "天镇县",
"DisSort" : null,
"Id" : 302
},
{
"CityID" : 19,
"DisName" : "广灵县",
"DisSort" : null,
"Id" : 303
},
{
"CityID" : 19,
"DisName" : "灵丘县",
"DisSort" : null,
"Id" : 304
},
{
"CityID" : 19,
"DisName" : "浑源县",
"DisSort" : null,
"Id" : 305
},
{
"CityID" : 19,
"DisName" : "左云县",
"DisSort" : null,
"Id" : 306
},
{
"CityID" : 19,
"DisName" : "大同县",
"DisSort" : null,
"Id" : 307
},
{
"CityID" : 20,
"DisName" : "矿区",
"DisSort" : null,
"Id" : 308
},
{
"CityID" : 20,
"DisName" : "平定县",
"DisSort" : null,
"Id" : 309
},
{
"CityID" : 20,
"DisName" : "盂县",
"DisSort" : null,
"Id" : 310
},
{
"CityID" : 21,
"DisName" : "榆次区",
"DisSort" : null,
"Id" : 311
},
{
"CityID" : 21,
"DisName" : "榆社县",
"DisSort" : null,
"Id" : 312
},
{
"CityID" : 21,
"DisName" : "左权县",
"DisSort" : null,
"Id" : 313
},
{
"CityID" : 21,
"DisName" : "和顺县",
"DisSort" : null,
"Id" : 314
},
{
"CityID" : 21,
"DisName" : "昔阳县",
"DisSort" : null,
"Id" : 315
},
{
"CityID" : 21,
"DisName" : "寿阳县",
"DisSort" : null,
"Id" : 316
},
{
"CityID" : 21,
"DisName" : "太谷县",
"DisSort" : null,
"Id" : 317
},
{
"CityID" : 21,
"DisName" : "祁县",
"DisSort" : null,
"Id" : 318
},
{
"CityID" : 21,
"DisName" : "平遥县",
"DisSort" : null,
"Id" : 319
},
{
"CityID" : 21,
"DisName" : "灵石县",
"DisSort" : null,
"Id" : 320
},
{
"CityID" : 21,
"DisName" : "介休市",
"DisSort" : null,
"Id" : 321
},
{
"CityID" : 22,
"DisName" : "长治县",
"DisSort" : null,
"Id" : 322
},
{
"CityID" : 22,
"DisName" : "襄垣县",
"DisSort" : null,
"Id" : 323
},
{
"CityID" : 22,
"DisName" : "屯留县",
"DisSort" : null,
"Id" : 324
},
{
"CityID" : 22,
"DisName" : "平顺县",
"DisSort" : null,
"Id" : 325
},
{
"CityID" : 22,
"DisName" : "黎城县",
"DisSort" : null,
"Id" : 326
},
{
"CityID" : 22,
"DisName" : "壶关县",
"DisSort" : null,
"Id" : 327
},
{
"CityID" : 22,
"DisName" : "长子县",
"DisSort" : null,
"Id" : 328
},
{
"CityID" : 22,
"DisName" : "武乡县",
"DisSort" : null,
"Id" : 329
},
{
"CityID" : 22,
"DisName" : "沁县",
"DisSort" : null,
"Id" : 330
},
{
"CityID" : 22,
"DisName" : "沁源县",
"DisSort" : null,
"Id" : 331
},
{
"CityID" : 22,
"DisName" : "潞城市",
"DisSort" : null,
"Id" : 332
},
{
"CityID" : 23,
"DisName" : "沁水县",
"DisSort" : null,
"Id" : 333
},
{
"CityID" : 23,
"DisName" : "阳城县",
"DisSort" : null,
"Id" : 334
},
{
"CityID" : 23,
"DisName" : "陵川县",
"DisSort" : null,
"Id" : 335
},
{
"CityID" : 23,
"DisName" : "泽州县",
"DisSort" : null,
"Id" : 336
},
{
"CityID" : 23,
"DisName" : "高平市",
"DisSort" : null,
"Id" : 337
},
{
"CityID" : 24,
"DisName" : "尧都区",
"DisSort" : null,
"Id" : 338
},
{
"CityID" : 24,
"DisName" : "曲沃县",
"DisSort" : null,
"Id" : 339
},
{
"CityID" : 24,
"DisName" : "翼城县",
"DisSort" : null,
"Id" : 340
},
{
"CityID" : 24,
"DisName" : "襄汾县",
"DisSort" : null,
"Id" : 341
},
{
"CityID" : 24,
"DisName" : "洪洞县",
"DisSort" : null,
"Id" : 342
},
{
"CityID" : 24,
"DisName" : "古县",
"DisSort" : null,
"Id" : 343
},
{
"CityID" : 24,
"DisName" : "安泽县",
"DisSort" : null,
"Id" : 344
},
{
"CityID" : 24,
"DisName" : "浮山县",
"DisSort" : null,
"Id" : 345
},
{
"CityID" : 24,
"DisName" : "吉县",
"DisSort" : null,
"Id" : 346
},
{
"CityID" : 24,
"DisName" : "乡宁县",
"DisSort" : null,
"Id" : 347
},
{
"CityID" : 24,
"DisName" : "大宁县",
"DisSort" : null,
"Id" : 348
},
{
"CityID" : 24,
"DisName" : "隰县",
"DisSort" : null,
"Id" : 349
},
{
"CityID" : 24,
"DisName" : "永和县",
"DisSort" : null,
"Id" : 350
},
{
"CityID" : 24,
"DisName" : "蒲县",
"DisSort" : null,
"Id" : 351
},
{
"CityID" : 24,
"DisName" : "汾西县",
"DisSort" : null,
"Id" : 352
},
{
"CityID" : 24,
"DisName" : "侯马市",
"DisSort" : null,
"Id" : 353
},
{
"CityID" : 24,
"DisName" : "霍州市",
"DisSort" : null,
"Id" : 354
},
{
"CityID" : 25,
"DisName" : "离石区",
"DisSort" : null,
"Id" : 355
},
{
"CityID" : 25,
"DisName" : "文水县",
"DisSort" : null,
"Id" : 356
},
{
"CityID" : 25,
"DisName" : "交城县",
"DisSort" : null,
"Id" : 357
},
{
"CityID" : 25,
"DisName" : "兴县",
"DisSort" : null,
"Id" : 358
},
{
"CityID" : 25,
"DisName" : "临县",
"DisSort" : null,
"Id" : 359
},
{
"CityID" : 25,
"DisName" : "柳林县",
"DisSort" : null,
"Id" : 360
},
{
"CityID" : 25,
"DisName" : "石楼县",
"DisSort" : null,
"Id" : 361
},
{
"CityID" : 25,
"DisName" : "岚县",
"DisSort" : null,
"Id" : 362
},
{
"CityID" : 25,
"DisName" : "方山县",
"DisSort" : null,
"Id" : 363
},
{
"CityID" : 25,
"DisName" : "中阳县",
"DisSort" : null,
"Id" : 364
},
{
"CityID" : 25,
"DisName" : "交口县",
"DisSort" : null,
"Id" : 365
},
{
"CityID" : 25,
"DisName" : "孝义市",
"DisSort" : null,
"Id" : 366
},
{
"CityID" : 25,
"DisName" : "汾阳市",
"DisSort" : null,
"Id" : 367
},
{
"CityID" : 26,
"DisName" : "盐湖区",
"DisSort" : null,
"Id" : 368
},
{
"CityID" : 26,
"DisName" : "临猗县",
"DisSort" : null,
"Id" : 369
},
{
"CityID" : 26,
"DisName" : "万荣县",
"DisSort" : null,
"Id" : 370
},
{
"CityID" : 26,
"DisName" : "闻喜县",
"DisSort" : null,
"Id" : 371
},
{
"CityID" : 26,
"DisName" : "稷山县",
"DisSort" : null,
"Id" : 372
},
{
"CityID" : 26,
"DisName" : "新绛县",
"DisSort" : null,
"Id" : 373
},
{
"CityID" : 26,
"DisName" : "绛县",
"DisSort" : null,
"Id" : 374
},
{
"CityID" : 26,
"DisName" : "垣曲县",
"DisSort" : null,
"Id" : 375
},
{
"CityID" : 26,
"DisName" : "夏县",
"DisSort" : null,
"Id" : 376
},
{
"CityID" : 26,
"DisName" : "平陆县",
"DisSort" : null,
"Id" : 377
},
{
"CityID" : 26,
"DisName" : "芮城县",
"DisSort" : null,
"Id" : 378
},
{
"CityID" : 26,
"DisName" : "永济市",
"DisSort" : null,
"Id" : 379
},
{
"CityID" : 26,
"DisName" : "河津市",
"DisSort" : null,
"Id" : 380
},
{
"CityID" : 27,
"DisName" : "和平区",
"DisSort" : null,
"Id" : 381
},
{
"CityID" : 27,
"DisName" : "沈河区",
"DisSort" : null,
"Id" : 382
},
{
"CityID" : 27,
"DisName" : "大东区",
"DisSort" : null,
"Id" : 383
},
{
"CityID" : 27,
"DisName" : "皇姑区",
"DisSort" : null,
"Id" : 384
},
{
"CityID" : 27,
"DisName" : "铁西区",
"DisSort" : null,
"Id" : 385
},
{
"CityID" : 27,
"DisName" : "苏家屯区",
"DisSort" : null,
"Id" : 386
},
{
"CityID" : 27,
"DisName" : "东陵区",
"DisSort" : null,
"Id" : 387
},
{
"CityID" : 27,
"DisName" : "沈北新区",
"DisSort" : null,
"Id" : 388
},
{
"CityID" : 27,
"DisName" : "于洪区",
"DisSort" : null,
"Id" : 389
},
{
"CityID" : 27,
"DisName" : "辽中县",
"DisSort" : null,
"Id" : 390
},
{
"CityID" : 27,
"DisName" : "康平县",
"DisSort" : null,
"Id" : 391
},
{
"CityID" : 27,
"DisName" : "法库县",
"DisSort" : null,
"Id" : 392
},
{
"CityID" : 27,
"DisName" : "新民市",
"DisSort" : null,
"Id" : 393
},
{
"CityID" : 28,
"DisName" : "银州区",
"DisSort" : null,
"Id" : 394
},
{
"CityID" : 28,
"DisName" : "清河区",
"DisSort" : null,
"Id" : 395
},
{
"CityID" : 28,
"DisName" : "铁岭县",
"DisSort" : null,
"Id" : 396
},
{
"CityID" : 28,
"DisName" : "西丰县",
"DisSort" : null,
"Id" : 397
},
{
"CityID" : 28,
"DisName" : "昌图县",
"DisSort" : null,
"Id" : 398
},
{
"CityID" : 28,
"DisName" : "调兵山市",
"DisSort" : null,
"Id" : 399
},
{
"CityID" : 28,
"DisName" : "开原市",
"DisSort" : null,
"Id" : 400
},
{
"CityID" : 29,
"DisName" : "长海县",
"DisSort" : null,
"Id" : 401
},
{
"CityID" : 29,
"DisName" : "旅顺口区",
"DisSort" : null,
"Id" : 402
},
{
"CityID" : 29,
"DisName" : "中山区",
"DisSort" : null,
"Id" : 403
},
{
"CityID" : 29,
"DisName" : "西岗区",
"DisSort" : null,
"Id" : 404
},
{
"CityID" : 29,
"DisName" : "沙河口区",
"DisSort" : null,
"Id" : 405
},
{
"CityID" : 29,
"DisName" : "甘井子区",
"DisSort" : null,
"Id" : 406
},
{
"CityID" : 29,
"DisName" : "金州区",
"DisSort" : null,
"Id" : 407
},
{
"CityID" : 29,
"DisName" : "普兰店市",
"DisSort" : null,
"Id" : 408
},
{
"CityID" : 29,
"DisName" : "瓦房店市",
"DisSort" : null,
"Id" : 409
},
{
"CityID" : 29,
"DisName" : "庄河市",
"DisSort" : null,
"Id" : 410
},
{
"CityID" : 30,
"DisName" : "铁东区",
"DisSort" : null,
"Id" : 411
},
{
"CityID" : 30,
"DisName" : "铁西区",
"DisSort" : null,
"Id" : 412
},
{
"CityID" : 30,
"DisName" : "立山区",
"DisSort" : null,
"Id" : 413
},
{
"CityID" : 30,
"DisName" : "千山区",
"DisSort" : null,
"Id" : 414
},
{
"CityID" : 30,
"DisName" : "台安县",
"DisSort" : null,
"Id" : 415
},
{
"CityID" : 30,
"DisName" : "岫岩满族自治县",
"DisSort" : null,
"Id" : 416
},
{
"CityID" : 30,
"DisName" : "海城市",
"DisSort" : null,
"Id" : 417
},
{
"CityID" : 31,
"DisName" : "新抚区",
"DisSort" : null,
"Id" : 418
},
{
"CityID" : 31,
"DisName" : "东洲区",
"DisSort" : null,
"Id" : 419
},
{
"CityID" : 31,
"DisName" : "望花区",
"DisSort" : null,
"Id" : 420
},
{
"CityID" : 31,
"DisName" : "顺城区",
"DisSort" : null,
"Id" : 421
},
{
"CityID" : 31,
"DisName" : "抚顺县",
"DisSort" : null,
"Id" : 422
},
{
"CityID" : 31,
"DisName" : "新宾满族自治县",
"DisSort" : null,
"Id" : 423
},
{
"CityID" : 31,
"DisName" : "清原满族自治县",
"DisSort" : null,
"Id" : 424
},
{
"CityID" : 32,
"DisName" : "平山区",
"DisSort" : null,
"Id" : 425
},
{
"CityID" : 32,
"DisName" : "溪湖区",
"DisSort" : null,
"Id" : 426
},
{
"CityID" : 32,
"DisName" : "明山区",
"DisSort" : null,
"Id" : 427
},
{
"CityID" : 32,
"DisName" : "南芬区",
"DisSort" : null,
"Id" : 428
},
{
"CityID" : 32,
"DisName" : "本溪满族自治县",
"DisSort" : null,
"Id" : 429
},
{
"CityID" : 32,
"DisName" : "桓仁满族自治县",
"DisSort" : null,
"Id" : 430
},
{
"CityID" : 33,
"DisName" : "元宝区",
"DisSort" : null,
"Id" : 431
},
{
"CityID" : 33,
"DisName" : "振兴区",
"DisSort" : null,
"Id" : 432
},
{
"CityID" : 33,
"DisName" : "振安区",
"DisSort" : null,
"Id" : 433
},
{
"CityID" : 33,
"DisName" : "宽甸满族自治县",
"DisSort" : null,
"Id" : 434
},
{
"CityID" : 33,
"DisName" : "东港市",
"DisSort" : null,
"Id" : 435
},
{
"CityID" : 33,
"DisName" : "凤城市",
"DisSort" : null,
"Id" : 436
},
{
"CityID" : 34,
"DisName" : "古塔区",
"DisSort" : null,
"Id" : 437
},
{
"CityID" : 34,
"DisName" : "凌河区",
"DisSort" : null,
"Id" : 438
},
{
"CityID" : 34,
"DisName" : "太和区",
"DisSort" : null,
"Id" : 439
},
{
"CityID" : 34,
"DisName" : "黑山县",
"DisSort" : null,
"Id" : 440
},
{
"CityID" : 34,
"DisName" : "义县",
"DisSort" : null,
"Id" : 441
},
{
"CityID" : 34,
"DisName" : "凌海市",
"DisSort" : null,
"Id" : 442
},
{
"CityID" : 34,
"DisName" : "北镇市",
"DisSort" : null,
"Id" : 443
},
{
"CityID" : 35,
"DisName" : "站前区",
"DisSort" : null,
"Id" : 444
},
{
"CityID" : 35,
"DisName" : "西市区",
"DisSort" : null,
"Id" : 445
},
{
"CityID" : 35,
"DisName" : "鮁鱼圈区",
"DisSort" : null,
"Id" : 446
},
{
"CityID" : 35,
"DisName" : "老边区",
"DisSort" : null,
"Id" : 447
},
{
"CityID" : 35,
"DisName" : "盖州市",
"DisSort" : null,
"Id" : 448
},
{
"CityID" : 35,
"DisName" : "大石桥市",
"DisSort" : null,
"Id" : 449
},
{
"CityID" : 36,
"DisName" : "海州区",
"DisSort" : null,
"Id" : 450
},
{
"CityID" : 36,
"DisName" : "新邱区",
"DisSort" : null,
"Id" : 451
},
{
"CityID" : 36,
"DisName" : "太平区",
"DisSort" : null,
"Id" : 452
},
{
"CityID" : 36,
"DisName" : "清河门区",
"DisSort" : null,
"Id" : 453
},
{
"CityID" : 36,
"DisName" : "细河区",
"DisSort" : null,
"Id" : 454
},
{
"CityID" : 36,
"DisName" : "阜新蒙古族自治县",
"DisSort" : null,
"Id" : 455
},
{
"CityID" : 36,
"DisName" : "彰武县",
"DisSort" : null,
"Id" : 456
},
{
"CityID" : 37,
"DisName" : "白塔区",
"DisSort" : null,
"Id" : 457
},
{
"CityID" : 37,
"DisName" : "文圣区",
"DisSort" : null,
"Id" : 458
},
{
"CityID" : 37,
"DisName" : "宏伟区",
"DisSort" : null,
"Id" : 459
},
{
"CityID" : 37,
"DisName" : "弓长岭区",
"DisSort" : null,
"Id" : 460
},
{
"CityID" : 37,
"DisName" : "太子河区",
"DisSort" : null,
"Id" : 461
},
{
"CityID" : 37,
"DisName" : "辽阳县",
"DisSort" : null,
"Id" : 462
},
{
"CityID" : 37,
"DisName" : "灯塔市",
"DisSort" : null,
"Id" : 463
},
{
"CityID" : 38,
"DisName" : "双塔区",
"DisSort" : null,
"Id" : 464
},
{
"CityID" : 38,
"DisName" : "龙城区",
"DisSort" : null,
"Id" : 465
},
{
"CityID" : 38,
"DisName" : "朝阳县",
"DisSort" : null,
"Id" : 466
},
{
"CityID" : 38,
"DisName" : "建平县",
"DisSort" : null,
"Id" : 467
},
{
"CityID" : 38,
"DisName" : "喀喇沁左翼蒙古族自治县",
"DisSort" : null,
"Id" : 468
},
{
"CityID" : 38,
"DisName" : "北票市",
"DisSort" : null,
"Id" : 469
},
{
"CityID" : 38,
"DisName" : "凌源市",
"DisSort" : null,
"Id" : 470
},
{
"CityID" : 39,
"DisName" : "双台子区",
"DisSort" : null,
"Id" : 471
},
{
"CityID" : 39,
"DisName" : "兴隆台区",
"DisSort" : null,
"Id" : 472
},
{
"CityID" : 39,
"DisName" : "大洼县",
"DisSort" : null,
"Id" : 473
},
{
"CityID" : 39,
"DisName" : "盘山县",
"DisSort" : null,
"Id" : 474
},
{
"CityID" : 40,
"DisName" : "连山区",
"DisSort" : null,
"Id" : 475
},
{
"CityID" : 40,
"DisName" : "龙港区",
"DisSort" : null,
"Id" : 476
},
{
"CityID" : 40,
"DisName" : "南票区",
"DisSort" : null,
"Id" : 477
},
{
"CityID" : 40,
"DisName" : "绥中县",
"DisSort" : null,
"Id" : 478
},
{
"CityID" : 40,
"DisName" : "建昌县",
"DisSort" : null,
"Id" : 479
},
{
"CityID" : 40,
"DisName" : "兴城市",
"DisSort" : null,
"Id" : 480
},
{
"CityID" : 41,
"DisName" : "南关区",
"DisSort" : null,
"Id" : 481
},
{
"CityID" : 41,
"DisName" : "宽城区",
"DisSort" : null,
"Id" : 482
},
{
"CityID" : 41,
"DisName" : "朝阳区",
"DisSort" : null,
"Id" : 483
},
{
"CityID" : 41,
"DisName" : "二道区",
"DisSort" : null,
"Id" : 484
},
{
"CityID" : 41,
"DisName" : "绿园区",
"DisSort" : null,
"Id" : 485
},
{
"CityID" : 41,
"DisName" : "双阳区",
"DisSort" : null,
"Id" : 486
},
{
"CityID" : 41,
"DisName" : "农安县",
"DisSort" : null,
"Id" : 487
},
{
"CityID" : 41,
"DisName" : "九台市",
"DisSort" : null,
"Id" : 488
},
{
"CityID" : 41,
"DisName" : "榆树市",
"DisSort" : null,
"Id" : 489
},
{
"CityID" : 41,
"DisName" : "德惠市",
"DisSort" : null,
"Id" : 490
},
{
"CityID" : 42,
"DisName" : "昌邑区",
"DisSort" : null,
"Id" : 491
},
{
"CityID" : 42,
"DisName" : "龙潭区",
"DisSort" : null,
"Id" : 492
},
{
"CityID" : 42,
"DisName" : "船营区",
"DisSort" : null,
"Id" : 493
},
{
"CityID" : 42,
"DisName" : "丰满区",
"DisSort" : null,
"Id" : 494
},
{
"CityID" : 42,
"DisName" : "永吉县",
"DisSort" : null,
"Id" : 495
},
{
"CityID" : 42,
"DisName" : "蛟河市",
"DisSort" : null,
"Id" : 496
},
{
"CityID" : 42,
"DisName" : "桦甸市",
"DisSort" : null,
"Id" : 497
},
{
"CityID" : 42,
"DisName" : "舒兰市",
"DisSort" : null,
"Id" : 498
},
{
"CityID" : 42,
"DisName" : "磐石市",
"DisSort" : null,
"Id" : 499
},
{
"CityID" : 43,
"DisName" : "延吉市",
"DisSort" : null,
"Id" : 500
},
{
"CityID" : 43,
"DisName" : "图们市",
"DisSort" : null,
"Id" : 501
},
{
"CityID" : 43,
"DisName" : "敦化市",
"DisSort" : null,
"Id" : 502
},
{
"CityID" : 43,
"DisName" : "珲春市",
"DisSort" : null,
"Id" : 503
},
{
"CityID" : 43,
"DisName" : "龙井市",
"DisSort" : null,
"Id" : 504
},
{
"CityID" : 43,
"DisName" : "和龙市",
"DisSort" : null,
"Id" : 505
},
{
"CityID" : 43,
"DisName" : "汪清县",
"DisSort" : null,
"Id" : 506
},
{
"CityID" : 43,
"DisName" : "安图县",
"DisSort" : null,
"Id" : 507
},
{
"CityID" : 44,
"DisName" : "铁西区",
"DisSort" : null,
"Id" : 508
},
{
"CityID" : 44,
"DisName" : "铁东区",
"DisSort" : null,
"Id" : 509
},
{
"CityID" : 44,
"DisName" : "梨树县",
"DisSort" : null,
"Id" : 510
},
{
"CityID" : 44,
"DisName" : "伊通满族自治县",
"DisSort" : null,
"Id" : 511
},
{
"CityID" : 44,
"DisName" : "公主岭市",
"DisSort" : null,
"Id" : 512
},
{
"CityID" : 44,
"DisName" : "双辽市",
"DisSort" : null,
"Id" : 513
},
{
"CityID" : 45,
"DisName" : "东昌区",
"DisSort" : null,
"Id" : 514
},
{
"CityID" : 45,
"DisName" : "二道江区",
"DisSort" : null,
"Id" : 515
},
{
"CityID" : 45,
"DisName" : "通化县",
"DisSort" : null,
"Id" : 516
},
{
"CityID" : 45,
"DisName" : "辉南县",
"DisSort" : null,
"Id" : 517
},
{
"CityID" : 45,
"DisName" : "柳河县",
"DisSort" : null,
"Id" : 518
},
{
"CityID" : 45,
"DisName" : "梅河口市",
"DisSort" : null,
"Id" : 519
},
{
"CityID" : 45,
"DisName" : "集安市",
"DisSort" : null,
"Id" : 520
},
{
"CityID" : 46,
"DisName" : "洮北区",
"DisSort" : null,
"Id" : 521
},
{
"CityID" : 46,
"DisName" : "镇赉县",
"DisSort" : null,
"Id" : 522
},
{
"CityID" : 46,
"DisName" : "通榆县",
"DisSort" : null,
"Id" : 523
},
{
"CityID" : 46,
"DisName" : "洮南市",
"DisSort" : null,
"Id" : 524
},
{
"CityID" : 46,
"DisName" : "大安市",
"DisSort" : null,
"Id" : 525
},
{
"CityID" : 47,
"DisName" : "龙山区",
"DisSort" : null,
"Id" : 526
},
{
"CityID" : 47,
"DisName" : "西安区",
"DisSort" : null,
"Id" : 527
},
{
"CityID" : 47,
"DisName" : "东丰县",
"DisSort" : null,
"Id" : 528
},
{
"CityID" : 47,
"DisName" : "东辽县",
"DisSort" : null,
"Id" : 529
},
{
"CityID" : 48,
"DisName" : "宁江区",
"DisSort" : null,
"Id" : 530
},
{
"CityID" : 48,
"DisName" : "前郭尔罗斯蒙古族自治县",
"DisSort" : null,
"Id" : 531
},
{
"CityID" : 48,
"DisName" : "长岭县",
"DisSort" : null,
"Id" : 532
},
{
"CityID" : 48,
"DisName" : "乾安县",
"DisSort" : null,
"Id" : 533
},
{
"CityID" : 48,
"DisName" : "扶余县",
"DisSort" : null,
"Id" : 534
},
{
"CityID" : 49,
"DisName" : "八道江区",
"DisSort" : null,
"Id" : 535
},
{
"CityID" : 49,
"DisName" : "江源区",
"DisSort" : null,
"Id" : 536
},
{
"CityID" : 49,
"DisName" : "抚松县",
"DisSort" : null,
"Id" : 537
},
{
"CityID" : 49,
"DisName" : "靖宇县",
"DisSort" : null,
"Id" : 538
},
{
"CityID" : 49,
"DisName" : "长白朝鲜族自治县",
"DisSort" : null,
"Id" : 539
},
{
"CityID" : 49,
"DisName" : "临江市",
"DisSort" : null,
"Id" : 540
},
{
"CityID" : 50,
"DisName" : "道里区",
"DisSort" : null,
"Id" : 541
},
{
"CityID" : 50,
"DisName" : "南岗区",
"DisSort" : null,
"Id" : 542
},
{
"CityID" : 50,
"DisName" : "道外区",
"DisSort" : null,
"Id" : 543
},
{
"CityID" : 50,
"DisName" : "平房区",
"DisSort" : null,
"Id" : 544
},
{
"CityID" : 50,
"DisName" : "松北区",
"DisSort" : null,
"Id" : 545
},
{
"CityID" : 50,
"DisName" : "香坊区",
"DisSort" : null,
"Id" : 546
},
{
"CityID" : 50,
"DisName" : "呼兰区",
"DisSort" : null,
"Id" : 547
},
{
"CityID" : 50,
"DisName" : "阿城区",
"DisSort" : null,
"Id" : 548
},
{
"CityID" : 50,
"DisName" : "依兰县",
"DisSort" : null,
"Id" : 549
},
{
"CityID" : 50,
"DisName" : "方正县",
"DisSort" : null,
"Id" : 550
},
{
"CityID" : 50,
"DisName" : "宾县",
"DisSort" : null,
"Id" : 551
},
{
"CityID" : 50,
"DisName" : "巴彦县",
"DisSort" : null,
"Id" : 552
},
{
"CityID" : 50,
"DisName" : "木兰县",
"DisSort" : null,
"Id" : 553
},
{
"CityID" : 50,
"DisName" : "通河县",
"DisSort" : null,
"Id" : 554
},
{
"CityID" : 50,
"DisName" : "延寿县",
"DisSort" : null,
"Id" : 555
},
{
"CityID" : 50,
"DisName" : "双城市",
"DisSort" : null,
"Id" : 556
},
{
"CityID" : 50,
"DisName" : "尚志市",
"DisSort" : null,
"Id" : 557
},
{
"CityID" : 50,
"DisName" : "五常市",
"DisSort" : null,
"Id" : 558
},
{
"CityID" : 51,
"DisName" : "龙沙区",
"DisSort" : null,
"Id" : 559
},
{
"CityID" : 51,
"DisName" : "建华区",
"DisSort" : null,
"Id" : 560
},
{
"CityID" : 51,
"DisName" : "铁锋区",
"DisSort" : null,
"Id" : 561
},
{
"CityID" : 51,
"DisName" : "昂昂溪区",
"DisSort" : null,
"Id" : 562
},
{
"CityID" : 51,
"DisName" : "富拉尔基区",
"DisSort" : null,
"Id" : 563
},
{
"CityID" : 51,
"DisName" : "碾子山区",
"DisSort" : null,
"Id" : 564
},
{
"CityID" : 51,
"DisName" : "梅里斯达翰尔族区",
"DisSort" : null,
"Id" : 565
},
{
"CityID" : 51,
"DisName" : "龙江县",
"DisSort" : null,
"Id" : 566
},
{
"CityID" : 51,
"DisName" : "依安县",
"DisSort" : null,
"Id" : 567
},
{
"CityID" : 51,
"DisName" : "泰来县",
"DisSort" : null,
"Id" : 568
},
{
"CityID" : 51,
"DisName" : "甘南县",
"DisSort" : null,
"Id" : 569
},
{
"CityID" : 51,
"DisName" : "富裕县",
"DisSort" : null,
"Id" : 570
},
{
"CityID" : 51,
"DisName" : "克山县",
"DisSort" : null,
"Id" : 571
},
{
"CityID" : 51,
"DisName" : "克东县",
"DisSort" : null,
"Id" : 572
},
{
"CityID" : 51,
"DisName" : "拜泉县",
"DisSort" : null,
"Id" : 573
},
{
"CityID" : 51,
"DisName" : "讷河市",
"DisSort" : null,
"Id" : 574
},
{
"CityID" : 52,
"DisName" : "鸡冠区",
"DisSort" : null,
"Id" : 575
},
{
"CityID" : 52,
"DisName" : "恒山区",
"DisSort" : null,
"Id" : 576
},
{
"CityID" : 52,
"DisName" : "滴道区",
"DisSort" : null,
"Id" : 577
},
{
"CityID" : 52,
"DisName" : "梨树区",
"DisSort" : null,
"Id" : 578
},
{
"CityID" : 52,
"DisName" : "城子河区",
"DisSort" : null,
"Id" : 579
},
{
"CityID" : 52,
"DisName" : "麻山区",
"DisSort" : null,
"Id" : 580
},
{
"CityID" : 52,
"DisName" : "鸡东县",
"DisSort" : null,
"Id" : 581
},
{
"CityID" : 52,
"DisName" : "虎林市",
"DisSort" : null,
"Id" : 582
},
{
"CityID" : 52,
"DisName" : "密山市",
"DisSort" : null,
"Id" : 583
},
{
"CityID" : 53,
"DisName" : "东安区",
"DisSort" : null,
"Id" : 584
},
{
"CityID" : 53,
"DisName" : "阳明区",
"DisSort" : null,
"Id" : 585
},
{
"CityID" : 53,
"DisName" : "爱民区",
"DisSort" : null,
"Id" : 586
},
{
"CityID" : 53,
"DisName" : "西安区",
"DisSort" : null,
"Id" : 587
},
{
"CityID" : 53,
"DisName" : "东宁县",
"DisSort" : null,
"Id" : 588
},
{
"CityID" : 53,
"DisName" : "林口县",
"DisSort" : null,
"Id" : 589
},
{
"CityID" : 53,
"DisName" : "绥芬河市",
"DisSort" : null,
"Id" : 590
},
{
"CityID" : 53,
"DisName" : "海林市",
"DisSort" : null,
"Id" : 591
},
{
"CityID" : 53,
"DisName" : "宁安市",
"DisSort" : null,
"Id" : 592
},
{
"CityID" : 53,
"DisName" : "穆棱市",
"DisSort" : null,
"Id" : 593
},
{
"CityID" : 54,
"DisName" : "新兴区",
"DisSort" : null,
"Id" : 594
},
{
"CityID" : 54,
"DisName" : "桃山区",
"DisSort" : null,
"Id" : 595
},
{
"CityID" : 54,
"DisName" : "茄子河区",
"DisSort" : null,
"Id" : 596
},
{
"CityID" : 54,
"DisName" : "勃利县",
"DisSort" : null,
"Id" : 597
},
{
"CityID" : 55,
"DisName" : "向阳区",
"DisSort" : null,
"Id" : 598
},
{
"CityID" : 55,
"DisName" : "前进区",
"DisSort" : null,
"Id" : 599
},
{
"CityID" : 55,
"DisName" : "东风区",
"DisSort" : null,
"Id" : 600
},
{
"CityID" : 55,
"DisName" : "桦南县",
"DisSort" : null,
"Id" : 601
},
{
"CityID" : 55,
"DisName" : "桦川县",
"DisSort" : null,
"Id" : 602
},
{
"CityID" : 55,
"DisName" : "汤原县",
"DisSort" : null,
"Id" : 603
},
{
"CityID" : 55,
"DisName" : "抚远县",
"DisSort" : null,
"Id" : 604
},
{
"CityID" : 55,
"DisName" : "同江市",
"DisSort" : null,
"Id" : 605
},
{
"CityID" : 55,
"DisName" : "富锦市",
"DisSort" : null,
"Id" : 606
},
{
"CityID" : 56,
"DisName" : "向阳区",
"DisSort" : null,
"Id" : 607
},
{
"CityID" : 56,
"DisName" : "工农区",
"DisSort" : null,
"Id" : 608
},
{
"CityID" : 56,
"DisName" : "南山区",
"DisSort" : null,
"Id" : 609
},
{
"CityID" : 56,
"DisName" : "兴安区",
"DisSort" : null,
"Id" : 610
},
{
"CityID" : 56,
"DisName" : "东山区",
"DisSort" : null,
"Id" : 611
},
{
"CityID" : 56,
"DisName" : "兴山区",
"DisSort" : null,
"Id" : 612
},
{
"CityID" : 56,
"DisName" : "萝北县",
"DisSort" : null,
"Id" : 613
},
{
"CityID" : 56,
"DisName" : "绥滨县",
"DisSort" : null,
"Id" : 614
},
{
"CityID" : 57,
"DisName" : "尖山区",
"DisSort" : null,
"Id" : 615
},
{
"CityID" : 57,
"DisName" : "岭东区",
"DisSort" : null,
"Id" : 616
},
{
"CityID" : 57,
"DisName" : "四方台区",
"DisSort" : null,
"Id" : 617
},
{
"CityID" : 57,
"DisName" : "宝山区",
"DisSort" : null,
"Id" : 618
},
{
"CityID" : 57,
"DisName" : "集贤县",
"DisSort" : null,
"Id" : 619
},
{
"CityID" : 57,
"DisName" : "友谊县",
"DisSort" : null,
"Id" : 620
},
{
"CityID" : 57,
"DisName" : "宝清县",
"DisSort" : null,
"Id" : 621
},
{
"CityID" : 57,
"DisName" : "饶河县",
"DisSort" : null,
"Id" : 622
},
{
"CityID" : 58,
"DisName" : "北林区",
"DisSort" : null,
"Id" : 623
},
{
"CityID" : 58,
"DisName" : "望奎县",
"DisSort" : null,
"Id" : 624
},
{
"CityID" : 58,
"DisName" : "兰西县",
"DisSort" : null,
"Id" : 625
},
{
"CityID" : 58,
"DisName" : "青冈县",
"DisSort" : null,
"Id" : 626
},
{
"CityID" : 58,
"DisName" : "庆安县",
"DisSort" : null,
"Id" : 627
},
{
"CityID" : 58,
"DisName" : "明水县",
"DisSort" : null,
"Id" : 628
},
{
"CityID" : 58,
"DisName" : "绥棱县",
"DisSort" : null,
"Id" : 629
},
{
"CityID" : 58,
"DisName" : "安达市",
"DisSort" : null,
"Id" : 630
},
{
"CityID" : 58,
"DisName" : "肇东市",
"DisSort" : null,
"Id" : 631
},
{
"CityID" : 58,
"DisName" : "海伦市",
"DisSort" : null,
"Id" : 632
},
{
"CityID" : 59,
"DisName" : "爱辉区",
"DisSort" : null,
"Id" : 633
},
{
"CityID" : 59,
"DisName" : "嫩江县",
"DisSort" : null,
"Id" : 634
},
{
"CityID" : 59,
"DisName" : "逊克县",
"DisSort" : null,
"Id" : 635
},
{
"CityID" : 59,
"DisName" : "孙吴县",
"DisSort" : null,
"Id" : 636
},
{
"CityID" : 59,
"DisName" : "北安市",
"DisSort" : null,
"Id" : 637
},
{
"CityID" : 59,
"DisName" : "五大连池市",
"DisSort" : null,
"Id" : 638
},
{
"CityID" : 60,
"DisName" : "呼玛县",
"DisSort" : null,
"Id" : 639
},
{
"CityID" : 60,
"DisName" : "塔河县",
"DisSort" : null,
"Id" : 640
},
{
"CityID" : 60,
"DisName" : "漠河县",
"DisSort" : null,
"Id" : 641
},
{
"CityID" : 61,
"DisName" : "伊春区",
"DisSort" : null,
"Id" : 642
},
{
"CityID" : 61,
"DisName" : "南岔区",
"DisSort" : null,
"Id" : 643
},
{
"CityID" : 61,
"DisName" : "友好区",
"DisSort" : null,
"Id" : 644
},
{
"CityID" : 61,
"DisName" : "西林区",
"DisSort" : null,
"Id" : 645
},
{
"CityID" : 61,
"DisName" : "翠峦区",
"DisSort" : null,
"Id" : 646
},
{
"CityID" : 61,
"DisName" : "新青区",
"DisSort" : null,
"Id" : 647
},
{
"CityID" : 61,
"DisName" : "美溪区",
"DisSort" : null,
"Id" : 648
},
{
"CityID" : 61,
"DisName" : "金山屯区",
"DisSort" : null,
"Id" : 649
},
{
"CityID" : 61,
"DisName" : "五营区",
"DisSort" : null,
"Id" : 650
},
{
"CityID" : 61,
"DisName" : "乌马河区",
"DisSort" : null,
"Id" : 651
},
{
"CityID" : 61,
"DisName" : "汤旺河区",
"DisSort" : null,
"Id" : 652
},
{
"CityID" : 61,
"DisName" : "带岭区",
"DisSort" : null,
"Id" : 653
},
{
"CityID" : 61,
"DisName" : "乌伊岭区",
"DisSort" : null,
"Id" : 654
},
{
"CityID" : 61,
"DisName" : "红星区",
"DisSort" : null,
"Id" : 655
},
{
"CityID" : 61,
"DisName" : "上甘岭区",
"DisSort" : null,
"Id" : 656
},
{
"CityID" : 61,
"DisName" : "嘉荫县",
"DisSort" : null,
"Id" : 657
},
{
"CityID" : 61,
"DisName" : "铁力市",
"DisSort" : null,
"Id" : 658
},
{
"CityID" : 62,
"DisName" : "萨尔图区",
"DisSort" : null,
"Id" : 659
},
{
"CityID" : 62,
"DisName" : "龙凤区",
"DisSort" : null,
"Id" : 660
},
{
"CityID" : 62,
"DisName" : "让胡路区",
"DisSort" : null,
"Id" : 661
},
{
"CityID" : 62,
"DisName" : "红岗区",
"DisSort" : null,
"Id" : 662
},
{
"CityID" : 62,
"DisName" : "大同区",
"DisSort" : null,
"Id" : 663
},
{
"CityID" : 62,
"DisName" : "肇州县",
"DisSort" : null,
"Id" : 664
},
{
"CityID" : 62,
"DisName" : "肇源县",
"DisSort" : null,
"Id" : 665
},
{
"CityID" : 62,
"DisName" : "林甸县",
"DisSort" : null,
"Id" : 666
},
{
"CityID" : 62,
"DisName" : "杜尔伯特蒙古族自治县",
"DisSort" : null,
"Id" : 667
},
{
"CityID" : 63,
"DisName" : "江宁区",
"DisSort" : null,
"Id" : 668
},
{
"CityID" : 63,
"DisName" : "浦口区",
"DisSort" : null,
"Id" : 669
},
{
"CityID" : 63,
"DisName" : "玄武区",
"DisSort" : null,
"Id" : 670
},
{
"CityID" : 63,
"DisName" : "白下区",
"DisSort" : null,
"Id" : 671
},
{
"CityID" : 63,
"DisName" : "秦淮区",
"DisSort" : null,
"Id" : 672
},
{
"CityID" : 63,
"DisName" : "建邺区",
"DisSort" : null,
"Id" : 673
},
{
"CityID" : 63,
"DisName" : "鼓楼区",
"DisSort" : null,
"Id" : 674
},
{
"CityID" : 63,
"DisName" : "下关区",
"DisSort" : null,
"Id" : 675
},
{
"CityID" : 63,
"DisName" : "栖霞区",
"DisSort" : null,
"Id" : 676
},
{
"CityID" : 63,
"DisName" : "雨花台区",
"DisSort" : null,
"Id" : 677
},
{
"CityID" : 63,
"DisName" : "六合区",
"DisSort" : null,
"Id" : 678
},
{
"CityID" : 63,
"DisName" : "溧水县",
"DisSort" : null,
"Id" : 679
},
{
"CityID" : 63,
"DisName" : "高淳县",
"DisSort" : null,
"Id" : 680
},
{
"CityID" : 64,
"DisName" : "崇安区",
"DisSort" : null,
"Id" : 681
},
{
"CityID" : 64,
"DisName" : "南长区",
"DisSort" : null,
"Id" : 682
},
{
"CityID" : 64,
"DisName" : "北塘区",
"DisSort" : null,
"Id" : 683
},
{
"CityID" : 64,
"DisName" : "锡山区",
"DisSort" : null,
"Id" : 684
},
{
"CityID" : 64,
"DisName" : "惠山区",
"DisSort" : null,
"Id" : 685
},
{
"CityID" : 64,
"DisName" : "滨湖区",
"DisSort" : null,
"Id" : 686
},
{
"CityID" : 64,
"DisName" : "江阴市",
"DisSort" : null,
"Id" : 687
},
{
"CityID" : 64,
"DisName" : "宜兴市",
"DisSort" : null,
"Id" : 688
},
{
"CityID" : 65,
"DisName" : "京口区",
"DisSort" : null,
"Id" : 689
},
{
"CityID" : 65,
"DisName" : "润州区",
"DisSort" : null,
"Id" : 690
},
{
"CityID" : 65,
"DisName" : "丹徒区",
"DisSort" : null,
"Id" : 691
},
{
"CityID" : 65,
"DisName" : "丹阳市",
"DisSort" : null,
"Id" : 692
},
{
"CityID" : 65,
"DisName" : "扬中市",
"DisSort" : null,
"Id" : 693
},
{
"CityID" : 65,
"DisName" : "句容市",
"DisSort" : null,
"Id" : 694
},
{
"CityID" : 66,
"DisName" : "沧浪区",
"DisSort" : null,
"Id" : 695
},
{
"CityID" : 66,
"DisName" : "常熟市",
"DisSort" : null,
"Id" : 696
},
{
"CityID" : 66,
"DisName" : "平江区",
"DisSort" : null,
"Id" : 697
},
{
"CityID" : 66,
"DisName" : "金阊区",
"DisSort" : null,
"Id" : 698
},
{
"CityID" : 66,
"DisName" : "虎丘区",
"DisSort" : null,
"Id" : 699
},
{
"CityID" : 66,
"DisName" : "昆山市",
"DisSort" : null,
"Id" : 700
},
{
"CityID" : 66,
"DisName" : "太仓市",
"DisSort" : null,
"Id" : 701
},
{
"CityID" : 66,
"DisName" : "吴江市",
"DisSort" : null,
"Id" : 702
},
{
"CityID" : 66,
"DisName" : "吴中区",
"DisSort" : null,
"Id" : 703
},
{
"CityID" : 66,
"DisName" : "相城区",
"DisSort" : null,
"Id" : 704
},
{
"CityID" : 66,
"DisName" : "张家港市",
"DisSort" : null,
"Id" : 705
},
{
"CityID" : 67,
"DisName" : "崇川区",
"DisSort" : null,
"Id" : 706
},
{
"CityID" : 67,
"DisName" : "港闸区",
"DisSort" : null,
"Id" : 707
},
{
"CityID" : 67,
"DisName" : "海安县",
"DisSort" : null,
"Id" : 708
},
{
"CityID" : 67,
"DisName" : "如东县",
"DisSort" : null,
"Id" : 709
},
{
"CityID" : 67,
"DisName" : "启东市",
"DisSort" : null,
"Id" : 710
},
{
"CityID" : 67,
"DisName" : "如皋市",
"DisSort" : null,
"Id" : 711
},
{
"CityID" : 67,
"DisName" : "通州市",
"DisSort" : null,
"Id" : 712
},
{
"CityID" : 67,
"DisName" : "海门市",
"DisSort" : null,
"Id" : 713
},
{
"CityID" : 68,
"DisName" : "高邮市",
"DisSort" : null,
"Id" : 714
},
{
"CityID" : 68,
"DisName" : "广陵区",
"DisSort" : null,
"Id" : 715
},
{
"CityID" : 68,
"DisName" : "邗江区",
"DisSort" : null,
"Id" : 716
},
{
"CityID" : 68,
"DisName" : "维扬区",
"DisSort" : null,
"Id" : 717
},
{
"CityID" : 68,
"DisName" : "宝应县",
"DisSort" : null,
"Id" : 718
},
{
"CityID" : 68,
"DisName" : "江都市",
"DisSort" : null,
"Id" : 719
},
{
"CityID" : 68,
"DisName" : "仪征市",
"DisSort" : null,
"Id" : 720
},
{
"CityID" : 69,
"DisName" : "亭湖区",
"DisSort" : null,
"Id" : 721
},
{
"CityID" : 69,
"DisName" : "盐都区",
"DisSort" : null,
"Id" : 722
},
{
"CityID" : 69,
"DisName" : "响水县",
"DisSort" : null,
"Id" : 723
},
{
"CityID" : 69,
"DisName" : "滨海县",
"DisSort" : null,
"Id" : 724
},
{
"CityID" : 69,
"DisName" : "阜宁县",
"DisSort" : null,
"Id" : 725
},
{
"CityID" : 69,
"DisName" : "射阳县",
"DisSort" : null,
"Id" : 726
},
{
"CityID" : 69,
"DisName" : "建湖县",
"DisSort" : null,
"Id" : 727
},
{
"CityID" : 69,
"DisName" : "东台市",
"DisSort" : null,
"Id" : 728
},
{
"CityID" : 69,
"DisName" : "大丰市",
"DisSort" : null,
"Id" : 729
},
{
"CityID" : 70,
"DisName" : "鼓楼区",
"DisSort" : null,
"Id" : 730
},
{
"CityID" : 70,
"DisName" : "云龙区",
"DisSort" : null,
"Id" : 731
},
{
"CityID" : 70,
"DisName" : "九里区",
"DisSort" : null,
"Id" : 732
},
{
"CityID" : 70,
"DisName" : "贾汪区",
"DisSort" : null,
"Id" : 733
},
{
"CityID" : 70,
"DisName" : "泉山区",
"DisSort" : null,
"Id" : 734
},
{
"CityID" : 70,
"DisName" : "丰县",
"DisSort" : null,
"Id" : 735
},
{
"CityID" : 70,
"DisName" : "沛县",
"DisSort" : null,
"Id" : 736
},
{
"CityID" : 70,
"DisName" : "铜山县",
"DisSort" : null,
"Id" : 737
},
{
"CityID" : 70,
"DisName" : "睢宁县",
"DisSort" : null,
"Id" : 738
},
{
"CityID" : 70,
"DisName" : "新沂市",
"DisSort" : null,
"Id" : 739
},
{
"CityID" : 70,
"DisName" : "邳州市",
"DisSort" : null,
"Id" : 740
},
{
"CityID" : 71,
"DisName" : "清河区",
"DisSort" : null,
"Id" : 741
},
{
"CityID" : 71,
"DisName" : "楚州区",
"DisSort" : null,
"Id" : 742
},
{
"CityID" : 71,
"DisName" : "淮阴区",
"DisSort" : null,
"Id" : 743
},
{
"CityID" : 71,
"DisName" : "清浦区",
"DisSort" : null,
"Id" : 744
},
{
"CityID" : 71,
"DisName" : "涟水县",
"DisSort" : null,
"Id" : 745
},
{
"CityID" : 71,
"DisName" : "洪泽县",
"DisSort" : null,
"Id" : 746
},
{
"CityID" : 71,
"DisName" : "盱眙县",
"DisSort" : null,
"Id" : 747
},
{
"CityID" : 71,
"DisName" : "金湖县",
"DisSort" : null,
"Id" : 748
},
{
"CityID" : 72,
"DisName" : "连云区",
"DisSort" : null,
"Id" : 749
},
{
"CityID" : 72,
"DisName" : "新浦区",
"DisSort" : null,
"Id" : 750
},
{
"CityID" : 72,
"DisName" : "海州区",
"DisSort" : null,
"Id" : 751
},
{
"CityID" : 72,
"DisName" : "赣榆县",
"DisSort" : null,
"Id" : 752
},
{
"CityID" : 72,
"DisName" : "东海县",
"DisSort" : null,
"Id" : 753
},
{
"CityID" : 72,
"DisName" : "灌云县",
"DisSort" : null,
"Id" : 754
},
{
"CityID" : 72,
"DisName" : "灌南县",
"DisSort" : null,
"Id" : 755
},
{
"CityID" : 73,
"DisName" : "天宁区",
"DisSort" : null,
"Id" : 756
},
{
"CityID" : 73,
"DisName" : "钟楼区",
"DisSort" : null,
"Id" : 757
},
{
"CityID" : 73,
"DisName" : "戚墅堰区",
"DisSort" : null,
"Id" : 758
},
{
"CityID" : 73,
"DisName" : "新北区",
"DisSort" : null,
"Id" : 759
},
{
"CityID" : 73,
"DisName" : "武进区",
"DisSort" : null,
"Id" : 760
},
{
"CityID" : 73,
"DisName" : "溧阳市",
"DisSort" : null,
"Id" : 761
},
{
"CityID" : 73,
"DisName" : "金坛市",
"DisSort" : null,
"Id" : 762
},
{
"CityID" : 74,
"DisName" : "海陵区",
"DisSort" : null,
"Id" : 763
},
{
"CityID" : 74,
"DisName" : "高港区",
"DisSort" : null,
"Id" : 764
},
{
"CityID" : 74,
"DisName" : "兴化市",
"DisSort" : null,
"Id" : 765
},
{
"CityID" : 74,
"DisName" : "靖江市",
"DisSort" : null,
"Id" : 766
},
{
"CityID" : 74,
"DisName" : "泰兴市",
"DisSort" : null,
"Id" : 767
},
{
"CityID" : 74,
"DisName" : "姜堰市",
"DisSort" : null,
"Id" : 768
},
{
"CityID" : 75,
"DisName" : "宿城区",
"DisSort" : null,
"Id" : 769
},
{
"CityID" : 75,
"DisName" : "宿豫区",
"DisSort" : null,
"Id" : 770
},
{
"CityID" : 75,
"DisName" : "沭阳县",
"DisSort" : null,
"Id" : 771
},
{
"CityID" : 75,
"DisName" : "泗阳县",
"DisSort" : null,
"Id" : 772
},
{
"CityID" : 75,
"DisName" : "泗洪县",
"DisSort" : null,
"Id" : 773
},
{
"CityID" : 76,
"DisName" : "定海区",
"DisSort" : null,
"Id" : 774
},
{
"CityID" : 76,
"DisName" : "普陀区",
"DisSort" : null,
"Id" : 775
},
{
"CityID" : 76,
"DisName" : "岱山县",
"DisSort" : null,
"Id" : 776
},
{
"CityID" : 76,
"DisName" : "嵊泗县",
"DisSort" : null,
"Id" : 777
},
{
"CityID" : 77,
"DisName" : "柯城区",
"DisSort" : null,
"Id" : 778
},
{
"CityID" : 77,
"DisName" : "衢江区",
"DisSort" : null,
"Id" : 779
},
{
"CityID" : 77,
"DisName" : "常山县",
"DisSort" : null,
"Id" : 780
},
{
"CityID" : 77,
"DisName" : "开化县",
"DisSort" : null,
"Id" : 781
},
{
"CityID" : 77,
"DisName" : "龙游县",
"DisSort" : null,
"Id" : 782
},
{
"CityID" : 77,
"DisName" : "江山市",
"DisSort" : null,
"Id" : 783
},
{
"CityID" : 78,
"DisName" : "上城区",
"DisSort" : null,
"Id" : 784
},
{
"CityID" : 78,
"DisName" : "下城区",
"DisSort" : null,
"Id" : 785
},
{
"CityID" : 78,
"DisName" : "江干区",
"DisSort" : null,
"Id" : 786
},
{
"CityID" : 78,
"DisName" : "拱墅区",
"DisSort" : null,
"Id" : 787
},
{
"CityID" : 78,
"DisName" : "西湖区",
"DisSort" : null,
"Id" : 788
},
{
"CityID" : 78,
"DisName" : "滨江区",
"DisSort" : null,
"Id" : 789
},
{
"CityID" : 78,
"DisName" : "余杭区",
"DisSort" : null,
"Id" : 790
},
{
"CityID" : 78,
"DisName" : "桐庐县",
"DisSort" : null,
"Id" : 791
},
{
"CityID" : 78,
"DisName" : "淳安县",
"DisSort" : null,
"Id" : 792
},
{
"CityID" : 78,
"DisName" : "建德市",
"DisSort" : null,
"Id" : 793
},
{
"CityID" : 78,
"DisName" : "富阳市",
"DisSort" : null,
"Id" : 794
},
{
"CityID" : 78,
"DisName" : "临安市",
"DisSort" : null,
"Id" : 795
},
{
"CityID" : 78,
"DisName" : "萧山区",
"DisSort" : null,
"Id" : 796
},
{
"CityID" : 79,
"DisName" : "吴兴区",
"DisSort" : null,
"Id" : 797
},
{
"CityID" : 79,
"DisName" : "南浔区",
"DisSort" : null,
"Id" : 798
},
{
"CityID" : 79,
"DisName" : "德清县",
"DisSort" : null,
"Id" : 799
},
{
"CityID" : 79,
"DisName" : "长兴县",
"DisSort" : null,
"Id" : 800
},
{
"CityID" : 79,
"DisName" : "安吉县",
"DisSort" : null,
"Id" : 801
},
{
"CityID" : 80,
"DisName" : " 南湖区",
"DisSort" : null,
"Id" : 802
},
{
"CityID" : 80,
"DisName" : " 秀洲区",
"DisSort" : null,
"Id" : 803
},
{
"CityID" : 80,
"DisName" : " 嘉善县",
"DisSort" : null,
"Id" : 804
},
{
"CityID" : 80,
"DisName" : " 海盐县",
"DisSort" : null,
"Id" : 805
},
{
"CityID" : 80,
"DisName" : " 海宁市",
"DisSort" : null,
"Id" : 806
},
{
"CityID" : 80,
"DisName" : " 平湖市",
"DisSort" : null,
"Id" : 807
},
{
"CityID" : 80,
"DisName" : " 桐乡市 ",
"DisSort" : null,
"Id" : 808
},
{
"CityID" : 81,
"DisName" : "海曙区",
"DisSort" : null,
"Id" : 809
},
{
"CityID" : 81,
"DisName" : "江东区",
"DisSort" : null,
"Id" : 810
},
{
"CityID" : 81,
"DisName" : "江北区",
"DisSort" : null,
"Id" : 811
},
{
"CityID" : 81,
"DisName" : "北仑区",
"DisSort" : null,
"Id" : 812
},
{
"CityID" : 81,
"DisName" : "镇海区",
"DisSort" : null,
"Id" : 813
},
{
"CityID" : 81,
"DisName" : "鄞州区",
"DisSort" : null,
"Id" : 814
},
{
"CityID" : 81,
"DisName" : "象山县",
"DisSort" : null,
"Id" : 815
},
{
"CityID" : 81,
"DisName" : "宁海县",
"DisSort" : null,
"Id" : 816
},
{
"CityID" : 81,
"DisName" : "余姚市",
"DisSort" : null,
"Id" : 817
},
{
"CityID" : 81,
"DisName" : "慈溪市",
"DisSort" : null,
"Id" : 818
},
{
"CityID" : 81,
"DisName" : "奉化市",
"DisSort" : null,
"Id" : 819
},
{
"CityID" : 82,
"DisName" : "越城区",
"DisSort" : null,
"Id" : 820
},
{
"CityID" : 82,
"DisName" : "绍兴县",
"DisSort" : null,
"Id" : 821
},
{
"CityID" : 82,
"DisName" : "新昌县",
"DisSort" : null,
"Id" : 822
},
{
"CityID" : 82,
"DisName" : "诸暨市",
"DisSort" : null,
"Id" : 823
},
{
"CityID" : 82,
"DisName" : "上虞市",
"DisSort" : null,
"Id" : 824
},
{
"CityID" : 82,
"DisName" : "嵊州市",
"DisSort" : null,
"Id" : 825
},
{
"CityID" : 83,
"DisName" : "鹿城区",
"DisSort" : null,
"Id" : 826
},
{
"CityID" : 83,
"DisName" : "龙湾区",
"DisSort" : null,
"Id" : 827
},
{
"CityID" : 83,
"DisName" : "瓯海区",
"DisSort" : null,
"Id" : 828
},
{
"CityID" : 83,
"DisName" : "洞头县",
"DisSort" : null,
"Id" : 829
},
{
"CityID" : 83,
"DisName" : "永嘉县",
"DisSort" : null,
"Id" : 830
},
{
"CityID" : 83,
"DisName" : "平阳县",
"DisSort" : null,
"Id" : 831
},
{
"CityID" : 83,
"DisName" : "苍南县",
"DisSort" : null,
"Id" : 832
},
{
"CityID" : 83,
"DisName" : "文成县",
"DisSort" : null,
"Id" : 833
},
{
"CityID" : 83,
"DisName" : "泰顺县",
"DisSort" : null,
"Id" : 834
},
{
"CityID" : 83,
"DisName" : "瑞安市",
"DisSort" : null,
"Id" : 835
},
{
"CityID" : 83,
"DisName" : "乐清市",
"DisSort" : null,
"Id" : 836
},
{
"CityID" : 84,
"DisName" : "莲都区",
"DisSort" : null,
"Id" : 837
},
{
"CityID" : 84,
"DisName" : "青田县",
"DisSort" : null,
"Id" : 838
},
{
"CityID" : 84,
"DisName" : "缙云县",
"DisSort" : null,
"Id" : 839
},
{
"CityID" : 84,
"DisName" : "遂昌县",
"DisSort" : null,
"Id" : 840
},
{
"CityID" : 84,
"DisName" : "松阳县",
"DisSort" : null,
"Id" : 841
},
{
"CityID" : 84,
"DisName" : "云和县",
"DisSort" : null,
"Id" : 842
},
{
"CityID" : 84,
"DisName" : "庆元县",
"DisSort" : null,
"Id" : 843
},
{
"CityID" : 84,
"DisName" : "景宁畲族自治县",
"DisSort" : null,
"Id" : 844
},
{
"CityID" : 84,
"DisName" : "龙泉市",
"DisSort" : null,
"Id" : 845
},
{
"CityID" : 85,
"DisName" : "婺城区",
"DisSort" : null,
"Id" : 846
},
{
"CityID" : 85,
"DisName" : "金东区",
"DisSort" : null,
"Id" : 847
},
{
"CityID" : 85,
"DisName" : "武义县",
"DisSort" : null,
"Id" : 848
},
{
"CityID" : 85,
"DisName" : "浦江县",
"DisSort" : null,
"Id" : 849
},
{
"CityID" : 85,
"DisName" : "磐安县",
"DisSort" : null,
"Id" : 850
},
{
"CityID" : 85,
"DisName" : "兰溪市",
"DisSort" : null,
"Id" : 851
},
{
"CityID" : 85,
"DisName" : "义乌市",
"DisSort" : null,
"Id" : 852
},
{
"CityID" : 85,
"DisName" : "东阳市",
"DisSort" : null,
"Id" : 853
},
{
"CityID" : 85,
"DisName" : "永康市",
"DisSort" : null,
"Id" : 854
},
{
"CityID" : 86,
"DisName" : "椒江区",
"DisSort" : null,
"Id" : 855
},
{
"CityID" : 86,
"DisName" : "黄岩区",
"DisSort" : null,
"Id" : 856
},
{
"CityID" : 86,
"DisName" : "路桥区",
"DisSort" : null,
"Id" : 857
},
{
"CityID" : 86,
"DisName" : "玉环县",
"DisSort" : null,
"Id" : 858
},
{
"CityID" : 86,
"DisName" : "三门县",
"DisSort" : null,
"Id" : 859
},
{
"CityID" : 86,
"DisName" : "天台县",
"DisSort" : null,
"Id" : 860
},
{
"CityID" : 86,
"DisName" : "仙居县",
"DisSort" : null,
"Id" : 861
},
{
"CityID" : 86,
"DisName" : "温岭市",
"DisSort" : null,
"Id" : 862
},
{
"CityID" : 86,
"DisName" : "临海市",
"DisSort" : null,
"Id" : 863
},
{
"CityID" : 87,
"DisName" : "瑶海区",
"DisSort" : null,
"Id" : 864
},
{
"CityID" : 87,
"DisName" : "庐阳区",
"DisSort" : null,
"Id" : 865
},
{
"CityID" : 87,
"DisName" : "蜀山区",
"DisSort" : null,
"Id" : 866
},
{
"CityID" : 87,
"DisName" : "包河区",
"DisSort" : null,
"Id" : 867
},
{
"CityID" : 87,
"DisName" : "长丰县",
"DisSort" : null,
"Id" : 868
},
{
"CityID" : 87,
"DisName" : "肥东县",
"DisSort" : null,
"Id" : 869
},
{
"CityID" : 87,
"DisName" : "肥西县",
"DisSort" : null,
"Id" : 870
},
{
"CityID" : 88,
"DisName" : "镜湖区",
"DisSort" : null,
"Id" : 871
},
{
"CityID" : 88,
"DisName" : "弋江区",
"DisSort" : null,
"Id" : 872
},
{
"CityID" : 88,
"DisName" : "鸠江区",
"DisSort" : null,
"Id" : 873
},
{
"CityID" : 88,
"DisName" : "三山区",
"DisSort" : null,
"Id" : 874
},
{
"CityID" : 88,
"DisName" : "芜湖县",
"DisSort" : null,
"Id" : 875
},
{
"CityID" : 88,
"DisName" : "繁昌县",
"DisSort" : null,
"Id" : 876
},
{
"CityID" : 88,
"DisName" : "南陵县",
"DisSort" : null,
"Id" : 877
},
{
"CityID" : 89,
"DisName" : "龙子湖区",
"DisSort" : null,
"Id" : 878
},
{
"CityID" : 89,
"DisName" : "蚌山区",
"DisSort" : null,
"Id" : 879
},
{
"CityID" : 89,
"DisName" : "禹会区",
"DisSort" : null,
"Id" : 880
},
{
"CityID" : 89,
"DisName" : "淮上区",
"DisSort" : null,
"Id" : 881
},
{
"CityID" : 89,
"DisName" : "怀远县",
"DisSort" : null,
"Id" : 882
},
{
"CityID" : 89,
"DisName" : "五河县",
"DisSort" : null,
"Id" : 883
},
{
"CityID" : 89,
"DisName" : "固镇县",
"DisSort" : null,
"Id" : 884
},
{
"CityID" : 90,
"DisName" : "大通区",
"DisSort" : null,
"Id" : 885
},
{
"CityID" : 90,
"DisName" : "田家庵区",
"DisSort" : null,
"Id" : 886
},
{
"CityID" : 90,
"DisName" : "谢家集区",
"DisSort" : null,
"Id" : 887
},
{
"CityID" : 90,
"DisName" : "八公山区",
"DisSort" : null,
"Id" : 888
},
{
"CityID" : 90,
"DisName" : "潘集区",
"DisSort" : null,
"Id" : 889
},
{
"CityID" : 90,
"DisName" : "凤台县",
"DisSort" : null,
"Id" : 890
},
{
"CityID" : 91,
"DisName" : "金家庄区",
"DisSort" : null,
"Id" : 891
},
{
"CityID" : 91,
"DisName" : "花山区",
"DisSort" : null,
"Id" : 892
},
{
"CityID" : 91,
"DisName" : "雨山区",
"DisSort" : null,
"Id" : 893
},
{
"CityID" : 91,
"DisName" : "当涂县",
"DisSort" : null,
"Id" : 894
},
{
"CityID" : 92,
"DisName" : "杜集区",
"DisSort" : null,
"Id" : 895
},
{
"CityID" : 92,
"DisName" : "相山区",
"DisSort" : null,
"Id" : 896
},
{
"CityID" : 92,
"DisName" : "烈山区",
"DisSort" : null,
"Id" : 897
},
{
"CityID" : 92,
"DisName" : "濉溪县 ",
"DisSort" : null,
"Id" : 898
},
{
"CityID" : 93,
"DisName" : "铜官山区",
"DisSort" : null,
"Id" : 899
},
{
"CityID" : 93,
"DisName" : "狮子山区",
"DisSort" : null,
"Id" : 900
},
{
"CityID" : 93,
"DisName" : "铜陵县",
"DisSort" : null,
"Id" : 901
},
{
"CityID" : 94,
"DisName" : "迎江区",
"DisSort" : null,
"Id" : 902
},
{
"CityID" : 94,
"DisName" : "大观区",
"DisSort" : null,
"Id" : 903
},
{
"CityID" : 94,
"DisName" : "宜秀区",
"DisSort" : null,
"Id" : 904
},
{
"CityID" : 94,
"DisName" : "怀宁县",
"DisSort" : null,
"Id" : 905
},
{
"CityID" : 94,
"DisName" : "枞阳县",
"DisSort" : null,
"Id" : 906
},
{
"CityID" : 94,
"DisName" : "潜山县",
"DisSort" : null,
"Id" : 907
},
{
"CityID" : 94,
"DisName" : "太湖县",
"DisSort" : null,
"Id" : 908
},
{
"CityID" : 94,
"DisName" : "宿松县",
"DisSort" : null,
"Id" : 909
},
{
"CityID" : 94,
"DisName" : "望江县",
"DisSort" : null,
"Id" : 910
},
{
"CityID" : 94,
"DisName" : "岳西县",
"DisSort" : null,
"Id" : 911
},
{
"CityID" : 94,
"DisName" : "桐城市",
"DisSort" : null,
"Id" : 912
},
{
"CityID" : 95,
"DisName" : "屯溪区",
"DisSort" : null,
"Id" : 913
},
{
"CityID" : 95,
"DisName" : "黄山区",
"DisSort" : null,
"Id" : 914
},
{
"CityID" : 95,
"DisName" : "徽州区",
"DisSort" : null,
"Id" : 915
},
{
"CityID" : 95,
"DisName" : "歙县",
"DisSort" : null,
"Id" : 916
},
{
"CityID" : 95,
"DisName" : "休宁县",
"DisSort" : null,
"Id" : 917
},
{
"CityID" : 95,
"DisName" : "黟县",
"DisSort" : null,
"Id" : 918
},
{
"CityID" : 95,
"DisName" : "祁门县",
"DisSort" : null,
"Id" : 919
},
{
"CityID" : 96,
"DisName" : "琅琊区",
"DisSort" : null,
"Id" : 920
},
{
"CityID" : 96,
"DisName" : "南谯区",
"DisSort" : null,
"Id" : 921
},
{
"CityID" : 96,
"DisName" : "来安县",
"DisSort" : null,
"Id" : 922
},
{
"CityID" : 96,
"DisName" : "全椒县",
"DisSort" : null,
"Id" : 923
},
{
"CityID" : 96,
"DisName" : "定远县",
"DisSort" : null,
"Id" : 924
},
{
"CityID" : 96,
"DisName" : "凤阳县",
"DisSort" : null,
"Id" : 925
},
{
"CityID" : 96,
"DisName" : "天长市",
"DisSort" : null,
"Id" : 926
},
{
"CityID" : 96,
"DisName" : "明光市",
"DisSort" : null,
"Id" : 927
},
{
"CityID" : 97,
"DisName" : "颍州区",
"DisSort" : null,
"Id" : 928
},
{
"CityID" : 97,
"DisName" : "颍东区",
"DisSort" : null,
"Id" : 929
},
{
"CityID" : 97,
"DisName" : "颍泉区",
"DisSort" : null,
"Id" : 930
},
{
"CityID" : 97,
"DisName" : "临泉县",
"DisSort" : null,
"Id" : 931
},
{
"CityID" : 97,
"DisName" : "太和县",
"DisSort" : null,
"Id" : 932
},
{
"CityID" : 97,
"DisName" : "阜南县",
"DisSort" : null,
"Id" : 933
},
{
"CityID" : 97,
"DisName" : "颍上县",
"DisSort" : null,
"Id" : 934
},
{
"CityID" : 97,
"DisName" : "界首市",
"DisSort" : null,
"Id" : 935
},
{
"CityID" : 98,
"DisName" : "埇桥区",
"DisSort" : null,
"Id" : 936
},
{
"CityID" : 98,
"DisName" : "砀山县",
"DisSort" : null,
"Id" : 937
},
{
"CityID" : 98,
"DisName" : "萧县",
"DisSort" : null,
"Id" : 938
},
{
"CityID" : 98,
"DisName" : "灵璧县",
"DisSort" : null,
"Id" : 939
},
{
"CityID" : 98,
"DisName" : "泗县 ",
"DisSort" : null,
"Id" : 940
},
{
"CityID" : 99,
"DisName" : "居巢区",
"DisSort" : null,
"Id" : 941
},
{
"CityID" : 99,
"DisName" : "庐江县",
"DisSort" : null,
"Id" : 942
},
{
"CityID" : 99,
"DisName" : "无为县",
"DisSort" : null,
"Id" : 943
},
{
"CityID" : 99,
"DisName" : "含山县",
"DisSort" : null,
"Id" : 944
},
{
"CityID" : 99,
"DisName" : "和县 ",
"DisSort" : null,
"Id" : 945
},
{
"CityID" : 100,
"DisName" : "金安区",
"DisSort" : null,
"Id" : 946
},
{
"CityID" : 100,
"DisName" : "裕安区",
"DisSort" : null,
"Id" : 947
},
{
"CityID" : 100,
"DisName" : "寿县",
"DisSort" : null,
"Id" : 948
},
{
"CityID" : 100,
"DisName" : "霍邱县",
"DisSort" : null,
"Id" : 949
},
{
"CityID" : 100,
"DisName" : "舒城县",
"DisSort" : null,
"Id" : 950
},
{
"CityID" : 100,
"DisName" : "金寨县",
"DisSort" : null,
"Id" : 951
},
{
"CityID" : 100,
"DisName" : "霍山县",
"DisSort" : null,
"Id" : 952
},
{
"CityID" : 101,
"DisName" : "谯城区",
"DisSort" : null,
"Id" : 953
},
{
"CityID" : 101,
"DisName" : "涡阳县",
"DisSort" : null,
"Id" : 954
},
{
"CityID" : 101,
"DisName" : "蒙城县",
"DisSort" : null,
"Id" : 955
},
{
"CityID" : 101,
"DisName" : "利辛县",
"DisSort" : null,
"Id" : 956
},
{
"CityID" : 102,
"DisName" : "贵池区",
"DisSort" : null,
"Id" : 957
},
{
"CityID" : 102,
"DisName" : "东至县",
"DisSort" : null,
"Id" : 958
},
{
"CityID" : 102,
"DisName" : "石台县",
"DisSort" : null,
"Id" : 959
},
{
"CityID" : 102,
"DisName" : "青阳县",
"DisSort" : null,
"Id" : 960
},
{
"CityID" : 103,
"DisName" : "宣州区",
"DisSort" : null,
"Id" : 961
},
{
"CityID" : 103,
"DisName" : "郎溪县",
"DisSort" : null,
"Id" : 962
},
{
"CityID" : 103,
"DisName" : "广德县",
"DisSort" : null,
"Id" : 963
},
{
"CityID" : 103,
"DisName" : "泾县",
"DisSort" : null,
"Id" : 964
},
{
"CityID" : 103,
"DisName" : "绩溪县",
"DisSort" : null,
"Id" : 965
},
{
"CityID" : 103,
"DisName" : "旌德县",
"DisSort" : null,
"Id" : 966
},
{
"CityID" : 103,
"DisName" : "宁国市",
"DisSort" : null,
"Id" : 967
},
{
"CityID" : 104,
"DisName" : "鼓楼区",
"DisSort" : null,
"Id" : 968
},
{
"CityID" : 104,
"DisName" : "台江区",
"DisSort" : null,
"Id" : 969
},
{
"CityID" : 104,
"DisName" : "仓山区",
"DisSort" : null,
"Id" : 970
},
{
"CityID" : 104,
"DisName" : "马尾区",
"DisSort" : null,
"Id" : 971
},
{
"CityID" : 104,
"DisName" : "晋安区",
"DisSort" : null,
"Id" : 972
},
{
"CityID" : 104,
"DisName" : "闽侯县",
"DisSort" : null,
"Id" : 973
},
{
"CityID" : 104,
"DisName" : "连江县",
"DisSort" : null,
"Id" : 974
},
{
"CityID" : 104,
"DisName" : "罗源县",
"DisSort" : null,
"Id" : 975
},
{
"CityID" : 104,
"DisName" : "闽清县",
"DisSort" : null,
"Id" : 976
},
{
"CityID" : 104,
"DisName" : "永泰县",
"DisSort" : null,
"Id" : 977
},
{
"CityID" : 104,
"DisName" : "平潭县",
"DisSort" : null,
"Id" : 978
},
{
"CityID" : 104,
"DisName" : "福清市",
"DisSort" : null,
"Id" : 979
},
{
"CityID" : 104,
"DisName" : "长乐市",
"DisSort" : null,
"Id" : 980
},
{
"CityID" : 105,
"DisName" : "思明区",
"DisSort" : null,
"Id" : 981
},
{
"CityID" : 105,
"DisName" : "海沧区",
"DisSort" : null,
"Id" : 982
},
{
"CityID" : 105,
"DisName" : "湖里区",
"DisSort" : null,
"Id" : 983
},
{
"CityID" : 105,
"DisName" : "集美区",
"DisSort" : null,
"Id" : 984
},
{
"CityID" : 105,
"DisName" : "同安区",
"DisSort" : null,
"Id" : 985
},
{
"CityID" : 105,
"DisName" : "翔安区",
"DisSort" : null,
"Id" : 986
},
{
"CityID" : 106,
"DisName" : "蕉城区",
"DisSort" : null,
"Id" : 987
},
{
"CityID" : 106,
"DisName" : "霞浦县",
"DisSort" : null,
"Id" : 988
},
{
"CityID" : 106,
"DisName" : "古田县",
"DisSort" : null,
"Id" : 989
},
{
"CityID" : 106,
"DisName" : "屏南县",
"DisSort" : null,
"Id" : 990
},
{
"CityID" : 106,
"DisName" : "寿宁县",
"DisSort" : null,
"Id" : 991
},
{
"CityID" : 106,
"DisName" : "周宁县",
"DisSort" : null,
"Id" : 992
},
{
"CityID" : 106,
"DisName" : "柘荣县",
"DisSort" : null,
"Id" : 993
},
{
"CityID" : 106,
"DisName" : "福安市",
"DisSort" : null,
"Id" : 994
},
{
"CityID" : 106,
"DisName" : "福鼎市",
"DisSort" : null,
"Id" : 995
},
{
"CityID" : 107,
"DisName" : "城厢区",
"DisSort" : null,
"Id" : 996
},
{
"CityID" : 107,
"DisName" : "涵江区",
"DisSort" : null,
"Id" : 997
},
{
"CityID" : 107,
"DisName" : "荔城区",
"DisSort" : null,
"Id" : 998
},
{
"CityID" : 107,
"DisName" : "秀屿区",
"DisSort" : null,
"Id" : 999
},
{
"CityID" : 107,
"DisName" : "仙游县",
"DisSort" : null,
"Id" : 1000
},
{
"CityID" : 108,
"DisName" : "鲤城区",
"DisSort" : null,
"Id" : 1001
},
{
"CityID" : 108,
"DisName" : "丰泽区",
"DisSort" : null,
"Id" : 1002
},
{
"CityID" : 108,
"DisName" : "洛江区",
"DisSort" : null,
"Id" : 1003
},
{
"CityID" : 108,
"DisName" : "泉港区",
"DisSort" : null,
"Id" : 1004
},
{
"CityID" : 108,
"DisName" : "惠安县",
"DisSort" : null,
"Id" : 1005
},
{
"CityID" : 108,
"DisName" : "安溪县",
"DisSort" : null,
"Id" : 1006
},
{
"CityID" : 108,
"DisName" : "永春县",
"DisSort" : null,
"Id" : 1007
},
{
"CityID" : 108,
"DisName" : "德化县",
"DisSort" : null,
"Id" : 1008
},
{
"CityID" : 108,
"DisName" : "石狮市",
"DisSort" : null,
"Id" : 1009
},
{
"CityID" : 108,
"DisName" : "晋江市",
"DisSort" : null,
"Id" : 1010
},
{
"CityID" : 108,
"DisName" : "南安市",
"DisSort" : null,
"Id" : 1011
},
{
"CityID" : 109,
"DisName" : "芗城区",
"DisSort" : null,
"Id" : 1012
},
{
"CityID" : 109,
"DisName" : "龙文区",
"DisSort" : null,
"Id" : 1013
},
{
"CityID" : 109,
"DisName" : "云霄县",
"DisSort" : null,
"Id" : 1014
},
{
"CityID" : 109,
"DisName" : "漳浦县",
"DisSort" : null,
"Id" : 1015
},
{
"CityID" : 109,
"DisName" : "诏安县",
"DisSort" : null,
"Id" : 1016
},
{
"CityID" : 109,
"DisName" : "长泰县",
"DisSort" : null,
"Id" : 1017
},
{
"CityID" : 109,
"DisName" : "东山县",
"DisSort" : null,
"Id" : 1018
},
{
"CityID" : 109,
"DisName" : "南靖县",
"DisSort" : null,
"Id" : 1019
},
{
"CityID" : 109,
"DisName" : "平和县",
"DisSort" : null,
"Id" : 1020
},
{
"CityID" : 109,
"DisName" : "华安县",
"DisSort" : null,
"Id" : 1021
},
{
"CityID" : 109,
"DisName" : "龙海市",
"DisSort" : null,
"Id" : 1022
},
{
"CityID" : 110,
"DisName" : "新罗区",
"DisSort" : null,
"Id" : 1023
},
{
"CityID" : 110,
"DisName" : "长汀县",
"DisSort" : null,
"Id" : 1024
},
{
"CityID" : 110,
"DisName" : "永定县",
"DisSort" : null,
"Id" : 1025
},
{
"CityID" : 110,
"DisName" : "上杭县",
"DisSort" : null,
"Id" : 1026
},
{
"CityID" : 110,
"DisName" : "武平县",
"DisSort" : null,
"Id" : 1027
},
{
"CityID" : 110,
"DisName" : "连城县",
"DisSort" : null,
"Id" : 1028
},
{
"CityID" : 110,
"DisName" : "漳平市",
"DisSort" : null,
"Id" : 1029
},
{
"CityID" : 111,
"DisName" : "梅列区",
"DisSort" : null,
"Id" : 1030
},
{
"CityID" : 111,
"DisName" : "三元区",
"DisSort" : null,
"Id" : 1031
},
{
"CityID" : 111,
"DisName" : "明溪县",
"DisSort" : null,
"Id" : 1032
},
{
"CityID" : 111,
"DisName" : "清流县",
"DisSort" : null,
"Id" : 1033
},
{
"CityID" : 111,
"DisName" : "宁化县",
"DisSort" : null,
"Id" : 1034
},
{
"CityID" : 111,
"DisName" : "大田县",
"DisSort" : null,
"Id" : 1035
},
{
"CityID" : 111,
"DisName" : "尤溪县",
"DisSort" : null,
"Id" : 1036
},
{
"CityID" : 111,
"DisName" : "沙县",
"DisSort" : null,
"Id" : 1037
},
{
"CityID" : 111,
"DisName" : "将乐县",
"DisSort" : null,
"Id" : 1038
},
{
"CityID" : 111,
"DisName" : "泰宁县",
"DisSort" : null,
"Id" : 1039
},
{
"CityID" : 111,
"DisName" : "建宁县",
"DisSort" : null,
"Id" : 1040
},
{
"CityID" : 111,
"DisName" : "永安市",
"DisSort" : null,
"Id" : 1041
},
{
"CityID" : 112,
"DisName" : "延平区",
"DisSort" : null,
"Id" : 1042
},
{
"CityID" : 112,
"DisName" : "顺昌县",
"DisSort" : null,
"Id" : 1043
},
{
"CityID" : 112,
"DisName" : "浦城县",
"DisSort" : null,
"Id" : 1044
},
{
"CityID" : 112,
"DisName" : "光泽县",
"DisSort" : null,
"Id" : 1045
},
{
"CityID" : 112,
"DisName" : "松溪县",
"DisSort" : null,
"Id" : 1046
},
{
"CityID" : 112,
"DisName" : "政和县",
"DisSort" : null,
"Id" : 1047
},
{
"CityID" : 112,
"DisName" : "邵武市",
"DisSort" : null,
"Id" : 1048
},
{
"CityID" : 112,
"DisName" : "武夷山市",
"DisSort" : null,
"Id" : 1049
},
{
"CityID" : 112,
"DisName" : "建瓯市",
"DisSort" : null,
"Id" : 1050
},
{
"CityID" : 112,
"DisName" : "建阳市",
"DisSort" : null,
"Id" : 1051
},
{
"CityID" : 113,
"DisName" : "月湖区",
"DisSort" : null,
"Id" : 1052
},
{
"CityID" : 113,
"DisName" : "余江县",
"DisSort" : null,
"Id" : 1053
},
{
"CityID" : 113,
"DisName" : "贵溪市",
"DisSort" : null,
"Id" : 1054
},
{
"CityID" : 114,
"DisName" : "渝水区",
"DisSort" : null,
"Id" : 1055
},
{
"CityID" : 114,
"DisName" : "分宜县",
"DisSort" : null,
"Id" : 1056
},
{
"CityID" : 115,
"DisName" : "东湖区",
"DisSort" : null,
"Id" : 1057
},
{
"CityID" : 115,
"DisName" : "西湖区",
"DisSort" : null,
"Id" : 1058
},
{
"CityID" : 115,
"DisName" : "青云谱区",
"DisSort" : null,
"Id" : 1059
},
{
"CityID" : 115,
"DisName" : "湾里区",
"DisSort" : null,
"Id" : 1060
},
{
"CityID" : 115,
"DisName" : "青山湖区",
"DisSort" : null,
"Id" : 1061
},
{
"CityID" : 115,
"DisName" : "南昌县",
"DisSort" : null,
"Id" : 1062
},
{
"CityID" : 115,
"DisName" : "新建县",
"DisSort" : null,
"Id" : 1063
},
{
"CityID" : 115,
"DisName" : "安义县",
"DisSort" : null,
"Id" : 1064
},
{
"CityID" : 115,
"DisName" : "进贤县",
"DisSort" : null,
"Id" : 1065
},
{
"CityID" : 116,
"DisName" : "庐山区",
"DisSort" : null,
"Id" : 1066
},
{
"CityID" : 116,
"DisName" : "浔阳区",
"DisSort" : null,
"Id" : 1067
},
{
"CityID" : 116,
"DisName" : "九江县",
"DisSort" : null,
"Id" : 1068
},
{
"CityID" : 116,
"DisName" : "武宁县",
"DisSort" : null,
"Id" : 1069
},
{
"CityID" : 116,
"DisName" : "修水县",
"DisSort" : null,
"Id" : 1070
},
{
"CityID" : 116,
"DisName" : "永修县",
"DisSort" : null,
"Id" : 1071
},
{
"CityID" : 116,
"DisName" : "德安县",
"DisSort" : null,
"Id" : 1072
},
{
"CityID" : 116,
"DisName" : "星子县",
"DisSort" : null,
"Id" : 1073
},
{
"CityID" : 116,
"DisName" : "都昌县",
"DisSort" : null,
"Id" : 1074
},
{
"CityID" : 116,
"DisName" : "湖口县",
"DisSort" : null,
"Id" : 1075
},
{
"CityID" : 116,
"DisName" : "彭泽县",
"DisSort" : null,
"Id" : 1076
},
{
"CityID" : 116,
"DisName" : "瑞昌市",
"DisSort" : null,
"Id" : 1077
},
{
"CityID" : 117,
"DisName" : "信州区",
"DisSort" : null,
"Id" : 1078
},
{
"CityID" : 117,
"DisName" : "上饶县",
"DisSort" : null,
"Id" : 1079
},
{
"CityID" : 117,
"DisName" : "广丰县",
"DisSort" : null,
"Id" : 1080
},
{
"CityID" : 117,
"DisName" : "玉山县",
"DisSort" : null,
"Id" : 1081
},
{
"CityID" : 117,
"DisName" : "铅山县",
"DisSort" : null,
"Id" : 1082
},
{
"CityID" : 117,
"DisName" : "横峰县",
"DisSort" : null,
"Id" : 1083
},
{
"CityID" : 117,
"DisName" : "弋阳县",
"DisSort" : null,
"Id" : 1084
},
{
"CityID" : 117,
"DisName" : "余干县",
"DisSort" : null,
"Id" : 1085
},
{
"CityID" : 117,
"DisName" : "鄱阳县",
"DisSort" : null,
"Id" : 1086
},
{
"CityID" : 117,
"DisName" : "万年县",
"DisSort" : null,
"Id" : 1087
},
{
"CityID" : 117,
"DisName" : "婺源县",
"DisSort" : null,
"Id" : 1088
},
{
"CityID" : 117,
"DisName" : "德兴市",
"DisSort" : null,
"Id" : 1089
},
{
"CityID" : 118,
"DisName" : "临川区",
"DisSort" : null,
"Id" : 1090
},
{
"CityID" : 118,
"DisName" : "南城县",
"DisSort" : null,
"Id" : 1091
},
{
"CityID" : 118,
"DisName" : "黎川县",
"DisSort" : null,
"Id" : 1092
},
{
"CityID" : 118,
"DisName" : "南丰县",
"DisSort" : null,
"Id" : 1093
},
{
"CityID" : 118,
"DisName" : "崇仁县",
"DisSort" : null,
"Id" : 1094
},
{
"CityID" : 118,
"DisName" : "乐安县",
"DisSort" : null,
"Id" : 1095
},
{
"CityID" : 118,
"DisName" : "宜黄县",
"DisSort" : null,
"Id" : 1096
},
{
"CityID" : 118,
"DisName" : "金溪县",
"DisSort" : null,
"Id" : 1097
},
{
"CityID" : 118,
"DisName" : "资溪县",
"DisSort" : null,
"Id" : 1098
},
{
"CityID" : 118,
"DisName" : "东乡县",
"DisSort" : null,
"Id" : 1099
},
{
"CityID" : 118,
"DisName" : "广昌县",
"DisSort" : null,
"Id" : 1100
},
{
"CityID" : 119,
"DisName" : "袁州区",
"DisSort" : null,
"Id" : 1101
},
{
"CityID" : 119,
"DisName" : "奉新县",
"DisSort" : null,
"Id" : 1102
},
{
"CityID" : 119,
"DisName" : "万载县",
"DisSort" : null,
"Id" : 1103
},
{
"CityID" : 119,
"DisName" : "上高县",
"DisSort" : null,
"Id" : 1104
},
{
"CityID" : 119,
"DisName" : "宜丰县",
"DisSort" : null,
"Id" : 1105
},
{
"CityID" : 119,
"DisName" : "靖安县",
"DisSort" : null,
"Id" : 1106
},
{
"CityID" : 119,
"DisName" : "铜鼓县",
"DisSort" : null,
"Id" : 1107
},
{
"CityID" : 119,
"DisName" : "丰城市",
"DisSort" : null,
"Id" : 1108
},
{
"CityID" : 119,
"DisName" : "樟树市",
"DisSort" : null,
"Id" : 1109
},
{
"CityID" : 119,
"DisName" : "高安市",
"DisSort" : null,
"Id" : 1110
},
{
"CityID" : 120,
"DisName" : "吉州区",
"DisSort" : null,
"Id" : 1111
},
{
"CityID" : 120,
"DisName" : "青原区",
"DisSort" : null,
"Id" : 1112
},
{
"CityID" : 120,
"DisName" : "吉安县",
"DisSort" : null,
"Id" : 1113
},
{
"CityID" : 120,
"DisName" : "吉水县",
"DisSort" : null,
"Id" : 1114
},
{
"CityID" : 120,
"DisName" : "峡江县",
"DisSort" : null,
"Id" : 1115
},
{
"CityID" : 120,
"DisName" : "新干县",
"DisSort" : null,
"Id" : 1116
},
{
"CityID" : 120,
"DisName" : "永丰县",
"DisSort" : null,
"Id" : 1117
},
{
"CityID" : 120,
"DisName" : "泰和县",
"DisSort" : null,
"Id" : 1118
},
{
"CityID" : 120,
"DisName" : "遂川县",
"DisSort" : null,
"Id" : 1119
},
{
"CityID" : 120,
"DisName" : "万安县",
"DisSort" : null,
"Id" : 1120
},
{
"CityID" : 120,
"DisName" : "安福县",
"DisSort" : null,
"Id" : 1121
},
{
"CityID" : 120,
"DisName" : "永新县",
"DisSort" : null,
"Id" : 1122
},
{
"CityID" : 120,
"DisName" : "井冈山市",
"DisSort" : null,
"Id" : 1123
},
{
"CityID" : 121,
"DisName" : "章贡区",
"DisSort" : null,
"Id" : 1124
},
{
"CityID" : 121,
"DisName" : "赣县",
"DisSort" : null,
"Id" : 1125
},
{
"CityID" : 121,
"DisName" : "信丰县",
"DisSort" : null,
"Id" : 1126
},
{
"CityID" : 121,
"DisName" : "大余县",
"DisSort" : null,
"Id" : 1127
},
{
"CityID" : 121,
"DisName" : "上犹县",
"DisSort" : null,
"Id" : 1128
},
{
"CityID" : 121,
"DisName" : "崇义县",
"DisSort" : null,
"Id" : 1129
},
{
"CityID" : 121,
"DisName" : "安远县",
"DisSort" : null,
"Id" : 1130
},
{
"CityID" : 121,
"DisName" : "龙南县",
"DisSort" : null,
"Id" : 1131
},
{
"CityID" : 121,
"DisName" : "定南县",
"DisSort" : null,
"Id" : 1132
},
{
"CityID" : 121,
"DisName" : "全南县",
"DisSort" : null,
"Id" : 1133
},
{
"CityID" : 121,
"DisName" : "宁都县",
"DisSort" : null,
"Id" : 1134
},
{
"CityID" : 121,
"DisName" : "于都县",
"DisSort" : null,
"Id" : 1135
},
{
"CityID" : 121,
"DisName" : "兴国县",
"DisSort" : null,
"Id" : 1136
},
{
"CityID" : 121,
"DisName" : "会昌县",
"DisSort" : null,
"Id" : 1137
},
{
"CityID" : 121,
"DisName" : "寻乌县",
"DisSort" : null,
"Id" : 1138
},
{
"CityID" : 121,
"DisName" : "石城县",
"DisSort" : null,
"Id" : 1139
},
{
"CityID" : 121,
"DisName" : "瑞金市",
"DisSort" : null,
"Id" : 1140
},
{
"CityID" : 121,
"DisName" : "南康市",
"DisSort" : null,
"Id" : 1141
},
{
"CityID" : 122,
"DisName" : "昌江区",
"DisSort" : null,
"Id" : 1142
},
{
"CityID" : 122,
"DisName" : "珠山区",
"DisSort" : null,
"Id" : 1143
},
{
"CityID" : 122,
"DisName" : "浮梁县",
"DisSort" : null,
"Id" : 1144
},
{
"CityID" : 122,
"DisName" : "乐平市",
"DisSort" : null,
"Id" : 1145
},
{
"CityID" : 123,
"DisName" : "安源区",
"DisSort" : null,
"Id" : 1146
},
{
"CityID" : 123,
"DisName" : "湘东区",
"DisSort" : null,
"Id" : 1147
},
{
"CityID" : 123,
"DisName" : "莲花县",
"DisSort" : null,
"Id" : 1148
},
{
"CityID" : 123,
"DisName" : "上栗县",
"DisSort" : null,
"Id" : 1149
},
{
"CityID" : 123,
"DisName" : "芦溪县",
"DisSort" : null,
"Id" : 1150
},
{
"CityID" : 124,
"DisName" : "牡丹区",
"DisSort" : null,
"Id" : 1151
},
{
"CityID" : 124,
"DisName" : "曹县",
"DisSort" : null,
"Id" : 1152
},
{
"CityID" : 124,
"DisName" : "单县",
"DisSort" : null,
"Id" : 1153
},
{
"CityID" : 124,
"DisName" : "成武县",
"DisSort" : null,
"Id" : 1154
},
{
"CityID" : 124,
"DisName" : "巨野县",
"DisSort" : null,
"Id" : 1155
},
{
"CityID" : 124,
"DisName" : "郓城县",
"DisSort" : null,
"Id" : 1156
},
{
"CityID" : 124,
"DisName" : "鄄城县",
"DisSort" : null,
"Id" : 1157
},
{
"CityID" : 124,
"DisName" : "定陶县",
"DisSort" : null,
"Id" : 1158
},
{
"CityID" : 124,
"DisName" : "东明县",
"DisSort" : null,
"Id" : 1159
},
{
"CityID" : 125,
"DisName" : "历下区",
"DisSort" : null,
"Id" : 1160
},
{
"CityID" : 125,
"DisName" : "市中区",
"DisSort" : null,
"Id" : 1161
},
{
"CityID" : 125,
"DisName" : "槐荫区",
"DisSort" : null,
"Id" : 1162
},
{
"CityID" : 125,
"DisName" : "天桥区",
"DisSort" : null,
"Id" : 1163
},
{
"CityID" : 125,
"DisName" : "历城区",
"DisSort" : null,
"Id" : 1164
},
{
"CityID" : 125,
"DisName" : "长清区",
"DisSort" : null,
"Id" : 1165
},
{
"CityID" : 125,
"DisName" : "平阴县",
"DisSort" : null,
"Id" : 1166
},
{
"CityID" : 125,
"DisName" : "济阳县",
"DisSort" : null,
"Id" : 1167
},
{
"CityID" : 125,
"DisName" : "商河县",
"DisSort" : null,
"Id" : 1168
},
{
"CityID" : 125,
"DisName" : "章丘市",
"DisSort" : null,
"Id" : 1169
},
{
"CityID" : 126,
"DisName" : "市南区",
"DisSort" : null,
"Id" : 1170
},
{
"CityID" : 126,
"DisName" : "市北区",
"DisSort" : null,
"Id" : 1171
},
{
"CityID" : 126,
"DisName" : "四方区",
"DisSort" : null,
"Id" : 1172
},
{
"CityID" : 126,
"DisName" : "黄岛区",
"DisSort" : null,
"Id" : 1173
},
{
"CityID" : 126,
"DisName" : "崂山区",
"DisSort" : null,
"Id" : 1174
},
{
"CityID" : 126,
"DisName" : "李沧区",
"DisSort" : null,
"Id" : 1175
},
{
"CityID" : 126,
"DisName" : "城阳区",
"DisSort" : null,
"Id" : 1176
},
{
"CityID" : 126,
"DisName" : "胶州市",
"DisSort" : null,
"Id" : 1177
},
{
"CityID" : 126,
"DisName" : "即墨市",
"DisSort" : null,
"Id" : 1178
},
{
"CityID" : 126,
"DisName" : "平度市",
"DisSort" : null,
"Id" : 1179
},
{
"CityID" : 126,
"DisName" : "胶南市",
"DisSort" : null,
"Id" : 1180
},
{
"CityID" : 126,
"DisName" : "莱西市",
"DisSort" : null,
"Id" : 1181
},
{
"CityID" : 127,
"DisName" : "淄川区",
"DisSort" : null,
"Id" : 1182
},
{
"CityID" : 127,
"DisName" : "张店区",
"DisSort" : null,
"Id" : 1183
},
{
"CityID" : 127,
"DisName" : "博山区",
"DisSort" : null,
"Id" : 1184
},
{
"CityID" : 127,
"DisName" : "临淄区",
"DisSort" : null,
"Id" : 1185
},
{
"CityID" : 127,
"DisName" : "周村区",
"DisSort" : null,
"Id" : 1186
},
{
"CityID" : 127,
"DisName" : "桓台县",
"DisSort" : null,
"Id" : 1187
},
{
"CityID" : 127,
"DisName" : "高青县",
"DisSort" : null,
"Id" : 1188
},
{
"CityID" : 127,
"DisName" : "沂源县",
"DisSort" : null,
"Id" : 1189
},
{
"CityID" : 128,
"DisName" : "德城区",
"DisSort" : null,
"Id" : 1190
},
{
"CityID" : 128,
"DisName" : "陵县",
"DisSort" : null,
"Id" : 1191
},
{
"CityID" : 128,
"DisName" : "宁津县",
"DisSort" : null,
"Id" : 1192
},
{
"CityID" : 128,
"DisName" : "庆云县",
"DisSort" : null,
"Id" : 1193
},
{
"CityID" : 128,
"DisName" : "临邑县",
"DisSort" : null,
"Id" : 1194
},
{
"CityID" : 128,
"DisName" : "齐河县",
"DisSort" : null,
"Id" : 1195
},
{
"CityID" : 128,
"DisName" : "平原县",
"DisSort" : null,
"Id" : 1196
},
{
"CityID" : 128,
"DisName" : "夏津县",
"DisSort" : null,
"Id" : 1197
},
{
"CityID" : 128,
"DisName" : "武城县",
"DisSort" : null,
"Id" : 1198
},
{
"CityID" : 128,
"DisName" : "乐陵市",
"DisSort" : null,
"Id" : 1199
},
{
"CityID" : 128,
"DisName" : "禹城市",
"DisSort" : null,
"Id" : 1200
},
{
"CityID" : 129,
"DisName" : "芝罘区",
"DisSort" : null,
"Id" : 1201
},
{
"CityID" : 129,
"DisName" : "福山区",
"DisSort" : null,
"Id" : 1202
},
{
"CityID" : 129,
"DisName" : "牟平区",
"DisSort" : null,
"Id" : 1203
},
{
"CityID" : 129,
"DisName" : "莱山区",
"DisSort" : null,
"Id" : 1204
},
{
"CityID" : 129,
"DisName" : "长岛县",
"DisSort" : null,
"Id" : 1205
},
{
"CityID" : 129,
"DisName" : "龙口市",
"DisSort" : null,
"Id" : 1206
},
{
"CityID" : 129,
"DisName" : "莱阳市",
"DisSort" : null,
"Id" : 1207
},
{
"CityID" : 129,
"DisName" : "莱州市",
"DisSort" : null,
"Id" : 1208
},
{
"CityID" : 129,
"DisName" : "蓬莱市",
"DisSort" : null,
"Id" : 1209
},
{
"CityID" : 129,
"DisName" : "招远市",
"DisSort" : null,
"Id" : 1210
},
{
"CityID" : 129,
"DisName" : "栖霞市",
"DisSort" : null,
"Id" : 1211
},
{
"CityID" : 129,
"DisName" : "海阳市",
"DisSort" : null,
"Id" : 1212
},
{
"CityID" : 130,
"DisName" : "潍城区",
"DisSort" : null,
"Id" : 1213
},
{
"CityID" : 130,
"DisName" : "寒亭区",
"DisSort" : null,
"Id" : 1214
},
{
"CityID" : 130,
"DisName" : "坊子区",
"DisSort" : null,
"Id" : 1215
},
{
"CityID" : 130,
"DisName" : "奎文区",
"DisSort" : null,
"Id" : 1216
},
{
"CityID" : 130,
"DisName" : "临朐县",
"DisSort" : null,
"Id" : 1217
},
{
"CityID" : 130,
"DisName" : "昌乐县",
"DisSort" : null,
"Id" : 1218
},
{
"CityID" : 130,
"DisName" : "青州市",
"DisSort" : null,
"Id" : 1219
},
{
"CityID" : 130,
"DisName" : "诸城市",
"DisSort" : null,
"Id" : 1220
},
{
"CityID" : 130,
"DisName" : "寿光市",
"DisSort" : null,
"Id" : 1221
},
{
"CityID" : 130,
"DisName" : "安丘市",
"DisSort" : null,
"Id" : 1222
},
{
"CityID" : 130,
"DisName" : "高密市",
"DisSort" : null,
"Id" : 1223
},
{
"CityID" : 130,
"DisName" : "昌邑市",
"DisSort" : null,
"Id" : 1224
},
{
"CityID" : 131,
"DisName" : "市中区",
"DisSort" : null,
"Id" : 1225
},
{
"CityID" : 131,
"DisName" : "任城区",
"DisSort" : null,
"Id" : 1226
},
{
"CityID" : 131,
"DisName" : "微山县",
"DisSort" : null,
"Id" : 1227
},
{
"CityID" : 131,
"DisName" : "鱼台县",
"DisSort" : null,
"Id" : 1228
},
{
"CityID" : 131,
"DisName" : "金乡县",
"DisSort" : null,
"Id" : 1229
},
{
"CityID" : 131,
"DisName" : "嘉祥县",
"DisSort" : null,
"Id" : 1230
},
{
"CityID" : 131,
"DisName" : "汶上县",
"DisSort" : null,
"Id" : 1231
},
{
"CityID" : 131,
"DisName" : "泗水县",
"DisSort" : null,
"Id" : 1232
},
{
"CityID" : 131,
"DisName" : "梁山县",
"DisSort" : null,
"Id" : 1233
},
{
"CityID" : 131,
"DisName" : "曲阜市",
"DisSort" : null,
"Id" : 1234
},
{
"CityID" : 131,
"DisName" : "兖州市",
"DisSort" : null,
"Id" : 1235
},
{
"CityID" : 131,
"DisName" : "邹城市",
"DisSort" : null,
"Id" : 1236
},
{
"CityID" : 132,
"DisName" : "泰山区",
"DisSort" : null,
"Id" : 1237
},
{
"CityID" : 132,
"DisName" : "岱岳区",
"DisSort" : null,
"Id" : 1238
},
{
"CityID" : 132,
"DisName" : "宁阳县",
"DisSort" : null,
"Id" : 1239
},
{
"CityID" : 132,
"DisName" : "东平县",
"DisSort" : null,
"Id" : 1240
},
{
"CityID" : 132,
"DisName" : "新泰市",
"DisSort" : null,
"Id" : 1241
},
{
"CityID" : 132,
"DisName" : "肥城市",
"DisSort" : null,
"Id" : 1242
},
{
"CityID" : 133,
"DisName" : "兰山区",
"DisSort" : null,
"Id" : 1243
},
{
"CityID" : 133,
"DisName" : "罗庄区",
"DisSort" : null,
"Id" : 1244
},
{
"CityID" : 133,
"DisName" : "河东区",
"DisSort" : null,
"Id" : 1245
},
{
"CityID" : 133,
"DisName" : "沂南县",
"DisSort" : null,
"Id" : 1246
},
{
"CityID" : 133,
"DisName" : "郯城县",
"DisSort" : null,
"Id" : 1247
},
{
"CityID" : 133,
"DisName" : "沂水县",
"DisSort" : null,
"Id" : 1248
},
{
"CityID" : 133,
"DisName" : "苍山县",
"DisSort" : null,
"Id" : 1249
},
{
"CityID" : 133,
"DisName" : "费县",
"DisSort" : null,
"Id" : 1250
},
{
"CityID" : 133,
"DisName" : "平邑县",
"DisSort" : null,
"Id" : 1251
},
{
"CityID" : 133,
"DisName" : "莒南县",
"DisSort" : null,
"Id" : 1252
},
{
"CityID" : 133,
"DisName" : "蒙阴县",
"DisSort" : null,
"Id" : 1253
},
{
"CityID" : 133,
"DisName" : "临沭县",
"DisSort" : null,
"Id" : 1254
},
{
"CityID" : 134,
"DisName" : "滨城区",
"DisSort" : null,
"Id" : 1255
},
{
"CityID" : 134,
"DisName" : "惠民县",
"DisSort" : null,
"Id" : 1256
},
{
"CityID" : 134,
"DisName" : "阳信县",
"DisSort" : null,
"Id" : 1257
},
{
"CityID" : 134,
"DisName" : "无棣县",
"DisSort" : null,
"Id" : 1258
},
{
"CityID" : 134,
"DisName" : "沾化县",
"DisSort" : null,
"Id" : 1259
},
{
"CityID" : 134,
"DisName" : "博兴县",
"DisSort" : null,
"Id" : 1260
},
{
"CityID" : 134,
"DisName" : "邹平县",
"DisSort" : null,
"Id" : 1261
},
{
"CityID" : 135,
"DisName" : "东营区",
"DisSort" : null,
"Id" : 1262
},
{
"CityID" : 135,
"DisName" : "河口区",
"DisSort" : null,
"Id" : 1263
},
{
"CityID" : 135,
"DisName" : "垦利县",
"DisSort" : null,
"Id" : 1264
},
{
"CityID" : 135,
"DisName" : "利津县",
"DisSort" : null,
"Id" : 1265
},
{
"CityID" : 135,
"DisName" : "广饶县",
"DisSort" : null,
"Id" : 1266
},
{
"CityID" : 136,
"DisName" : "环翠区",
"DisSort" : null,
"Id" : 1267
},
{
"CityID" : 136,
"DisName" : "文登市",
"DisSort" : null,
"Id" : 1268
},
{
"CityID" : 136,
"DisName" : "荣成市",
"DisSort" : null,
"Id" : 1269
},
{
"CityID" : 136,
"DisName" : "乳山市",
"DisSort" : null,
"Id" : 1270
},
{
"CityID" : 137,
"DisName" : "市中区",
"DisSort" : null,
"Id" : 1271
},
{
"CityID" : 137,
"DisName" : "薛城区",
"DisSort" : null,
"Id" : 1272
},
{
"CityID" : 137,
"DisName" : "峄城区",
"DisSort" : null,
"Id" : 1273
},
{
"CityID" : 137,
"DisName" : "台儿庄区",
"DisSort" : null,
"Id" : 1274
},
{
"CityID" : 137,
"DisName" : "山亭区",
"DisSort" : null,
"Id" : 1275
},
{
"CityID" : 137,
"DisName" : "滕州市",
"DisSort" : null,
"Id" : 1276
},
{
"CityID" : 138,
"DisName" : "东港区",
"DisSort" : null,
"Id" : 1277
},
{
"CityID" : 138,
"DisName" : "岚山区",
"DisSort" : null,
"Id" : 1278
},
{
"CityID" : 138,
"DisName" : "五莲县",
"DisSort" : null,
"Id" : 1279
},
{
"CityID" : 138,
"DisName" : "莒县",
"DisSort" : null,
"Id" : 1280
},
{
"CityID" : 139,
"DisName" : "莱城区",
"DisSort" : null,
"Id" : 1281
},
{
"CityID" : 139,
"DisName" : "钢城区",
"DisSort" : null,
"Id" : 1282
},
{
"CityID" : 140,
"DisName" : "东昌府区",
"DisSort" : null,
"Id" : 1283
},
{
"CityID" : 140,
"DisName" : "阳谷县",
"DisSort" : null,
"Id" : 1284
},
{
"CityID" : 140,
"DisName" : "莘县",
"DisSort" : null,
"Id" : 1285
},
{
"CityID" : 140,
"DisName" : "茌平县",
"DisSort" : null,
"Id" : 1286
},
{
"CityID" : 140,
"DisName" : "东阿县",
"DisSort" : null,
"Id" : 1287
},
{
"CityID" : 140,
"DisName" : "冠县",
"DisSort" : null,
"Id" : 1288
},
{
"CityID" : 140,
"DisName" : "高唐县",
"DisSort" : null,
"Id" : 1289
},
{
"CityID" : 140,
"DisName" : "临清市",
"DisSort" : null,
"Id" : 1290
},
{
"CityID" : 141,
"DisName" : "梁园区",
"DisSort" : null,
"Id" : 1291
},
{
"CityID" : 141,
"DisName" : "睢阳区",
"DisSort" : null,
"Id" : 1292
},
{
"CityID" : 141,
"DisName" : "民权县",
"DisSort" : null,
"Id" : 1293
},
{
"CityID" : 141,
"DisName" : "睢县",
"DisSort" : null,
"Id" : 1294
},
{
"CityID" : 141,
"DisName" : "宁陵县",
"DisSort" : null,
"Id" : 1295
},
{
"CityID" : 141,
"DisName" : "柘城县",
"DisSort" : null,
"Id" : 1296
},
{
"CityID" : 141,
"DisName" : "虞城县",
"DisSort" : null,
"Id" : 1297
},
{
"CityID" : 141,
"DisName" : "夏邑县",
"DisSort" : null,
"Id" : 1298
},
{
"CityID" : 141,
"DisName" : "永城市",
"DisSort" : null,
"Id" : 1299
},
{
"CityID" : 142,
"DisName" : "中原区",
"DisSort" : null,
"Id" : 1300
},
{
"CityID" : 142,
"DisName" : "二七区",
"DisSort" : null,
"Id" : 1301
},
{
"CityID" : 142,
"DisName" : "管城回族区",
"DisSort" : null,
"Id" : 1302
},
{
"CityID" : 142,
"DisName" : "金水区",
"DisSort" : null,
"Id" : 1303
},
{
"CityID" : 142,
"DisName" : "上街区",
"DisSort" : null,
"Id" : 1304
},
{
"CityID" : 142,
"DisName" : "惠济区",
"DisSort" : null,
"Id" : 1305
},
{
"CityID" : 142,
"DisName" : "中牟县",
"DisSort" : null,
"Id" : 1306
},
{
"CityID" : 142,
"DisName" : "巩义市",
"DisSort" : null,
"Id" : 1307
},
{
"CityID" : 142,
"DisName" : "荥阳市",
"DisSort" : null,
"Id" : 1308
},
{
"CityID" : 142,
"DisName" : "新密市",
"DisSort" : null,
"Id" : 1309
},
{
"CityID" : 142,
"DisName" : "新郑市",
"DisSort" : null,
"Id" : 1310
},
{
"CityID" : 142,
"DisName" : "登封市",
"DisSort" : null,
"Id" : 1311
},
{
"CityID" : 143,
"DisName" : "文峰区",
"DisSort" : null,
"Id" : 1312
},
{
"CityID" : 143,
"DisName" : "北关区",
"DisSort" : null,
"Id" : 1313
},
{
"CityID" : 143,
"DisName" : "殷都区",
"DisSort" : null,
"Id" : 1314
},
{
"CityID" : 143,
"DisName" : "龙安区",
"DisSort" : null,
"Id" : 1315
},
{
"CityID" : 143,
"DisName" : "安阳县",
"DisSort" : null,
"Id" : 1316
},
{
"CityID" : 143,
"DisName" : "汤阴县",
"DisSort" : null,
"Id" : 1317
},
{
"CityID" : 143,
"DisName" : "滑县",
"DisSort" : null,
"Id" : 1318
},
{
"CityID" : 143,
"DisName" : "内黄县",
"DisSort" : null,
"Id" : 1319
},
{
"CityID" : 143,
"DisName" : "林州市",
"DisSort" : null,
"Id" : 1320
},
{
"CityID" : 144,
"DisName" : "红旗区",
"DisSort" : null,
"Id" : 1321
},
{
"CityID" : 144,
"DisName" : "卫滨区",
"DisSort" : null,
"Id" : 1322
},
{
"CityID" : 144,
"DisName" : "凤泉区",
"DisSort" : null,
"Id" : 1323
},
{
"CityID" : 144,
"DisName" : "牧野区",
"DisSort" : null,
"Id" : 1324
},
{
"CityID" : 144,
"DisName" : "新乡县",
"DisSort" : null,
"Id" : 1325
},
{
"CityID" : 144,
"DisName" : "获嘉县",
"DisSort" : null,
"Id" : 1326
},
{
"CityID" : 144,
"DisName" : "原阳县",
"DisSort" : null,
"Id" : 1327
},
{
"CityID" : 144,
"DisName" : "延津县",
"DisSort" : null,
"Id" : 1328
},
{
"CityID" : 144,
"DisName" : "封丘县",
"DisSort" : null,
"Id" : 1329
},
{
"CityID" : 144,
"DisName" : "长垣县",
"DisSort" : null,
"Id" : 1330
},
{
"CityID" : 144,
"DisName" : "卫辉市",
"DisSort" : null,
"Id" : 1331
},
{
"CityID" : 144,
"DisName" : "辉县市",
"DisSort" : null,
"Id" : 1332
},
{
"CityID" : 145,
"DisName" : "魏都区",
"DisSort" : null,
"Id" : 1333
},
{
"CityID" : 145,
"DisName" : "许昌县",
"DisSort" : null,
"Id" : 1334
},
{
"CityID" : 145,
"DisName" : "鄢陵县",
"DisSort" : null,
"Id" : 1335
},
{
"CityID" : 145,
"DisName" : "襄城县",
"DisSort" : null,
"Id" : 1336
},
{
"CityID" : 145,
"DisName" : "禹州市",
"DisSort" : null,
"Id" : 1337
},
{
"CityID" : 145,
"DisName" : "长葛市",
"DisSort" : null,
"Id" : 1338
},
{
"CityID" : 146,
"DisName" : "新华区",
"DisSort" : null,
"Id" : 1339
},
{
"CityID" : 146,
"DisName" : "卫东区",
"DisSort" : null,
"Id" : 1340
},
{
"CityID" : 146,
"DisName" : "石龙区",
"DisSort" : null,
"Id" : 1341
},
{
"CityID" : 146,
"DisName" : "湛河区",
"DisSort" : null,
"Id" : 1342
},
{
"CityID" : 146,
"DisName" : "宝丰县",
"DisSort" : null,
"Id" : 1343
},
{
"CityID" : 146,
"DisName" : "叶县",
"DisSort" : null,
"Id" : 1344
},
{
"CityID" : 146,
"DisName" : "鲁山县",
"DisSort" : null,
"Id" : 1345
},
{
"CityID" : 146,
"DisName" : "郏县",
"DisSort" : null,
"Id" : 1346
},
{
"CityID" : 146,
"DisName" : "舞钢市",
"DisSort" : null,
"Id" : 1347
},
{
"CityID" : 146,
"DisName" : "汝州市",
"DisSort" : null,
"Id" : 1348
},
{
"CityID" : 147,
"DisName" : "浉河区",
"DisSort" : null,
"Id" : 1349
},
{
"CityID" : 147,
"DisName" : "平桥区",
"DisSort" : null,
"Id" : 1350
},
{
"CityID" : 147,
"DisName" : "罗山县",
"DisSort" : null,
"Id" : 1351
},
{
"CityID" : 147,
"DisName" : "光山县",
"DisSort" : null,
"Id" : 1352
},
{
"CityID" : 147,
"DisName" : "新县",
"DisSort" : null,
"Id" : 1353
},
{
"CityID" : 147,
"DisName" : "商城县",
"DisSort" : null,
"Id" : 1354
},
{
"CityID" : 147,
"DisName" : "固始县",
"DisSort" : null,
"Id" : 1355
},
{
"CityID" : 147,
"DisName" : "潢川县",
"DisSort" : null,
"Id" : 1356
},
{
"CityID" : 147,
"DisName" : "淮滨县",
"DisSort" : null,
"Id" : 1357
},
{
"CityID" : 147,
"DisName" : "息县",
"DisSort" : null,
"Id" : 1358
},
{
"CityID" : 148,
"DisName" : "宛城区",
"DisSort" : null,
"Id" : 1359
},
{
"CityID" : 148,
"DisName" : "卧龙区",
"DisSort" : null,
"Id" : 1360
},
{
"CityID" : 148,
"DisName" : "南召县",
"DisSort" : null,
"Id" : 1361
},
{
"CityID" : 148,
"DisName" : "方城县",
"DisSort" : null,
"Id" : 1362
},
{
"CityID" : 148,
"DisName" : "西峡县",
"DisSort" : null,
"Id" : 1363
},
{
"CityID" : 148,
"DisName" : "镇平县",
"DisSort" : null,
"Id" : 1364
},
{
"CityID" : 148,
"DisName" : "内乡县",
"DisSort" : null,
"Id" : 1365
},
{
"CityID" : 148,
"DisName" : "淅川县",
"DisSort" : null,
"Id" : 1366
},
{
"CityID" : 148,
"DisName" : "社旗县",
"DisSort" : null,
"Id" : 1367
},
{
"CityID" : 148,
"DisName" : "唐河县",
"DisSort" : null,
"Id" : 1368
},
{
"CityID" : 148,
"DisName" : "新野县",
"DisSort" : null,
"Id" : 1369
},
{
"CityID" : 148,
"DisName" : "桐柏县",
"DisSort" : null,
"Id" : 1370
},
{
"CityID" : 148,
"DisName" : "邓州市",
"DisSort" : null,
"Id" : 1371
},
{
"CityID" : 149,
"DisName" : "龙亭区",
"DisSort" : null,
"Id" : 1372
},
{
"CityID" : 149,
"DisName" : "顺河回族区",
"DisSort" : null,
"Id" : 1373
},
{
"CityID" : 149,
"DisName" : "鼓楼区",
"DisSort" : null,
"Id" : 1374
},
{
"CityID" : 149,
"DisName" : "禹王台区",
"DisSort" : null,
"Id" : 1375
},
{
"CityID" : 149,
"DisName" : "金明区",
"DisSort" : null,
"Id" : 1376
},
{
"CityID" : 149,
"DisName" : "杞县",
"DisSort" : null,
"Id" : 1377
},
{
"CityID" : 149,
"DisName" : "通许县",
"DisSort" : null,
"Id" : 1378
},
{
"CityID" : 149,
"DisName" : "尉氏县",
"DisSort" : null,
"Id" : 1379
},
{
"CityID" : 149,
"DisName" : "开封县",
"DisSort" : null,
"Id" : 1380
},
{
"CityID" : 149,
"DisName" : "兰考县",
"DisSort" : null,
"Id" : 1381
},
{
"CityID" : 150,
"DisName" : "老城区",
"DisSort" : null,
"Id" : 1382
},
{
"CityID" : 150,
"DisName" : "西工区",
"DisSort" : null,
"Id" : 1383
},
{
"CityID" : 150,
"DisName" : "瀍河回族区",
"DisSort" : null,
"Id" : 1384
},
{
"CityID" : 150,
"DisName" : "涧西区",
"DisSort" : null,
"Id" : 1385
},
{
"CityID" : 150,
"DisName" : "吉利区",
"DisSort" : null,
"Id" : 1386
},
{
"CityID" : 150,
"DisName" : "洛龙区",
"DisSort" : null,
"Id" : 1387
},
{
"CityID" : 150,
"DisName" : "孟津县",
"DisSort" : null,
"Id" : 1388
},
{
"CityID" : 150,
"DisName" : "新安县",
"DisSort" : null,
"Id" : 1389
},
{
"CityID" : 150,
"DisName" : "栾川县",
"DisSort" : null,
"Id" : 1390
},
{
"CityID" : 150,
"DisName" : "嵩县",
"DisSort" : null,
"Id" : 1391
},
{
"CityID" : 150,
"DisName" : "汝阳县",
"DisSort" : null,
"Id" : 1392
},
{
"CityID" : 150,
"DisName" : "宜阳县",
"DisSort" : null,
"Id" : 1393
},
{
"CityID" : 150,
"DisName" : "洛宁县",
"DisSort" : null,
"Id" : 1394
},
{
"CityID" : 150,
"DisName" : "伊川县",
"DisSort" : null,
"Id" : 1395
},
{
"CityID" : 150,
"DisName" : "偃师市",
"DisSort" : null,
"Id" : 1396
},
{
"CityID" : 152,
"DisName" : "解放区",
"DisSort" : null,
"Id" : 1397
},
{
"CityID" : 152,
"DisName" : "中站区",
"DisSort" : null,
"Id" : 1398
},
{
"CityID" : 152,
"DisName" : "马村区",
"DisSort" : null,
"Id" : 1399
},
{
"CityID" : 152,
"DisName" : "山阳区",
"DisSort" : null,
"Id" : 1400
},
{
"CityID" : 152,
"DisName" : "修武县",
"DisSort" : null,
"Id" : 1401
},
{
"CityID" : 152,
"DisName" : "博爱县",
"DisSort" : null,
"Id" : 1402
},
{
"CityID" : 152,
"DisName" : "武陟县",
"DisSort" : null,
"Id" : 1403
},
{
"CityID" : 152,
"DisName" : "温县",
"DisSort" : null,
"Id" : 1404
},
{
"CityID" : 152,
"DisName" : "沁阳市",
"DisSort" : null,
"Id" : 1405
},
{
"CityID" : 152,
"DisName" : "孟州市",
"DisSort" : null,
"Id" : 1406
},
{
"CityID" : 153,
"DisName" : "鹤山区",
"DisSort" : null,
"Id" : 1407
},
{
"CityID" : 153,
"DisName" : "山城区",
"DisSort" : null,
"Id" : 1408
},
{
"CityID" : 153,
"DisName" : "淇滨区",
"DisSort" : null,
"Id" : 1409
},
{
"CityID" : 153,
"DisName" : "浚县",
"DisSort" : null,
"Id" : 1410
},
{
"CityID" : 153,
"DisName" : "淇县",
"DisSort" : null,
"Id" : 1411
},
{
"CityID" : 154,
"DisName" : "华龙区",
"DisSort" : null,
"Id" : 1412
},
{
"CityID" : 154,
"DisName" : "清丰县",
"DisSort" : null,
"Id" : 1413
},
{
"CityID" : 154,
"DisName" : "南乐县",
"DisSort" : null,
"Id" : 1414
},
{
"CityID" : 154,
"DisName" : "范县",
"DisSort" : null,
"Id" : 1415
},
{
"CityID" : 154,
"DisName" : "台前县",
"DisSort" : null,
"Id" : 1416
},
{
"CityID" : 154,
"DisName" : "濮阳县",
"DisSort" : null,
"Id" : 1417
},
{
"CityID" : 155,
"DisName" : "川汇区",
"DisSort" : null,
"Id" : 1418
},
{
"CityID" : 155,
"DisName" : "扶沟县",
"DisSort" : null,
"Id" : 1419
},
{
"CityID" : 155,
"DisName" : "西华县",
"DisSort" : null,
"Id" : 1420
},
{
"CityID" : 155,
"DisName" : "商水县",
"DisSort" : null,
"Id" : 1421
},
{
"CityID" : 155,
"DisName" : "沈丘县",
"DisSort" : null,
"Id" : 1422
},
{
"CityID" : 155,
"DisName" : "郸城县",
"DisSort" : null,
"Id" : 1423
},
{
"CityID" : 155,
"DisName" : "淮阳县",
"DisSort" : null,
"Id" : 1424
},
{
"CityID" : 155,
"DisName" : "太康县",
"DisSort" : null,
"Id" : 1425
},
{
"CityID" : 155,
"DisName" : "鹿邑县",
"DisSort" : null,
"Id" : 1426
},
{
"CityID" : 155,
"DisName" : "项城市",
"DisSort" : null,
"Id" : 1427
},
{
"CityID" : 156,
"DisName" : "源汇区",
"DisSort" : null,
"Id" : 1428
},
{
"CityID" : 156,
"DisName" : "郾城区",
"DisSort" : null,
"Id" : 1429
},
{
"CityID" : 156,
"DisName" : "召陵区",
"DisSort" : null,
"Id" : 1430
},
{
"CityID" : 156,
"DisName" : "舞阳县",
"DisSort" : null,
"Id" : 1431
},
{
"CityID" : 156,
"DisName" : "临颍县",
"DisSort" : null,
"Id" : 1432
},
{
"CityID" : 157,
"DisName" : "驿城区",
"DisSort" : null,
"Id" : 1433
},
{
"CityID" : 157,
"DisName" : "西平县",
"DisSort" : null,
"Id" : 1434
},
{
"CityID" : 157,
"DisName" : "上蔡县",
"DisSort" : null,
"Id" : 1435
},
{
"CityID" : 157,
"DisName" : "平舆县",
"DisSort" : null,
"Id" : 1436
},
{
"CityID" : 157,
"DisName" : "正阳县",
"DisSort" : null,
"Id" : 1437
},
{
"CityID" : 157,
"DisName" : "确山县",
"DisSort" : null,
"Id" : 1438
},
{
"CityID" : 157,
"DisName" : "泌阳县",
"DisSort" : null,
"Id" : 1439
},
{
"CityID" : 157,
"DisName" : "汝南县",
"DisSort" : null,
"Id" : 1440
},
{
"CityID" : 157,
"DisName" : "遂平县",
"DisSort" : null,
"Id" : 1441
},
{
"CityID" : 157,
"DisName" : "新蔡县",
"DisSort" : null,
"Id" : 1442
},
{
"CityID" : 158,
"DisName" : "湖滨区",
"DisSort" : null,
"Id" : 1443
},
{
"CityID" : 158,
"DisName" : "渑池县",
"DisSort" : null,
"Id" : 1444
},
{
"CityID" : 158,
"DisName" : "陕县",
"DisSort" : null,
"Id" : 1445
},
{
"CityID" : 158,
"DisName" : "卢氏县",
"DisSort" : null,
"Id" : 1446
},
{
"CityID" : 158,
"DisName" : "义马市",
"DisSort" : null,
"Id" : 1447
},
{
"CityID" : 158,
"DisName" : "灵宝市",
"DisSort" : null,
"Id" : 1448
},
{
"CityID" : 159,
"DisName" : "江岸区",
"DisSort" : null,
"Id" : 1449
},
{
"CityID" : 159,
"DisName" : "江汉区",
"DisSort" : null,
"Id" : 1450
},
{
"CityID" : 159,
"DisName" : "硚口区",
"DisSort" : null,
"Id" : 1451
},
{
"CityID" : 159,
"DisName" : "汉阳区",
"DisSort" : null,
"Id" : 1452
},
{
"CityID" : 159,
"DisName" : "武昌区",
"DisSort" : null,
"Id" : 1453
},
{
"CityID" : 159,
"DisName" : "青山区",
"DisSort" : null,
"Id" : 1454
},
{
"CityID" : 159,
"DisName" : "洪山区",
"DisSort" : null,
"Id" : 1455
},
{
"CityID" : 159,
"DisName" : "东西湖区",
"DisSort" : null,
"Id" : 1456
},
{
"CityID" : 159,
"DisName" : "汉南区",
"DisSort" : null,
"Id" : 1457
},
{
"CityID" : 159,
"DisName" : "蔡甸区",
"DisSort" : null,
"Id" : 1458
},
{
"CityID" : 159,
"DisName" : "江夏区",
"DisSort" : null,
"Id" : 1459
},
{
"CityID" : 159,
"DisName" : "黄陂区",
"DisSort" : null,
"Id" : 1460
},
{
"CityID" : 159,
"DisName" : "新洲区",
"DisSort" : null,
"Id" : 1461
},
{
"CityID" : 160,
"DisName" : "襄城区",
"DisSort" : null,
"Id" : 1462
},
{
"CityID" : 160,
"DisName" : "樊城区",
"DisSort" : null,
"Id" : 1463
},
{
"CityID" : 160,
"DisName" : "襄阳区",
"DisSort" : null,
"Id" : 1464
},
{
"CityID" : 160,
"DisName" : "南漳县",
"DisSort" : null,
"Id" : 1465
},
{
"CityID" : 160,
"DisName" : "谷城县",
"DisSort" : null,
"Id" : 1466
},
{
"CityID" : 160,
"DisName" : "保康县",
"DisSort" : null,
"Id" : 1467
},
{
"CityID" : 160,
"DisName" : "老河口市",
"DisSort" : null,
"Id" : 1468
},
{
"CityID" : 160,
"DisName" : "枣阳市",
"DisSort" : null,
"Id" : 1469
},
{
"CityID" : 160,
"DisName" : "宜城市",
"DisSort" : null,
"Id" : 1470
},
{
"CityID" : 161,
"DisName" : "梁子湖区",
"DisSort" : null,
"Id" : 1471
},
{
"CityID" : 161,
"DisName" : "华容区",
"DisSort" : null,
"Id" : 1472
},
{
"CityID" : 161,
"DisName" : "鄂城区",
"DisSort" : null,
"Id" : 1473
},
{
"CityID" : 162,
"DisName" : "孝南区",
"DisSort" : null,
"Id" : 1474
},
{
"CityID" : 162,
"DisName" : "孝昌县",
"DisSort" : null,
"Id" : 1475
},
{
"CityID" : 162,
"DisName" : "大悟县",
"DisSort" : null,
"Id" : 1476
},
{
"CityID" : 162,
"DisName" : "云梦县",
"DisSort" : null,
"Id" : 1477
},
{
"CityID" : 162,
"DisName" : "应城市",
"DisSort" : null,
"Id" : 1478
},
{
"CityID" : 162,
"DisName" : "安陆市",
"DisSort" : null,
"Id" : 1479
},
{
"CityID" : 162,
"DisName" : "汉川市",
"DisSort" : null,
"Id" : 1480
},
{
"CityID" : 163,
"DisName" : "黄州区",
"DisSort" : null,
"Id" : 1481
},
{
"CityID" : 163,
"DisName" : "团风县",
"DisSort" : null,
"Id" : 1482
},
{
"CityID" : 163,
"DisName" : "红安县",
"DisSort" : null,
"Id" : 1483
},
{
"CityID" : 163,
"DisName" : "罗田县",
"DisSort" : null,
"Id" : 1484
},
{
"CityID" : 163,
"DisName" : "英山县",
"DisSort" : null,
"Id" : 1485
},
{
"CityID" : 163,
"DisName" : "浠水县",
"DisSort" : null,
"Id" : 1486
},
{
"CityID" : 163,
"DisName" : "蕲春县",
"DisSort" : null,
"Id" : 1487
},
{
"CityID" : 163,
"DisName" : "黄梅县",
"DisSort" : null,
"Id" : 1488
},
{
"CityID" : 163,
"DisName" : "麻城市",
"DisSort" : null,
"Id" : 1489
},
{
"CityID" : 163,
"DisName" : "武穴市",
"DisSort" : null,
"Id" : 1490
},
{
"CityID" : 164,
"DisName" : "黄石港区",
"DisSort" : null,
"Id" : 1491
},
{
"CityID" : 164,
"DisName" : "西塞山区",
"DisSort" : null,
"Id" : 1492
},
{
"CityID" : 164,
"DisName" : "下陆区",
"DisSort" : null,
"Id" : 1493
},
{
"CityID" : 164,
"DisName" : "铁山区",
"DisSort" : null,
"Id" : 1494
},
{
"CityID" : 164,
"DisName" : "阳新县",
"DisSort" : null,
"Id" : 1495
},
{
"CityID" : 164,
"DisName" : "大冶市",
"DisSort" : null,
"Id" : 1496
},
{
"CityID" : 165,
"DisName" : "咸安区",
"DisSort" : null,
"Id" : 1497
},
{
"CityID" : 165,
"DisName" : "嘉鱼县",
"DisSort" : null,
"Id" : 1498
},
{
"CityID" : 165,
"DisName" : "通城县",
"DisSort" : null,
"Id" : 1499
},
{
"CityID" : 165,
"DisName" : "崇阳县",
"DisSort" : null,
"Id" : 1500
},
{
"CityID" : 165,
"DisName" : "通山县",
"DisSort" : null,
"Id" : 1501
},
{
"CityID" : 165,
"DisName" : "赤壁市",
"DisSort" : null,
"Id" : 1502
},
{
"CityID" : 166,
"DisName" : "沙市区",
"DisSort" : null,
"Id" : 1503
},
{
"CityID" : 166,
"DisName" : "荆州区",
"DisSort" : null,
"Id" : 1504
},
{
"CityID" : 166,
"DisName" : "公安县",
"DisSort" : null,
"Id" : 1505
},
{
"CityID" : 166,
"DisName" : "监利县",
"DisSort" : null,
"Id" : 1506
},
{
"CityID" : 166,
"DisName" : "江陵县",
"DisSort" : null,
"Id" : 1507
},
{
"CityID" : 166,
"DisName" : "石首市",
"DisSort" : null,
"Id" : 1508
},
{
"CityID" : 166,
"DisName" : "洪湖市",
"DisSort" : null,
"Id" : 1509
},
{
"CityID" : 166,
"DisName" : "松滋市",
"DisSort" : null,
"Id" : 1510
},
{
"CityID" : 167,
"DisName" : "西陵区",
"DisSort" : null,
"Id" : 1511
},
{
"CityID" : 167,
"DisName" : "伍家岗区",
"DisSort" : null,
"Id" : 1512
},
{
"CityID" : 167,
"DisName" : "点军区",
"DisSort" : null,
"Id" : 1513
},
{
"CityID" : 167,
"DisName" : "猇亭区",
"DisSort" : null,
"Id" : 1514
},
{
"CityID" : 167,
"DisName" : "夷陵区",
"DisSort" : null,
"Id" : 1515
},
{
"CityID" : 167,
"DisName" : "远安县",
"DisSort" : null,
"Id" : 1516
},
{
"CityID" : 167,
"DisName" : "兴山县",
"DisSort" : null,
"Id" : 1517
},
{
"CityID" : 167,
"DisName" : "秭归县",
"DisSort" : null,
"Id" : 1518
},
{
"CityID" : 167,
"DisName" : "长阳土家族自治县",
"DisSort" : null,
"Id" : 1519
},
{
"CityID" : 167,
"DisName" : "五峰土家族自治县",
"DisSort" : null,
"Id" : 1520
},
{
"CityID" : 167,
"DisName" : "宜都市",
"DisSort" : null,
"Id" : 1521
},
{
"CityID" : 167,
"DisName" : "当阳市",
"DisSort" : null,
"Id" : 1522
},
{
"CityID" : 167,
"DisName" : "枝江市",
"DisSort" : null,
"Id" : 1523
},
{
"CityID" : 168,
"DisName" : "恩施市",
"DisSort" : null,
"Id" : 1524
},
{
"CityID" : 168,
"DisName" : "利川市",
"DisSort" : null,
"Id" : 1525
},
{
"CityID" : 168,
"DisName" : "建始县",
"DisSort" : null,
"Id" : 1526
},
{
"CityID" : 168,
"DisName" : "巴东县",
"DisSort" : null,
"Id" : 1527
},
{
"CityID" : 168,
"DisName" : "宣恩县",
"DisSort" : null,
"Id" : 1528
},
{
"CityID" : 168,
"DisName" : "咸丰县",
"DisSort" : null,
"Id" : 1529
},
{
"CityID" : 168,
"DisName" : "来凤县",
"DisSort" : null,
"Id" : 1530
},
{
"CityID" : 168,
"DisName" : "鹤峰县",
"DisSort" : null,
"Id" : 1531
},
{
"CityID" : 170,
"DisName" : "茅箭区",
"DisSort" : null,
"Id" : 1532
},
{
"CityID" : 170,
"DisName" : "张湾区",
"DisSort" : null,
"Id" : 1533
},
{
"CityID" : 170,
"DisName" : "郧县",
"DisSort" : null,
"Id" : 1534
},
{
"CityID" : 170,
"DisName" : "郧西县",
"DisSort" : null,
"Id" : 1535
},
{
"CityID" : 170,
"DisName" : "竹山县",
"DisSort" : null,
"Id" : 1536
},
{
"CityID" : 170,
"DisName" : "竹溪县",
"DisSort" : null,
"Id" : 1537
},
{
"CityID" : 170,
"DisName" : "房县",
"DisSort" : null,
"Id" : 1538
},
{
"CityID" : 170,
"DisName" : "丹江口市",
"DisSort" : null,
"Id" : 1539
},
{
"CityID" : 171,
"DisName" : "曾都区",
"DisSort" : null,
"Id" : 1540
},
{
"CityID" : 171,
"DisName" : "广水市",
"DisSort" : null,
"Id" : 1541
},
{
"CityID" : 172,
"DisName" : "东宝区",
"DisSort" : null,
"Id" : 1542
},
{
"CityID" : 172,
"DisName" : "掇刀区",
"DisSort" : null,
"Id" : 1543
},
{
"CityID" : 172,
"DisName" : "京山县",
"DisSort" : null,
"Id" : 1544
},
{
"CityID" : 172,
"DisName" : "沙洋县",
"DisSort" : null,
"Id" : 1545
},
{
"CityID" : 172,
"DisName" : "钟祥市",
"DisSort" : null,
"Id" : 1546
},
{
"CityID" : 176,
"DisName" : "岳阳楼区",
"DisSort" : null,
"Id" : 1547
},
{
"CityID" : 176,
"DisName" : "云溪区",
"DisSort" : null,
"Id" : 1548
},
{
"CityID" : 176,
"DisName" : "君山区",
"DisSort" : null,
"Id" : 1549
},
{
"CityID" : 176,
"DisName" : "岳阳县",
"DisSort" : null,
"Id" : 1550
},
{
"CityID" : 176,
"DisName" : "华容县",
"DisSort" : null,
"Id" : 1551
},
{
"CityID" : 176,
"DisName" : "湘阴县",
"DisSort" : null,
"Id" : 1552
},
{
"CityID" : 176,
"DisName" : "平江县",
"DisSort" : null,
"Id" : 1553
},
{
"CityID" : 176,
"DisName" : "汨罗市",
"DisSort" : null,
"Id" : 1554
},
{
"CityID" : 176,
"DisName" : "临湘市",
"DisSort" : null,
"Id" : 1555
},
{
"CityID" : 177,
"DisName" : "芙蓉区",
"DisSort" : null,
"Id" : 1556
},
{
"CityID" : 177,
"DisName" : "天心区",
"DisSort" : null,
"Id" : 1557
},
{
"CityID" : 177,
"DisName" : "岳麓区",
"DisSort" : null,
"Id" : 1558
},
{
"CityID" : 177,
"DisName" : "开福区",
"DisSort" : null,
"Id" : 1559
},
{
"CityID" : 177,
"DisName" : "雨花区",
"DisSort" : null,
"Id" : 1560
},
{
"CityID" : 177,
"DisName" : "长沙县",
"DisSort" : null,
"Id" : 1561
},
{
"CityID" : 177,
"DisName" : "望城县",
"DisSort" : null,
"Id" : 1562
},
{
"CityID" : 177,
"DisName" : "宁乡县",
"DisSort" : null,
"Id" : 1563
},
{
"CityID" : 177,
"DisName" : "浏阳市",
"DisSort" : null,
"Id" : 1564
},
{
"CityID" : 178,
"DisName" : "雨湖区",
"DisSort" : null,
"Id" : 1565
},
{
"CityID" : 178,
"DisName" : "岳塘区",
"DisSort" : null,
"Id" : 1566
},
{
"CityID" : 178,
"DisName" : "湘潭县",
"DisSort" : null,
"Id" : 1567
},
{
"CityID" : 178,
"DisName" : "湘乡市",
"DisSort" : null,
"Id" : 1568
},
{
"CityID" : 178,
"DisName" : "韶山市",
"DisSort" : null,
"Id" : 1569
},
{
"CityID" : 179,
"DisName" : "荷塘区",
"DisSort" : null,
"Id" : 1570
},
{
"CityID" : 179,
"DisName" : "芦淞区",
"DisSort" : null,
"Id" : 1571
},
{
"CityID" : 179,
"DisName" : "石峰区",
"DisSort" : null,
"Id" : 1572
},
{
"CityID" : 179,
"DisName" : "天元区",
"DisSort" : null,
"Id" : 1573
},
{
"CityID" : 179,
"DisName" : "株洲县",
"DisSort" : null,
"Id" : 1574
},
{
"CityID" : 179,
"DisName" : "攸县",
"DisSort" : null,
"Id" : 1575
},
{
"CityID" : 179,
"DisName" : "茶陵县",
"DisSort" : null,
"Id" : 1576
},
{
"CityID" : 179,
"DisName" : "炎陵县",
"DisSort" : null,
"Id" : 1577
},
{
"CityID" : 179,
"DisName" : "醴陵市",
"DisSort" : null,
"Id" : 1578
},
{
"CityID" : 180,
"DisName" : "珠晖区",
"DisSort" : null,
"Id" : 1579
},
{
"CityID" : 180,
"DisName" : "雁峰区",
"DisSort" : null,
"Id" : 1580
},
{
"CityID" : 180,
"DisName" : "石鼓区",
"DisSort" : null,
"Id" : 1581
},
{
"CityID" : 180,
"DisName" : "蒸湘区",
"DisSort" : null,
"Id" : 1582
},
{
"CityID" : 180,
"DisName" : "南岳区",
"DisSort" : null,
"Id" : 1583
},
{
"CityID" : 180,
"DisName" : "衡阳县",
"DisSort" : null,
"Id" : 1584
},
{
"CityID" : 180,
"DisName" : "衡南县",
"DisSort" : null,
"Id" : 1585
},
{
"CityID" : 180,
"DisName" : "衡山县",
"DisSort" : null,
"Id" : 1586
},
{
"CityID" : 180,
"DisName" : "衡东县",
"DisSort" : null,
"Id" : 1587
},
{
"CityID" : 180,
"DisName" : "祁东县",
"DisSort" : null,
"Id" : 1588
},
{
"CityID" : 180,
"DisName" : "耒阳市",
"DisSort" : null,
"Id" : 1589
},
{
"CityID" : 180,
"DisName" : "常宁市",
"DisSort" : null,
"Id" : 1590
},
{
"CityID" : 181,
"DisName" : "北湖区",
"DisSort" : null,
"Id" : 1591
},
{
"CityID" : 181,
"DisName" : "苏仙区",
"DisSort" : null,
"Id" : 1592
},
{
"CityID" : 181,
"DisName" : "桂阳县",
"DisSort" : null,
"Id" : 1593
},
{
"CityID" : 181,
"DisName" : "宜章县",
"DisSort" : null,
"Id" : 1594
},
{
"CityID" : 181,
"DisName" : "永兴县",
"DisSort" : null,
"Id" : 1595
},
{
"CityID" : 181,
"DisName" : "嘉禾县",
"DisSort" : null,
"Id" : 1596
},
{
"CityID" : 181,
"DisName" : "临武县",
"DisSort" : null,
"Id" : 1597
},
{
"CityID" : 181,
"DisName" : "汝城县",
"DisSort" : null,
"Id" : 1598
},
{
"CityID" : 181,
"DisName" : "桂东县",
"DisSort" : null,
"Id" : 1599
},
{
"CityID" : 181,
"DisName" : "安仁县",
"DisSort" : null,
"Id" : 1600
},
{
"CityID" : 181,
"DisName" : "资兴市",
"DisSort" : null,
"Id" : 1601
},
{
"CityID" : 182,
"DisName" : "武陵区",
"DisSort" : null,
"Id" : 1602
},
{
"CityID" : 182,
"DisName" : "鼎城区",
"DisSort" : null,
"Id" : 1603
},
{
"CityID" : 182,
"DisName" : "安乡县",
"DisSort" : null,
"Id" : 1604
},
{
"CityID" : 182,
"DisName" : "汉寿县",
"DisSort" : null,
"Id" : 1605
},
{
"CityID" : 182,
"DisName" : "澧县",
"DisSort" : null,
"Id" : 1606
},
{
"CityID" : 182,
"DisName" : "临澧县",
"DisSort" : null,
"Id" : 1607
},
{
"CityID" : 182,
"DisName" : "桃源县",
"DisSort" : null,
"Id" : 1608
},
{
"CityID" : 182,
"DisName" : "石门县",
"DisSort" : null,
"Id" : 1609
},
{
"CityID" : 182,
"DisName" : "津市市",
"DisSort" : null,
"Id" : 1610
},
{
"CityID" : 183,
"DisName" : "资阳区",
"DisSort" : null,
"Id" : 1611
},
{
"CityID" : 183,
"DisName" : "赫山区",
"DisSort" : null,
"Id" : 1612
},
{
"CityID" : 183,
"DisName" : "南县",
"DisSort" : null,
"Id" : 1613
},
{
"CityID" : 183,
"DisName" : "桃江县",
"DisSort" : null,
"Id" : 1614
},
{
"CityID" : 183,
"DisName" : "安化县",
"DisSort" : null,
"Id" : 1615
},
{
"CityID" : 183,
"DisName" : "沅江市",
"DisSort" : null,
"Id" : 1616
},
{
"CityID" : 184,
"DisName" : "娄星区",
"DisSort" : null,
"Id" : 1617
},
{
"CityID" : 184,
"DisName" : "双峰县",
"DisSort" : null,
"Id" : 1618
},
{
"CityID" : 184,
"DisName" : "新化县",
"DisSort" : null,
"Id" : 1619
},
{
"CityID" : 184,
"DisName" : "冷水江市",
"DisSort" : null,
"Id" : 1620
},
{
"CityID" : 184,
"DisName" : "涟源市",
"DisSort" : null,
"Id" : 1621
},
{
"CityID" : 185,
"DisName" : "双清区",
"DisSort" : null,
"Id" : 1622
},
{
"CityID" : 185,
"DisName" : "大祥区",
"DisSort" : null,
"Id" : 1623
},
{
"CityID" : 185,
"DisName" : "北塔区",
"DisSort" : null,
"Id" : 1624
},
{
"CityID" : 185,
"DisName" : "邵东县",
"DisSort" : null,
"Id" : 1625
},
{
"CityID" : 185,
"DisName" : "新邵县",
"DisSort" : null,
"Id" : 1626
},
{
"CityID" : 185,
"DisName" : "邵阳县",
"DisSort" : null,
"Id" : 1627
},
{
"CityID" : 185,
"DisName" : "隆回县",
"DisSort" : null,
"Id" : 1628
},
{
"CityID" : 185,
"DisName" : "洞口县",
"DisSort" : null,
"Id" : 1629
},
{
"CityID" : 185,
"DisName" : "绥宁县",
"DisSort" : null,
"Id" : 1630
},
{
"CityID" : 185,
"DisName" : "新宁县",
"DisSort" : null,
"Id" : 1631
},
{
"CityID" : 185,
"DisName" : "城步苗族自治县",
"DisSort" : null,
"Id" : 1632
},
{
"CityID" : 185,
"DisName" : "武冈市",
"DisSort" : null,
"Id" : 1633
},
{
"CityID" : 186,
"DisName" : "吉首市",
"DisSort" : null,
"Id" : 1634
},
{
"CityID" : 186,
"DisName" : "泸溪县",
"DisSort" : null,
"Id" : 1635
},
{
"CityID" : 186,
"DisName" : "凤凰县",
"DisSort" : null,
"Id" : 1636
},
{
"CityID" : 186,
"DisName" : "花垣县",
"DisSort" : null,
"Id" : 1637
},
{
"CityID" : 186,
"DisName" : "保靖县",
"DisSort" : null,
"Id" : 1638
},
{
"CityID" : 186,
"DisName" : "古丈县",
"DisSort" : null,
"Id" : 1639
},
{
"CityID" : 186,
"DisName" : "永顺县",
"DisSort" : null,
"Id" : 1640
},
{
"CityID" : 186,
"DisName" : "龙山县",
"DisSort" : null,
"Id" : 1641
},
{
"CityID" : 187,
"DisName" : "永定区",
"DisSort" : null,
"Id" : 1642
},
{
"CityID" : 187,
"DisName" : "武陵源区",
"DisSort" : null,
"Id" : 1643
},
{
"CityID" : 187,
"DisName" : "慈利县",
"DisSort" : null,
"Id" : 1644
},
{
"CityID" : 187,
"DisName" : "桑植县",
"DisSort" : null,
"Id" : 1645
},
{
"CityID" : 188,
"DisName" : "鹤城区",
"DisSort" : null,
"Id" : 1646
},
{
"CityID" : 188,
"DisName" : "中方县",
"DisSort" : null,
"Id" : 1647
},
{
"CityID" : 188,
"DisName" : "沅陵县",
"DisSort" : null,
"Id" : 1648
},
{
"CityID" : 188,
"DisName" : "辰溪县",
"DisSort" : null,
"Id" : 1649
},
{
"CityID" : 188,
"DisName" : "溆浦县",
"DisSort" : null,
"Id" : 1650
},
{
"CityID" : 188,
"DisName" : "会同县",
"DisSort" : null,
"Id" : 1651
},
{
"CityID" : 188,
"DisName" : "麻阳苗族自治县",
"DisSort" : null,
"Id" : 1652
},
{
"CityID" : 188,
"DisName" : "新晃侗族自治县",
"DisSort" : null,
"Id" : 1653
},
{
"CityID" : 188,
"DisName" : "芷江侗族自治县",
"DisSort" : null,
"Id" : 1654
},
{
"CityID" : 188,
"DisName" : "靖州苗族侗族自治县",
"DisSort" : null,
"Id" : 1655
},
{
"CityID" : 188,
"DisName" : "通道侗族自治县",
"DisSort" : null,
"Id" : 1656
},
{
"CityID" : 188,
"DisName" : "洪江市",
"DisSort" : null,
"Id" : 1657
},
{
"CityID" : 189,
"DisName" : "零陵区",
"DisSort" : null,
"Id" : 1658
},
{
"CityID" : 189,
"DisName" : "冷水滩区",
"DisSort" : null,
"Id" : 1659
},
{
"CityID" : 189,
"DisName" : "祁阳县",
"DisSort" : null,
"Id" : 1660
},
{
"CityID" : 189,
"DisName" : "东安县",
"DisSort" : null,
"Id" : 1661
},
{
"CityID" : 189,
"DisName" : "双牌县",
"DisSort" : null,
"Id" : 1662
},
{
"CityID" : 189,
"DisName" : "道县",
"DisSort" : null,
"Id" : 1663
},
{
"CityID" : 189,
"DisName" : "江永县",
"DisSort" : null,
"Id" : 1664
},
{
"CityID" : 189,
"DisName" : "宁远县",
"DisSort" : null,
"Id" : 1665
},
{
"CityID" : 189,
"DisName" : "蓝山县",
"DisSort" : null,
"Id" : 1666
},
{
"CityID" : 189,
"DisName" : "新田县",
"DisSort" : null,
"Id" : 1667
},
{
"CityID" : 189,
"DisName" : "江华瑶族自治县",
"DisSort" : null,
"Id" : 1668
},
{
"CityID" : 190,
"DisName" : "从化市",
"DisSort" : null,
"Id" : 1669
},
{
"CityID" : 190,
"DisName" : "荔湾区",
"DisSort" : null,
"Id" : 1670
},
{
"CityID" : 190,
"DisName" : "越秀区",
"DisSort" : null,
"Id" : 1671
},
{
"CityID" : 190,
"DisName" : "海珠区",
"DisSort" : null,
"Id" : 1672
},
{
"CityID" : 190,
"DisName" : "天河区",
"DisSort" : null,
"Id" : 1673
},
{
"CityID" : 190,
"DisName" : "白云区",
"DisSort" : null,
"Id" : 1674
},
{
"CityID" : 190,
"DisName" : "花都区",
"DisSort" : null,
"Id" : 1675
},
{
"CityID" : 190,
"DisName" : "黄埔区",
"DisSort" : null,
"Id" : 1676
},
{
"CityID" : 190,
"DisName" : "萝岗区",
"DisSort" : null,
"Id" : 1677
},
{
"CityID" : 190,
"DisName" : "南沙区",
"DisSort" : null,
"Id" : 1678
},
{
"CityID" : 190,
"DisName" : "番禺区",
"DisSort" : null,
"Id" : 1679
},
{
"CityID" : 190,
"DisName" : "增城市",
"DisSort" : null,
"Id" : 1680
},
{
"CityID" : 191,
"DisName" : "海丰县",
"DisSort" : null,
"Id" : 1681
},
{
"CityID" : 191,
"DisName" : "陆河县",
"DisSort" : null,
"Id" : 1682
},
{
"CityID" : 191,
"DisName" : "陆丰市",
"DisSort" : null,
"Id" : 1683
},
{
"CityID" : 192,
"DisName" : "江城区",
"DisSort" : null,
"Id" : 1684
},
{
"CityID" : 192,
"DisName" : "阳西县",
"DisSort" : null,
"Id" : 1685
},
{
"CityID" : 192,
"DisName" : "阳东县",
"DisSort" : null,
"Id" : 1686
},
{
"CityID" : 192,
"DisName" : "阳春市",
"DisSort" : null,
"Id" : 1687
},
{
"CityID" : 193,
"DisName" : "榕城区",
"DisSort" : null,
"Id" : 1688
},
{
"CityID" : 193,
"DisName" : "揭东县",
"DisSort" : null,
"Id" : 1689
},
{
"CityID" : 193,
"DisName" : "揭西县",
"DisSort" : null,
"Id" : 1690
},
{
"CityID" : 193,
"DisName" : "惠来县",
"DisSort" : null,
"Id" : 1691
},
{
"CityID" : 193,
"DisName" : "普宁市",
"DisSort" : null,
"Id" : 1692
},
{
"CityID" : 194,
"DisName" : "茂南区",
"DisSort" : null,
"Id" : 1693
},
{
"CityID" : 194,
"DisName" : "茂港区",
"DisSort" : null,
"Id" : 1694
},
{
"CityID" : 194,
"DisName" : "电白县",
"DisSort" : null,
"Id" : 1695
},
{
"CityID" : 194,
"DisName" : "高州市",
"DisSort" : null,
"Id" : 1696
},
{
"CityID" : 194,
"DisName" : "化州市",
"DisSort" : null,
"Id" : 1697
},
{
"CityID" : 194,
"DisName" : "信宜市",
"DisSort" : null,
"Id" : 1698
},
{
"CityID" : 195,
"DisName" : "惠城区",
"DisSort" : null,
"Id" : 1699
},
{
"CityID" : 195,
"DisName" : "惠阳区",
"DisSort" : null,
"Id" : 1700
},
{
"CityID" : 195,
"DisName" : "博罗县",
"DisSort" : null,
"Id" : 1701
},
{
"CityID" : 195,
"DisName" : "惠东县",
"DisSort" : null,
"Id" : 1702
},
{
"CityID" : 195,
"DisName" : "龙门县",
"DisSort" : null,
"Id" : 1703
},
{
"CityID" : 196,
"DisName" : "蓬江区",
"DisSort" : null,
"Id" : 1704
},
{
"CityID" : 196,
"DisName" : "江海区",
"DisSort" : null,
"Id" : 1705
},
{
"CityID" : 196,
"DisName" : "新会区",
"DisSort" : null,
"Id" : 1706
},
{
"CityID" : 196,
"DisName" : "台山市",
"DisSort" : null,
"Id" : 1707
},
{
"CityID" : 196,
"DisName" : "开平市",
"DisSort" : null,
"Id" : 1708
},
{
"CityID" : 196,
"DisName" : "鹤山市",
"DisSort" : null,
"Id" : 1709
},
{
"CityID" : 196,
"DisName" : "恩平市",
"DisSort" : null,
"Id" : 1710
},
{
"CityID" : 197,
"DisName" : "武江区",
"DisSort" : null,
"Id" : 1711
},
{
"CityID" : 197,
"DisName" : "浈江区",
"DisSort" : null,
"Id" : 1712
},
{
"CityID" : 197,
"DisName" : "曲江区",
"DisSort" : null,
"Id" : 1713
},
{
"CityID" : 197,
"DisName" : "始兴县",
"DisSort" : null,
"Id" : 1714
},
{
"CityID" : 197,
"DisName" : "仁化县",
"DisSort" : null,
"Id" : 1715
},
{
"CityID" : 197,
"DisName" : "翁源县",
"DisSort" : null,
"Id" : 1716
},
{
"CityID" : 197,
"DisName" : "乳源瑶族自治县",
"DisSort" : null,
"Id" : 1717
},
{
"CityID" : 197,
"DisName" : "新丰县",
"DisSort" : null,
"Id" : 1718
},
{
"CityID" : 197,
"DisName" : "乐昌市",
"DisSort" : null,
"Id" : 1719
},
{
"CityID" : 197,
"DisName" : "南雄市",
"DisSort" : null,
"Id" : 1720
},
{
"CityID" : 198,
"DisName" : "梅江区",
"DisSort" : null,
"Id" : 1721
},
{
"CityID" : 198,
"DisName" : "梅县",
"DisSort" : null,
"Id" : 1722
},
{
"CityID" : 198,
"DisName" : "大埔县",
"DisSort" : null,
"Id" : 1723
},
{
"CityID" : 198,
"DisName" : "丰顺县",
"DisSort" : null,
"Id" : 1724
},
{
"CityID" : 198,
"DisName" : "五华县",
"DisSort" : null,
"Id" : 1725
},
{
"CityID" : 198,
"DisName" : "平远县",
"DisSort" : null,
"Id" : 1726
},
{
"CityID" : 198,
"DisName" : "蕉岭县",
"DisSort" : null,
"Id" : 1727
},
{
"CityID" : 198,
"DisName" : "兴宁市",
"DisSort" : null,
"Id" : 1728
},
{
"CityID" : 199,
"DisName" : "龙湖区",
"DisSort" : null,
"Id" : 1729
},
{
"CityID" : 199,
"DisName" : "金平区",
"DisSort" : null,
"Id" : 1730
},
{
"CityID" : 199,
"DisName" : "濠江区",
"DisSort" : null,
"Id" : 1731
},
{
"CityID" : 199,
"DisName" : "潮阳区",
"DisSort" : null,
"Id" : 1732
},
{
"CityID" : 199,
"DisName" : "潮南区",
"DisSort" : null,
"Id" : 1733
},
{
"CityID" : 199,
"DisName" : "澄海区",
"DisSort" : null,
"Id" : 1734
},
{
"CityID" : 199,
"DisName" : "南澳县",
"DisSort" : null,
"Id" : 1735
},
{
"CityID" : 200,
"DisName" : "罗湖区",
"DisSort" : null,
"Id" : 1736
},
{
"CityID" : 200,
"DisName" : "福田区",
"DisSort" : null,
"Id" : 1737
},
{
"CityID" : 200,
"DisName" : "南山区",
"DisSort" : null,
"Id" : 1738
},
{
"CityID" : 200,
"DisName" : "宝安区",
"DisSort" : null,
"Id" : 1739
},
{
"CityID" : 200,
"DisName" : "龙岗区",
"DisSort" : null,
"Id" : 1740
},
{
"CityID" : 200,
"DisName" : "盐田区",
"DisSort" : null,
"Id" : 1741
},
{
"CityID" : 201,
"DisName" : "香洲区",
"DisSort" : null,
"Id" : 1742
},
{
"CityID" : 201,
"DisName" : "斗门区",
"DisSort" : null,
"Id" : 1743
},
{
"CityID" : 201,
"DisName" : "金湾区",
"DisSort" : null,
"Id" : 1744
},
{
"CityID" : 202,
"DisName" : "禅城区",
"DisSort" : null,
"Id" : 1745
},
{
"CityID" : 202,
"DisName" : "南海区",
"DisSort" : null,
"Id" : 1746
},
{
"CityID" : 202,
"DisName" : "顺德区",
"DisSort" : null,
"Id" : 1747
},
{
"CityID" : 202,
"DisName" : "三水区",
"DisSort" : null,
"Id" : 1748
},
{
"CityID" : 202,
"DisName" : "高明区",
"DisSort" : null,
"Id" : 1749
},
{
"CityID" : 203,
"DisName" : "端州区",
"DisSort" : null,
"Id" : 1750
},
{
"CityID" : 203,
"DisName" : "鼎湖区",
"DisSort" : null,
"Id" : 1751
},
{
"CityID" : 203,
"DisName" : "广宁县",
"DisSort" : null,
"Id" : 1752
},
{
"CityID" : 203,
"DisName" : "怀集县",
"DisSort" : null,
"Id" : 1753
},
{
"CityID" : 203,
"DisName" : "封开县",
"DisSort" : null,
"Id" : 1754
},
{
"CityID" : 203,
"DisName" : "德庆县",
"DisSort" : null,
"Id" : 1755
},
{
"CityID" : 203,
"DisName" : "高要市",
"DisSort" : null,
"Id" : 1756
},
{
"CityID" : 203,
"DisName" : "四会市",
"DisSort" : null,
"Id" : 1757
},
{
"CityID" : 204,
"DisName" : "赤坎区",
"DisSort" : null,
"Id" : 1758
},
{
"CityID" : 204,
"DisName" : "霞山区",
"DisSort" : null,
"Id" : 1759
},
{
"CityID" : 204,
"DisName" : "坡头区",
"DisSort" : null,
"Id" : 1760
},
{
"CityID" : 204,
"DisName" : "麻章区",
"DisSort" : null,
"Id" : 1761
},
{
"CityID" : 204,
"DisName" : "遂溪县",
"DisSort" : null,
"Id" : 1762
},
{
"CityID" : 204,
"DisName" : "徐闻县",
"DisSort" : null,
"Id" : 1763
},
{
"CityID" : 204,
"DisName" : "廉江市",
"DisSort" : null,
"Id" : 1764
},
{
"CityID" : 204,
"DisName" : "雷州市",
"DisSort" : null,
"Id" : 1765
},
{
"CityID" : 204,
"DisName" : "吴川市",
"DisSort" : null,
"Id" : 1766
},
{
"CityID" : 206,
"DisName" : "源城区",
"DisSort" : null,
"Id" : 1767
},
{
"CityID" : 206,
"DisName" : "紫金县",
"DisSort" : null,
"Id" : 1768
},
{
"CityID" : 206,
"DisName" : "龙川县",
"DisSort" : null,
"Id" : 1769
},
{
"CityID" : 206,
"DisName" : "连平县",
"DisSort" : null,
"Id" : 1770
},
{
"CityID" : 206,
"DisName" : "和平县",
"DisSort" : null,
"Id" : 1771
},
{
"CityID" : 206,
"DisName" : "东源县",
"DisSort" : null,
"Id" : 1772
},
{
"CityID" : 207,
"DisName" : "清城区",
"DisSort" : null,
"Id" : 1773
},
{
"CityID" : 207,
"DisName" : "佛冈县",
"DisSort" : null,
"Id" : 1774
},
{
"CityID" : 207,
"DisName" : "阳山县",
"DisSort" : null,
"Id" : 1775
},
{
"CityID" : 207,
"DisName" : "连山壮族瑶族自治县",
"DisSort" : null,
"Id" : 1776
},
{
"CityID" : 207,
"DisName" : "连南瑶族自治县",
"DisSort" : null,
"Id" : 1777
},
{
"CityID" : 207,
"DisName" : "清新县",
"DisSort" : null,
"Id" : 1778
},
{
"CityID" : 207,
"DisName" : "英德市",
"DisSort" : null,
"Id" : 1779
},
{
"CityID" : 207,
"DisName" : "连州市",
"DisSort" : null,
"Id" : 1780
},
{
"CityID" : 208,
"DisName" : "云城区",
"DisSort" : null,
"Id" : 1781
},
{
"CityID" : 208,
"DisName" : "新兴县",
"DisSort" : null,
"Id" : 1782
},
{
"CityID" : 208,
"DisName" : "郁南县",
"DisSort" : null,
"Id" : 1783
},
{
"CityID" : 208,
"DisName" : "云安县",
"DisSort" : null,
"Id" : 1784
},
{
"CityID" : 208,
"DisName" : "罗定市",
"DisSort" : null,
"Id" : 1785
},
{
"CityID" : 209,
"DisName" : "湘桥区",
"DisSort" : null,
"Id" : 1786
},
{
"CityID" : 209,
"DisName" : "潮安县",
"DisSort" : null,
"Id" : 1787
},
{
"CityID" : 209,
"DisName" : "饶平县",
"DisSort" : null,
"Id" : 1788
},
{
"CityID" : 211,
"DisName" : "城关区",
"DisSort" : null,
"Id" : 1789
},
{
"CityID" : 211,
"DisName" : "七里河区",
"DisSort" : null,
"Id" : 1790
},
{
"CityID" : 211,
"DisName" : "西固区",
"DisSort" : null,
"Id" : 1791
},
{
"CityID" : 211,
"DisName" : "安宁区",
"DisSort" : null,
"Id" : 1792
},
{
"CityID" : 211,
"DisName" : "红古区",
"DisSort" : null,
"Id" : 1793
},
{
"CityID" : 211,
"DisName" : "永登县",
"DisSort" : null,
"Id" : 1794
},
{
"CityID" : 211,
"DisName" : "皋兰县",
"DisSort" : null,
"Id" : 1795
},
{
"CityID" : 211,
"DisName" : "榆中县",
"DisSort" : null,
"Id" : 1796
},
{
"CityID" : 212,
"DisName" : "金川区",
"DisSort" : null,
"Id" : 1797
},
{
"CityID" : 212,
"DisName" : "永昌县",
"DisSort" : null,
"Id" : 1798
},
{
"CityID" : 213,
"DisName" : "白银区",
"DisSort" : null,
"Id" : 1799
},
{
"CityID" : 213,
"DisName" : "平川区",
"DisSort" : null,
"Id" : 1800
},
{
"CityID" : 213,
"DisName" : "靖远县",
"DisSort" : null,
"Id" : 1801
},
{
"CityID" : 213,
"DisName" : "会宁县",
"DisSort" : null,
"Id" : 1802
},
{
"CityID" : 213,
"DisName" : "景泰县",
"DisSort" : null,
"Id" : 1803
},
{
"CityID" : 214,
"DisName" : "秦州区",
"DisSort" : null,
"Id" : 1804
},
{
"CityID" : 214,
"DisName" : "麦积区",
"DisSort" : null,
"Id" : 1805
},
{
"CityID" : 214,
"DisName" : "清水县",
"DisSort" : null,
"Id" : 1806
},
{
"CityID" : 214,
"DisName" : "秦安县",
"DisSort" : null,
"Id" : 1807
},
{
"CityID" : 214,
"DisName" : "甘谷县",
"DisSort" : null,
"Id" : 1808
},
{
"CityID" : 214,
"DisName" : "武山县",
"DisSort" : null,
"Id" : 1809
},
{
"CityID" : 214,
"DisName" : "张家川回族自治县",
"DisSort" : null,
"Id" : 1810
},
{
"CityID" : 216,
"DisName" : "凉州区",
"DisSort" : null,
"Id" : 1811
},
{
"CityID" : 216,
"DisName" : "民勤县",
"DisSort" : null,
"Id" : 1812
},
{
"CityID" : 216,
"DisName" : "古浪县",
"DisSort" : null,
"Id" : 1813
},
{
"CityID" : 216,
"DisName" : "天祝藏族自治县",
"DisSort" : null,
"Id" : 1814
},
{
"CityID" : 217,
"DisName" : "甘州区",
"DisSort" : null,
"Id" : 1815
},
{
"CityID" : 217,
"DisName" : "肃南裕固族自治县",
"DisSort" : null,
"Id" : 1816
},
{
"CityID" : 217,
"DisName" : "民乐县",
"DisSort" : null,
"Id" : 1817
},
{
"CityID" : 217,
"DisName" : "临泽县",
"DisSort" : null,
"Id" : 1818
},
{
"CityID" : 217,
"DisName" : "高台县",
"DisSort" : null,
"Id" : 1819
},
{
"CityID" : 217,
"DisName" : "山丹县",
"DisSort" : null,
"Id" : 1820
},
{
"CityID" : 218,
"DisName" : "崆峒区",
"DisSort" : null,
"Id" : 1821
},
{
"CityID" : 218,
"DisName" : "泾川县",
"DisSort" : null,
"Id" : 1822
},
{
"CityID" : 218,
"DisName" : "灵台县",
"DisSort" : null,
"Id" : 1823
},
{
"CityID" : 218,
"DisName" : "崇信县",
"DisSort" : null,
"Id" : 1824
},
{
"CityID" : 218,
"DisName" : "华亭县",
"DisSort" : null,
"Id" : 1825
},
{
"CityID" : 218,
"DisName" : "庄浪县",
"DisSort" : null,
"Id" : 1826
},
{
"CityID" : 218,
"DisName" : "静宁县",
"DisSort" : null,
"Id" : 1827
},
{
"CityID" : 219,
"DisName" : "肃州区",
"DisSort" : null,
"Id" : 1828
},
{
"CityID" : 219,
"DisName" : "金塔县",
"DisSort" : null,
"Id" : 1829
},
{
"CityID" : 219,
"DisName" : "瓜州县",
"DisSort" : null,
"Id" : 1830
},
{
"CityID" : 219,
"DisName" : "肃北蒙古族自治县",
"DisSort" : null,
"Id" : 1831
},
{
"CityID" : 219,
"DisName" : "阿克塞哈萨克族自治县",
"DisSort" : null,
"Id" : 1832
},
{
"CityID" : 219,
"DisName" : "玉门市",
"DisSort" : null,
"Id" : 1833
},
{
"CityID" : 219,
"DisName" : "敦煌市",
"DisSort" : null,
"Id" : 1834
},
{
"CityID" : 220,
"DisName" : "西峰区",
"DisSort" : null,
"Id" : 1835
},
{
"CityID" : 220,
"DisName" : "庆城县",
"DisSort" : null,
"Id" : 1836
},
{
"CityID" : 220,
"DisName" : "环县",
"DisSort" : null,
"Id" : 1837
},
{
"CityID" : 220,
"DisName" : "华池县",
"DisSort" : null,
"Id" : 1838
},
{
"CityID" : 220,
"DisName" : "合水县",
"DisSort" : null,
"Id" : 1839
},
{
"CityID" : 220,
"DisName" : "正宁县",
"DisSort" : null,
"Id" : 1840
},
{
"CityID" : 220,
"DisName" : "宁县",
"DisSort" : null,
"Id" : 1841
},
{
"CityID" : 220,
"DisName" : "镇原县",
"DisSort" : null,
"Id" : 1842
},
{
"CityID" : 221,
"DisName" : "安定区",
"DisSort" : null,
"Id" : 1843
},
{
"CityID" : 221,
"DisName" : "通渭县",
"DisSort" : null,
"Id" : 1844
},
{
"CityID" : 221,
"DisName" : "陇西县",
"DisSort" : null,
"Id" : 1845
},
{
"CityID" : 221,
"DisName" : "渭源县",
"DisSort" : null,
"Id" : 1846
},
{
"CityID" : 221,
"DisName" : "临洮县",
"DisSort" : null,
"Id" : 1847
},
{
"CityID" : 221,
"DisName" : "漳县",
"DisSort" : null,
"Id" : 1848
},
{
"CityID" : 221,
"DisName" : "岷县",
"DisSort" : null,
"Id" : 1849
},
{
"CityID" : 222,
"DisName" : "武都区",
"DisSort" : null,
"Id" : 1850
},
{
"CityID" : 222,
"DisName" : "成县",
"DisSort" : null,
"Id" : 1851
},
{
"CityID" : 222,
"DisName" : "文县",
"DisSort" : null,
"Id" : 1852
},
{
"CityID" : 222,
"DisName" : "宕昌县",
"DisSort" : null,
"Id" : 1853
},
{
"CityID" : 222,
"DisName" : "康县",
"DisSort" : null,
"Id" : 1854
},
{
"CityID" : 222,
"DisName" : "西和县",
"DisSort" : null,
"Id" : 1855
},
{
"CityID" : 222,
"DisName" : "礼县",
"DisSort" : null,
"Id" : 1856
},
{
"CityID" : 222,
"DisName" : "徽县",
"DisSort" : null,
"Id" : 1857
},
{
"CityID" : 222,
"DisName" : "两当县",
"DisSort" : null,
"Id" : 1858
},
{
"CityID" : 223,
"DisName" : "临夏市",
"DisSort" : null,
"Id" : 1859
},
{
"CityID" : 223,
"DisName" : "临夏县",
"DisSort" : null,
"Id" : 1860
},
{
"CityID" : 223,
"DisName" : "康乐县",
"DisSort" : null,
"Id" : 1861
},
{
"CityID" : 223,
"DisName" : "永靖县",
"DisSort" : null,
"Id" : 1862
},
{
"CityID" : 223,
"DisName" : "广河县",
"DisSort" : null,
"Id" : 1863
},
{
"CityID" : 223,
"DisName" : "和政县",
"DisSort" : null,
"Id" : 1864
},
{
"CityID" : 223,
"DisName" : "东乡族自治县",
"DisSort" : null,
"Id" : 1865
},
{
"CityID" : 223,
"DisName" : "积石山保安族东乡族撒拉族自治县",
"DisSort" : null,
"Id" : 1866
},
{
"CityID" : 224,
"DisName" : "合作市",
"DisSort" : null,
"Id" : 1867
},
{
"CityID" : 224,
"DisName" : "临潭县",
"DisSort" : null,
"Id" : 1868
},
{
"CityID" : 224,
"DisName" : "卓尼县",
"DisSort" : null,
"Id" : 1869
},
{
"CityID" : 224,
"DisName" : "舟曲县",
"DisSort" : null,
"Id" : 1870
},
{
"CityID" : 224,
"DisName" : "迭部县",
"DisSort" : null,
"Id" : 1871
},
{
"CityID" : 224,
"DisName" : "玛曲县",
"DisSort" : null,
"Id" : 1872
},
{
"CityID" : 224,
"DisName" : "碌曲县",
"DisSort" : null,
"Id" : 1873
},
{
"CityID" : 224,
"DisName" : "夏河县",
"DisSort" : null,
"Id" : 1874
},
{
"CityID" : 225,
"DisName" : "锦江区",
"DisSort" : null,
"Id" : 1875
},
{
"CityID" : 225,
"DisName" : "青羊区",
"DisSort" : null,
"Id" : 1876
},
{
"CityID" : 225,
"DisName" : "金牛区",
"DisSort" : null,
"Id" : 1877
},
{
"CityID" : 225,
"DisName" : "武侯区",
"DisSort" : null,
"Id" : 1878
},
{
"CityID" : 225,
"DisName" : "成华区",
"DisSort" : null,
"Id" : 1879
},
{
"CityID" : 225,
"DisName" : "龙泉驿区",
"DisSort" : null,
"Id" : 1880
},
{
"CityID" : 225,
"DisName" : "青白江区",
"DisSort" : null,
"Id" : 1881
},
{
"CityID" : 225,
"DisName" : "新都区",
"DisSort" : null,
"Id" : 1882
},
{
"CityID" : 225,
"DisName" : "温江区",
"DisSort" : null,
"Id" : 1883
},
{
"CityID" : 225,
"DisName" : "金堂县",
"DisSort" : null,
"Id" : 1884
},
{
"CityID" : 225,
"DisName" : "双流县",
"DisSort" : null,
"Id" : 1885
},
{
"CityID" : 225,
"DisName" : "郫县",
"DisSort" : null,
"Id" : 1886
},
{
"CityID" : 225,
"DisName" : "大邑县",
"DisSort" : null,
"Id" : 1887
},
{
"CityID" : 225,
"DisName" : "蒲江县",
"DisSort" : null,
"Id" : 1888
},
{
"CityID" : 225,
"DisName" : "新津县",
"DisSort" : null,
"Id" : 1889
},
{
"CityID" : 225,
"DisName" : "都江堰市",
"DisSort" : null,
"Id" : 1890
},
{
"CityID" : 225,
"DisName" : "彭州市",
"DisSort" : null,
"Id" : 1891
},
{
"CityID" : 225,
"DisName" : "邛崃市",
"DisSort" : null,
"Id" : 1892
},
{
"CityID" : 225,
"DisName" : "崇州市",
"DisSort" : null,
"Id" : 1893
},
{
"CityID" : 226,
"DisName" : "东区",
"DisSort" : null,
"Id" : 1894
},
{
"CityID" : 226,
"DisName" : "西区",
"DisSort" : null,
"Id" : 1895
},
{
"CityID" : 226,
"DisName" : "仁和区",
"DisSort" : null,
"Id" : 1896
},
{
"CityID" : 226,
"DisName" : "米易县",
"DisSort" : null,
"Id" : 1897
},
{
"CityID" : 226,
"DisName" : "盐边县",
"DisSort" : null,
"Id" : 1898
},
{
"CityID" : 227,
"DisName" : "自流井区",
"DisSort" : null,
"Id" : 1899
},
{
"CityID" : 227,
"DisName" : "贡井区",
"DisSort" : null,
"Id" : 1900
},
{
"CityID" : 227,
"DisName" : "大安区",
"DisSort" : null,
"Id" : 1901
},
{
"CityID" : 227,
"DisName" : "沿滩区",
"DisSort" : null,
"Id" : 1902
},
{
"CityID" : 227,
"DisName" : "荣县",
"DisSort" : null,
"Id" : 1903
},
{
"CityID" : 227,
"DisName" : "富顺县",
"DisSort" : null,
"Id" : 1904
},
{
"CityID" : 228,
"DisName" : "涪城区",
"DisSort" : null,
"Id" : 1905
},
{
"CityID" : 228,
"DisName" : "游仙区",
"DisSort" : null,
"Id" : 1906
},
{
"CityID" : 228,
"DisName" : "三台县",
"DisSort" : null,
"Id" : 1907
},
{
"CityID" : 228,
"DisName" : "盐亭县",
"DisSort" : null,
"Id" : 1908
},
{
"CityID" : 228,
"DisName" : "安县",
"DisSort" : null,
"Id" : 1909
},
{
"CityID" : 228,
"DisName" : "梓潼县",
"DisSort" : null,
"Id" : 1910
},
{
"CityID" : 228,
"DisName" : "北川羌族自治县",
"DisSort" : null,
"Id" : 1911
},
{
"CityID" : 228,
"DisName" : "平武县",
"DisSort" : null,
"Id" : 1912
},
{
"CityID" : 228,
"DisName" : "江油市",
"DisSort" : null,
"Id" : 1913
},
{
"CityID" : 229,
"DisName" : "顺庆区",
"DisSort" : null,
"Id" : 1914
},
{
"CityID" : 229,
"DisName" : "高坪区",
"DisSort" : null,
"Id" : 1915
},
{
"CityID" : 229,
"DisName" : "嘉陵区",
"DisSort" : null,
"Id" : 1916
},
{
"CityID" : 229,
"DisName" : "南部县",
"DisSort" : null,
"Id" : 1917
},
{
"CityID" : 229,
"DisName" : "营山县",
"DisSort" : null,
"Id" : 1918
},
{
"CityID" : 229,
"DisName" : "蓬安县",
"DisSort" : null,
"Id" : 1919
},
{
"CityID" : 229,
"DisName" : "仪陇县",
"DisSort" : null,
"Id" : 1920
},
{
"CityID" : 229,
"DisName" : "西充县",
"DisSort" : null,
"Id" : 1921
},
{
"CityID" : 229,
"DisName" : "阆中市",
"DisSort" : null,
"Id" : 1922
},
{
"CityID" : 230,
"DisName" : "通川区",
"DisSort" : null,
"Id" : 1923
},
{
"CityID" : 230,
"DisName" : "达县",
"DisSort" : null,
"Id" : 1924
},
{
"CityID" : 230,
"DisName" : "宣汉县",
"DisSort" : null,
"Id" : 1925
},
{
"CityID" : 230,
"DisName" : "开江县",
"DisSort" : null,
"Id" : 1926
},
{
"CityID" : 230,
"DisName" : "大竹县",
"DisSort" : null,
"Id" : 1927
},
{
"CityID" : 230,
"DisName" : "渠县",
"DisSort" : null,
"Id" : 1928
},
{
"CityID" : 230,
"DisName" : "万源市",
"DisSort" : null,
"Id" : 1929
},
{
"CityID" : 231,
"DisName" : "船山区",
"DisSort" : null,
"Id" : 1930
},
{
"CityID" : 231,
"DisName" : "安居区",
"DisSort" : null,
"Id" : 1931
},
{
"CityID" : 231,
"DisName" : "蓬溪县",
"DisSort" : null,
"Id" : 1932
},
{
"CityID" : 231,
"DisName" : "射洪县",
"DisSort" : null,
"Id" : 1933
},
{
"CityID" : 231,
"DisName" : "大英县",
"DisSort" : null,
"Id" : 1934
},
{
"CityID" : 232,
"DisName" : "广安区",
"DisSort" : null,
"Id" : 1935
},
{
"CityID" : 232,
"DisName" : "岳池县",
"DisSort" : null,
"Id" : 1936
},
{
"CityID" : 232,
"DisName" : "武胜县",
"DisSort" : null,
"Id" : 1937
},
{
"CityID" : 232,
"DisName" : "邻水县",
"DisSort" : null,
"Id" : 1938
},
{
"CityID" : 232,
"DisName" : "华蓥市",
"DisSort" : null,
"Id" : 1939
},
{
"CityID" : 233,
"DisName" : "巴州区",
"DisSort" : null,
"Id" : 1940
},
{
"CityID" : 233,
"DisName" : "通江县",
"DisSort" : null,
"Id" : 1941
},
{
"CityID" : 233,
"DisName" : "南江县",
"DisSort" : null,
"Id" : 1942
},
{
"CityID" : 233,
"DisName" : "平昌县",
"DisSort" : null,
"Id" : 1943
},
{
"CityID" : 234,
"DisName" : "江阳区",
"DisSort" : null,
"Id" : 1944
},
{
"CityID" : 234,
"DisName" : "纳溪区",
"DisSort" : null,
"Id" : 1945
},
{
"CityID" : 234,
"DisName" : "龙马潭区",
"DisSort" : null,
"Id" : 1946
},
{
"CityID" : 234,
"DisName" : "泸县",
"DisSort" : null,
"Id" : 1947
},
{
"CityID" : 234,
"DisName" : "合江县",
"DisSort" : null,
"Id" : 1948
},
{
"CityID" : 234,
"DisName" : "叙永县",
"DisSort" : null,
"Id" : 1949
},
{
"CityID" : 234,
"DisName" : "古蔺县",
"DisSort" : null,
"Id" : 1950
},
{
"CityID" : 235,
"DisName" : "翠屏区",
"DisSort" : null,
"Id" : 1951
},
{
"CityID" : 235,
"DisName" : "宜宾县",
"DisSort" : null,
"Id" : 1952
},
{
"CityID" : 235,
"DisName" : "南溪县",
"DisSort" : null,
"Id" : 1953
},
{
"CityID" : 235,
"DisName" : "江安县",
"DisSort" : null,
"Id" : 1954
},
{
"CityID" : 235,
"DisName" : "长宁县",
"DisSort" : null,
"Id" : 1955
},
{
"CityID" : 235,
"DisName" : "高县",
"DisSort" : null,
"Id" : 1956
},
{
"CityID" : 235,
"DisName" : "珙县",
"DisSort" : null,
"Id" : 1957
},
{
"CityID" : 235,
"DisName" : "筠连县",
"DisSort" : null,
"Id" : 1958
},
{
"CityID" : 235,
"DisName" : "兴文县",
"DisSort" : null,
"Id" : 1959
},
{
"CityID" : 235,
"DisName" : "屏山县",
"DisSort" : null,
"Id" : 1960
},
{
"CityID" : 236,
"DisName" : "雁江区",
"DisSort" : null,
"Id" : 1961
},
{
"CityID" : 236,
"DisName" : "安岳县",
"DisSort" : null,
"Id" : 1962
},
{
"CityID" : 236,
"DisName" : "乐至县",
"DisSort" : null,
"Id" : 1963
},
{
"CityID" : 236,
"DisName" : "简阳市",
"DisSort" : null,
"Id" : 1964
},
{
"CityID" : 237,
"DisName" : "市中区",
"DisSort" : null,
"Id" : 1965
},
{
"CityID" : 237,
"DisName" : "东兴区",
"DisSort" : null,
"Id" : 1966
},
{
"CityID" : 237,
"DisName" : "威远县",
"DisSort" : null,
"Id" : 1967
},
{
"CityID" : 237,
"DisName" : "资中县",
"DisSort" : null,
"Id" : 1968
},
{
"CityID" : 237,
"DisName" : "隆昌县",
"DisSort" : null,
"Id" : 1969
},
{
"CityID" : 238,
"DisName" : "市中区",
"DisSort" : null,
"Id" : 1970
},
{
"CityID" : 238,
"DisName" : "沙湾区",
"DisSort" : null,
"Id" : 1971
},
{
"CityID" : 238,
"DisName" : "五通桥区",
"DisSort" : null,
"Id" : 1972
},
{
"CityID" : 238,
"DisName" : "金口河区",
"DisSort" : null,
"Id" : 1973
},
{
"CityID" : 238,
"DisName" : "犍为县",
"DisSort" : null,
"Id" : 1974
},
{
"CityID" : 238,
"DisName" : "井研县",
"DisSort" : null,
"Id" : 1975
},
{
"CityID" : 238,
"DisName" : "夹江县",
"DisSort" : null,
"Id" : 1976
},
{
"CityID" : 238,
"DisName" : "沐川县",
"DisSort" : null,
"Id" : 1977
},
{
"CityID" : 238,
"DisName" : "峨边彝族自治县",
"DisSort" : null,
"Id" : 1978
},
{
"CityID" : 238,
"DisName" : "马边彝族自治县",
"DisSort" : null,
"Id" : 1979
},
{
"CityID" : 238,
"DisName" : "峨眉山市",
"DisSort" : null,
"Id" : 1980
},
{
"CityID" : 239,
"DisName" : "东坡区",
"DisSort" : null,
"Id" : 1981
},
{
"CityID" : 239,
"DisName" : "仁寿县",
"DisSort" : null,
"Id" : 1982
},
{
"CityID" : 239,
"DisName" : "彭山县",
"DisSort" : null,
"Id" : 1983
},
{
"CityID" : 239,
"DisName" : "洪雅县",
"DisSort" : null,
"Id" : 1984
},
{
"CityID" : 239,
"DisName" : "丹棱县",
"DisSort" : null,
"Id" : 1985
},
{
"CityID" : 239,
"DisName" : "青神县",
"DisSort" : null,
"Id" : 1986
},
{
"CityID" : 240,
"DisName" : "西昌市",
"DisSort" : null,
"Id" : 1987
},
{
"CityID" : 240,
"DisName" : "木里藏族自治县",
"DisSort" : null,
"Id" : 1988
},
{
"CityID" : 240,
"DisName" : "盐源县",
"DisSort" : null,
"Id" : 1989
},
{
"CityID" : 240,
"DisName" : "德昌县",
"DisSort" : null,
"Id" : 1990
},
{
"CityID" : 240,
"DisName" : "会理县",
"DisSort" : null,
"Id" : 1991
},
{
"CityID" : 240,
"DisName" : "会东县",
"DisSort" : null,
"Id" : 1992
},
{
"CityID" : 240,
"DisName" : "宁南县",
"DisSort" : null,
"Id" : 1993
},
{
"CityID" : 240,
"DisName" : "普格县",
"DisSort" : null,
"Id" : 1994
},
{
"CityID" : 240,
"DisName" : "布拖县",
"DisSort" : null,
"Id" : 1995
},
{
"CityID" : 240,
"DisName" : "金阳县",
"DisSort" : null,
"Id" : 1996
},
{
"CityID" : 240,
"DisName" : "昭觉县",
"DisSort" : null,
"Id" : 1997
},
{
"CityID" : 240,
"DisName" : "喜德县",
"DisSort" : null,
"Id" : 1998
},
{
"CityID" : 240,
"DisName" : "冕宁县",
"DisSort" : null,
"Id" : 1999
},
{
"CityID" : 240,
"DisName" : "越西县",
"DisSort" : null,
"Id" : 2000
},
{
"CityID" : 240,
"DisName" : "甘洛县",
"DisSort" : null,
"Id" : 2001
},
{
"CityID" : 240,
"DisName" : "美姑县",
"DisSort" : null,
"Id" : 2002
},
{
"CityID" : 240,
"DisName" : "雷波县",
"DisSort" : null,
"Id" : 2003
},
{
"CityID" : 241,
"DisName" : "雨城区",
"DisSort" : null,
"Id" : 2004
},
{
"CityID" : 241,
"DisName" : "名山县",
"DisSort" : null,
"Id" : 2005
},
{
"CityID" : 241,
"DisName" : "荥经县",
"DisSort" : null,
"Id" : 2006
},
{
"CityID" : 241,
"DisName" : "汉源县",
"DisSort" : null,
"Id" : 2007
},
{
"CityID" : 241,
"DisName" : "石棉县",
"DisSort" : null,
"Id" : 2008
},
{
"CityID" : 241,
"DisName" : "天全县",
"DisSort" : null,
"Id" : 2009
},
{
"CityID" : 241,
"DisName" : "芦山县",
"DisSort" : null,
"Id" : 2010
},
{
"CityID" : 241,
"DisName" : "宝兴县",
"DisSort" : null,
"Id" : 2011
},
{
"CityID" : 242,
"DisName" : "康定县",
"DisSort" : null,
"Id" : 2012
},
{
"CityID" : 242,
"DisName" : "泸定县",
"DisSort" : null,
"Id" : 2013
},
{
"CityID" : 242,
"DisName" : "丹巴县",
"DisSort" : null,
"Id" : 2014
},
{
"CityID" : 242,
"DisName" : "九龙县",
"DisSort" : null,
"Id" : 2015
},
{
"CityID" : 242,
"DisName" : "雅江县",
"DisSort" : null,
"Id" : 2016
},
{
"CityID" : 242,
"DisName" : "道孚县",
"DisSort" : null,
"Id" : 2017
},
{
"CityID" : 242,
"DisName" : "炉霍县",
"DisSort" : null,
"Id" : 2018
},
{
"CityID" : 242,
"DisName" : "甘孜县",
"DisSort" : null,
"Id" : 2019
},
{
"CityID" : 242,
"DisName" : "新龙县",
"DisSort" : null,
"Id" : 2020
},
{
"CityID" : 242,
"DisName" : "德格县",
"DisSort" : null,
"Id" : 2021
},
{
"CityID" : 242,
"DisName" : "白玉县",
"DisSort" : null,
"Id" : 2022
},
{
"CityID" : 242,
"DisName" : "石渠县",
"DisSort" : null,
"Id" : 2023
},
{
"CityID" : 242,
"DisName" : "色达县",
"DisSort" : null,
"Id" : 2024
},
{
"CityID" : 242,
"DisName" : "理塘县",
"DisSort" : null,
"Id" : 2025
},
{
"CityID" : 242,
"DisName" : "巴塘县",
"DisSort" : null,
"Id" : 2026
},
{
"CityID" : 242,
"DisName" : "乡城县",
"DisSort" : null,
"Id" : 2027
},
{
"CityID" : 242,
"DisName" : "稻城县",
"DisSort" : null,
"Id" : 2028
},
{
"CityID" : 242,
"DisName" : "得荣县",
"DisSort" : null,
"Id" : 2029
},
{
"CityID" : 243,
"DisName" : "汶川县",
"DisSort" : null,
"Id" : 2030
},
{
"CityID" : 243,
"DisName" : "理县",
"DisSort" : null,
"Id" : 2031
},
{
"CityID" : 243,
"DisName" : "茂县",
"DisSort" : null,
"Id" : 2032
},
{
"CityID" : 243,
"DisName" : "松潘县",
"DisSort" : null,
"Id" : 2033
},
{
"CityID" : 243,
"DisName" : "九寨沟县",
"DisSort" : null,
"Id" : 2034
},
{
"CityID" : 243,
"DisName" : "金川县",
"DisSort" : null,
"Id" : 2035
},
{
"CityID" : 243,
"DisName" : "小金县",
"DisSort" : null,
"Id" : 2036
},
{
"CityID" : 243,
"DisName" : "黑水县",
"DisSort" : null,
"Id" : 2037
},
{
"CityID" : 243,
"DisName" : "马尔康县",
"DisSort" : null,
"Id" : 2038
},
{
"CityID" : 243,
"DisName" : "壤塘县",
"DisSort" : null,
"Id" : 2039
},
{
"CityID" : 243,
"DisName" : "阿坝县",
"DisSort" : null,
"Id" : 2040
},
{
"CityID" : 243,
"DisName" : "若尔盖县",
"DisSort" : null,
"Id" : 2041
},
{
"CityID" : 243,
"DisName" : "红原县",
"DisSort" : null,
"Id" : 2042
},
{
"CityID" : 244,
"DisName" : "旌阳区",
"DisSort" : null,
"Id" : 2043
},
{
"CityID" : 244,
"DisName" : "中江县",
"DisSort" : null,
"Id" : 2044
},
{
"CityID" : 244,
"DisName" : "罗江县",
"DisSort" : null,
"Id" : 2045
},
{
"CityID" : 244,
"DisName" : "广汉市",
"DisSort" : null,
"Id" : 2046
},
{
"CityID" : 244,
"DisName" : "什邡市",
"DisSort" : null,
"Id" : 2047
},
{
"CityID" : 244,
"DisName" : "绵竹市",
"DisSort" : null,
"Id" : 2048
},
{
"CityID" : 245,
"DisName" : "市中区",
"DisSort" : null,
"Id" : 2049
},
{
"CityID" : 245,
"DisName" : "元坝区",
"DisSort" : null,
"Id" : 2050
},
{
"CityID" : 245,
"DisName" : "朝天区",
"DisSort" : null,
"Id" : 2051
},
{
"CityID" : 245,
"DisName" : "旺苍县",
"DisSort" : null,
"Id" : 2052
},
{
"CityID" : 245,
"DisName" : "青川县",
"DisSort" : null,
"Id" : 2053
},
{
"CityID" : 245,
"DisName" : "剑阁县",
"DisSort" : null,
"Id" : 2054
},
{
"CityID" : 245,
"DisName" : "苍溪县",
"DisSort" : null,
"Id" : 2055
},
{
"CityID" : 246,
"DisName" : "南明区",
"DisSort" : null,
"Id" : 2056
},
{
"CityID" : 246,
"DisName" : "云岩区",
"DisSort" : null,
"Id" : 2057
},
{
"CityID" : 246,
"DisName" : "花溪区",
"DisSort" : null,
"Id" : 2058
},
{
"CityID" : 246,
"DisName" : "乌当区",
"DisSort" : null,
"Id" : 2059
},
{
"CityID" : 246,
"DisName" : "白云区",
"DisSort" : null,
"Id" : 2060
},
{
"CityID" : 246,
"DisName" : "小河区",
"DisSort" : null,
"Id" : 2061
},
{
"CityID" : 246,
"DisName" : "开阳县",
"DisSort" : null,
"Id" : 2062
},
{
"CityID" : 246,
"DisName" : "息烽县",
"DisSort" : null,
"Id" : 2063
},
{
"CityID" : 246,
"DisName" : "修文县",
"DisSort" : null,
"Id" : 2064
},
{
"CityID" : 246,
"DisName" : "清镇市",
"DisSort" : null,
"Id" : 2065
},
{
"CityID" : 247,
"DisName" : "红花岗区",
"DisSort" : null,
"Id" : 2066
},
{
"CityID" : 247,
"DisName" : "汇川区",
"DisSort" : null,
"Id" : 2067
},
{
"CityID" : 247,
"DisName" : "遵义县",
"DisSort" : null,
"Id" : 2068
},
{
"CityID" : 247,
"DisName" : "桐梓县",
"DisSort" : null,
"Id" : 2069
},
{
"CityID" : 247,
"DisName" : "绥阳县",
"DisSort" : null,
"Id" : 2070
},
{
"CityID" : 247,
"DisName" : "正安县",
"DisSort" : null,
"Id" : 2071
},
{
"CityID" : 247,
"DisName" : "道真仡佬族苗族自治县",
"DisSort" : null,
"Id" : 2072
},
{
"CityID" : 247,
"DisName" : "务川仡佬族苗族自治县",
"DisSort" : null,
"Id" : 2073
},
{
"CityID" : 247,
"DisName" : "凤冈县",
"DisSort" : null,
"Id" : 2074
},
{
"CityID" : 247,
"DisName" : "湄潭县",
"DisSort" : null,
"Id" : 2075
},
{
"CityID" : 247,
"DisName" : "余庆县",
"DisSort" : null,
"Id" : 2076
},
{
"CityID" : 247,
"DisName" : "习水县",
"DisSort" : null,
"Id" : 2077
},
{
"CityID" : 247,
"DisName" : "赤水市",
"DisSort" : null,
"Id" : 2078
},
{
"CityID" : 247,
"DisName" : "仁怀市",
"DisSort" : null,
"Id" : 2079
},
{
"CityID" : 248,
"DisName" : "西秀区",
"DisSort" : null,
"Id" : 2080
},
{
"CityID" : 248,
"DisName" : "平坝县",
"DisSort" : null,
"Id" : 2081
},
{
"CityID" : 248,
"DisName" : "普定县",
"DisSort" : null,
"Id" : 2082
},
{
"CityID" : 248,
"DisName" : "镇宁布依族苗族自治县",
"DisSort" : null,
"Id" : 2083
},
{
"CityID" : 248,
"DisName" : "关岭布依族苗族自治县",
"DisSort" : null,
"Id" : 2084
},
{
"CityID" : 248,
"DisName" : "紫云苗族布依族自治县",
"DisSort" : null,
"Id" : 2085
},
{
"CityID" : 249,
"DisName" : "都匀市",
"DisSort" : null,
"Id" : 2086
},
{
"CityID" : 249,
"DisName" : "福泉市",
"DisSort" : null,
"Id" : 2087
},
{
"CityID" : 249,
"DisName" : "荔波县",
"DisSort" : null,
"Id" : 2088
},
{
"CityID" : 249,
"DisName" : "贵定县",
"DisSort" : null,
"Id" : 2089
},
{
"CityID" : 249,
"DisName" : "瓮安县",
"DisSort" : null,
"Id" : 2090
},
{
"CityID" : 249,
"DisName" : "独山县",
"DisSort" : null,
"Id" : 2091
},
{
"CityID" : 249,
"DisName" : "平塘县",
"DisSort" : null,
"Id" : 2092
},
{
"CityID" : 249,
"DisName" : "罗甸县",
"DisSort" : null,
"Id" : 2093
},
{
"CityID" : 249,
"DisName" : "长顺县",
"DisSort" : null,
"Id" : 2094
},
{
"CityID" : 249,
"DisName" : "龙里县",
"DisSort" : null,
"Id" : 2095
},
{
"CityID" : 249,
"DisName" : "惠水县",
"DisSort" : null,
"Id" : 2096
},
{
"CityID" : 249,
"DisName" : "三都水族自治县",
"DisSort" : null,
"Id" : 2097
},
{
"CityID" : 250,
"DisName" : "凯里市",
"DisSort" : null,
"Id" : 2098
},
{
"CityID" : 250,
"DisName" : "黄平县",
"DisSort" : null,
"Id" : 2099
},
{
"CityID" : 250,
"DisName" : "施秉县",
"DisSort" : null,
"Id" : 2100
},
{
"CityID" : 250,
"DisName" : "三穗县",
"DisSort" : null,
"Id" : 2101
},
{
"CityID" : 250,
"DisName" : "镇远县",
"DisSort" : null,
"Id" : 2102
},
{
"CityID" : 250,
"DisName" : "岑巩县",
"DisSort" : null,
"Id" : 2103
},
{
"CityID" : 250,
"DisName" : "天柱县",
"DisSort" : null,
"Id" : 2104
},
{
"CityID" : 250,
"DisName" : "锦屏县",
"DisSort" : null,
"Id" : 2105
},
{
"CityID" : 250,
"DisName" : "剑河县",
"DisSort" : null,
"Id" : 2106
},
{
"CityID" : 250,
"DisName" : "台江县",
"DisSort" : null,
"Id" : 2107
},
{
"CityID" : 250,
"DisName" : "黎平县",
"DisSort" : null,
"Id" : 2108
},
{
"CityID" : 250,
"DisName" : "榕江县",
"DisSort" : null,
"Id" : 2109
},
{
"CityID" : 250,
"DisName" : "从江县",
"DisSort" : null,
"Id" : 2110
},
{
"CityID" : 250,
"DisName" : "雷山县",
"DisSort" : null,
"Id" : 2111
},
{
"CityID" : 250,
"DisName" : "麻江县",
"DisSort" : null,
"Id" : 2112
},
{
"CityID" : 250,
"DisName" : "丹寨县",
"DisSort" : null,
"Id" : 2113
},
{
"CityID" : 251,
"DisName" : "铜仁市",
"DisSort" : null,
"Id" : 2114
},
{
"CityID" : 251,
"DisName" : "江口县",
"DisSort" : null,
"Id" : 2115
},
{
"CityID" : 251,
"DisName" : "玉屏侗族自治县",
"DisSort" : null,
"Id" : 2116
},
{
"CityID" : 251,
"DisName" : "石阡县",
"DisSort" : null,
"Id" : 2117
},
{
"CityID" : 251,
"DisName" : "思南县",
"DisSort" : null,
"Id" : 2118
},
{
"CityID" : 251,
"DisName" : "印江土家族苗族自治县",
"DisSort" : null,
"Id" : 2119
},
{
"CityID" : 251,
"DisName" : "德江县",
"DisSort" : null,
"Id" : 2120
},
{
"CityID" : 251,
"DisName" : "沿河土家族自治县",
"DisSort" : null,
"Id" : 2121
},
{
"CityID" : 251,
"DisName" : "松桃苗族自治县",
"DisSort" : null,
"Id" : 2122
},
{
"CityID" : 251,
"DisName" : "万山特区",
"DisSort" : null,
"Id" : 2123
},
{
"CityID" : 252,
"DisName" : "毕节市",
"DisSort" : null,
"Id" : 2124
},
{
"CityID" : 252,
"DisName" : "大方县",
"DisSort" : null,
"Id" : 2125
},
{
"CityID" : 252,
"DisName" : "黔西县",
"DisSort" : null,
"Id" : 2126
},
{
"CityID" : 252,
"DisName" : "金沙县",
"DisSort" : null,
"Id" : 2127
},
{
"CityID" : 252,
"DisName" : "织金县",
"DisSort" : null,
"Id" : 2128
},
{
"CityID" : 252,
"DisName" : "纳雍县",
"DisSort" : null,
"Id" : 2129
},
{
"CityID" : 252,
"DisName" : "威宁彝族回族苗族自治县",
"DisSort" : null,
"Id" : 2130
},
{
"CityID" : 252,
"DisName" : "赫章县",
"DisSort" : null,
"Id" : 2131
},
{
"CityID" : 253,
"DisName" : "钟山区",
"DisSort" : null,
"Id" : 2132
},
{
"CityID" : 253,
"DisName" : "六枝特区",
"DisSort" : null,
"Id" : 2133
},
{
"CityID" : 253,
"DisName" : "水城县",
"DisSort" : null,
"Id" : 2134
},
{
"CityID" : 253,
"DisName" : "盘县",
"DisSort" : null,
"Id" : 2135
},
{
"CityID" : 254,
"DisName" : "兴义市",
"DisSort" : null,
"Id" : 2136
},
{
"CityID" : 254,
"DisName" : "兴仁县",
"DisSort" : null,
"Id" : 2137
},
{
"CityID" : 254,
"DisName" : "普安县",
"DisSort" : null,
"Id" : 2138
},
{
"CityID" : 254,
"DisName" : "晴隆县",
"DisSort" : null,
"Id" : 2139
},
{
"CityID" : 254,
"DisName" : "贞丰县",
"DisSort" : null,
"Id" : 2140
},
{
"CityID" : 254,
"DisName" : "望谟县",
"DisSort" : null,
"Id" : 2141
},
{
"CityID" : 254,
"DisName" : "册亨县",
"DisSort" : null,
"Id" : 2142
},
{
"CityID" : 254,
"DisName" : "安龙县",
"DisSort" : null,
"Id" : 2143
},
{
"CityID" : 255,
"DisName" : "秀英区",
"DisSort" : null,
"Id" : 2144
},
{
"CityID" : 255,
"DisName" : "龙华区",
"DisSort" : null,
"Id" : 2145
},
{
"CityID" : 255,
"DisName" : "琼山区",
"DisSort" : null,
"Id" : 2146
},
{
"CityID" : 255,
"DisName" : "美兰区",
"DisSort" : null,
"Id" : 2147
},
{
"CityID" : 273,
"DisName" : "景洪市",
"DisSort" : null,
"Id" : 2148
},
{
"CityID" : 273,
"DisName" : "勐海县",
"DisSort" : null,
"Id" : 2149
},
{
"CityID" : 273,
"DisName" : "勐腊县",
"DisSort" : null,
"Id" : 2150
},
{
"CityID" : 274,
"DisName" : "瑞丽市",
"DisSort" : null,
"Id" : 2151
},
{
"CityID" : 274,
"DisName" : "潞西市",
"DisSort" : null,
"Id" : 2152
},
{
"CityID" : 274,
"DisName" : "梁河县",
"DisSort" : null,
"Id" : 2153
},
{
"CityID" : 274,
"DisName" : "盈江县",
"DisSort" : null,
"Id" : 2154
},
{
"CityID" : 274,
"DisName" : "陇川县",
"DisSort" : null,
"Id" : 2155
},
{
"CityID" : 275,
"DisName" : "昭阳区",
"DisSort" : null,
"Id" : 2156
},
{
"CityID" : 275,
"DisName" : "鲁甸县",
"DisSort" : null,
"Id" : 2157
},
{
"CityID" : 275,
"DisName" : "巧家县",
"DisSort" : null,
"Id" : 2158
},
{
"CityID" : 275,
"DisName" : "盐津县",
"DisSort" : null,
"Id" : 2159
},
{
"CityID" : 275,
"DisName" : "大关县",
"DisSort" : null,
"Id" : 2160
},
{
"CityID" : 275,
"DisName" : "永善县",
"DisSort" : null,
"Id" : 2161
},
{
"CityID" : 275,
"DisName" : "绥江县",
"DisSort" : null,
"Id" : 2162
},
{
"CityID" : 275,
"DisName" : "镇雄县",
"DisSort" : null,
"Id" : 2163
},
{
"CityID" : 275,
"DisName" : "彝良县",
"DisSort" : null,
"Id" : 2164
},
{
"CityID" : 275,
"DisName" : "威信县",
"DisSort" : null,
"Id" : 2165
},
{
"CityID" : 275,
"DisName" : "水富县",
"DisSort" : null,
"Id" : 2166
},
{
"CityID" : 276,
"DisName" : "五华区",
"DisSort" : null,
"Id" : 2167
},
{
"CityID" : 276,
"DisName" : "盘龙区",
"DisSort" : null,
"Id" : 2168
},
{
"CityID" : 276,
"DisName" : "官渡区",
"DisSort" : null,
"Id" : 2169
},
{
"CityID" : 276,
"DisName" : "西山区",
"DisSort" : null,
"Id" : 2170
},
{
"CityID" : 276,
"DisName" : "东川区",
"DisSort" : null,
"Id" : 2171
},
{
"CityID" : 276,
"DisName" : "呈贡县",
"DisSort" : null,
"Id" : 2172
},
{
"CityID" : 276,
"DisName" : "晋宁县",
"DisSort" : null,
"Id" : 2173
},
{
"CityID" : 276,
"DisName" : "富民县",
"DisSort" : null,
"Id" : 2174
},
{
"CityID" : 276,
"DisName" : "宜良县",
"DisSort" : null,
"Id" : 2175
},
{
"CityID" : 276,
"DisName" : "石林彝族自治县",
"DisSort" : null,
"Id" : 2176
},
{
"CityID" : 276,
"DisName" : "嵩明县",
"DisSort" : null,
"Id" : 2177
},
{
"CityID" : 276,
"DisName" : "禄劝彝族苗族自治县",
"DisSort" : null,
"Id" : 2178
},
{
"CityID" : 276,
"DisName" : "寻甸回族彝族自治县",
"DisSort" : null,
"Id" : 2179
},
{
"CityID" : 276,
"DisName" : "安宁市",
"DisSort" : null,
"Id" : 2180
},
{
"CityID" : 277,
"DisName" : "大理市",
"DisSort" : null,
"Id" : 2181
},
{
"CityID" : 277,
"DisName" : "漾濞彝族自治县",
"DisSort" : null,
"Id" : 2182
},
{
"CityID" : 277,
"DisName" : "祥云县",
"DisSort" : null,
"Id" : 2183
},
{
"CityID" : 277,
"DisName" : "宾川县",
"DisSort" : null,
"Id" : 2184
},
{
"CityID" : 277,
"DisName" : "弥渡县",
"DisSort" : null,
"Id" : 2185
},
{
"CityID" : 277,
"DisName" : "南涧彝族自治县",
"DisSort" : null,
"Id" : 2186
},
{
"CityID" : 277,
"DisName" : "巍山彝族回族自治县",
"DisSort" : null,
"Id" : 2187
},
{
"CityID" : 277,
"DisName" : "永平县",
"DisSort" : null,
"Id" : 2188
},
{
"CityID" : 277,
"DisName" : "云龙县",
"DisSort" : null,
"Id" : 2189
},
{
"CityID" : 277,
"DisName" : "洱源县",
"DisSort" : null,
"Id" : 2190
},
{
"CityID" : 277,
"DisName" : "剑川县",
"DisSort" : null,
"Id" : 2191
},
{
"CityID" : 277,
"DisName" : "鹤庆县",
"DisSort" : null,
"Id" : 2192
},
{
"CityID" : 278,
"DisName" : "个旧市",
"DisSort" : null,
"Id" : 2193
},
{
"CityID" : 278,
"DisName" : "开远市",
"DisSort" : null,
"Id" : 2194
},
{
"CityID" : 278,
"DisName" : "蒙自县",
"DisSort" : null,
"Id" : 2195
},
{
"CityID" : 278,
"DisName" : "屏边苗族自治县",
"DisSort" : null,
"Id" : 2196
},
{
"CityID" : 278,
"DisName" : "建水县",
"DisSort" : null,
"Id" : 2197
},
{
"CityID" : 278,
"DisName" : "石屏县",
"DisSort" : null,
"Id" : 2198
},
{
"CityID" : 278,
"DisName" : "弥勒县",
"DisSort" : null,
"Id" : 2199
},
{
"CityID" : 278,
"DisName" : "泸西县",
"DisSort" : null,
"Id" : 2200
},
{
"CityID" : 278,
"DisName" : "元阳县",
"DisSort" : null,
"Id" : 2201
},
{
"CityID" : 278,
"DisName" : "红河县",
"DisSort" : null,
"Id" : 2202
},
{
"CityID" : 278,
"DisName" : "金平苗族瑶族傣族自治县",
"DisSort" : null,
"Id" : 2203
},
{
"CityID" : 278,
"DisName" : "绿春县",
"DisSort" : null,
"Id" : 2204
},
{
"CityID" : 278,
"DisName" : "河口瑶族自治县",
"DisSort" : null,
"Id" : 2205
},
{
"CityID" : 279,
"DisName" : "麒麟区",
"DisSort" : null,
"Id" : 2206
},
{
"CityID" : 279,
"DisName" : "马龙县",
"DisSort" : null,
"Id" : 2207
},
{
"CityID" : 279,
"DisName" : "陆良县",
"DisSort" : null,
"Id" : 2208
},
{
"CityID" : 279,
"DisName" : "师宗县",
"DisSort" : null,
"Id" : 2209
},
{
"CityID" : 279,
"DisName" : "罗平县",
"DisSort" : null,
"Id" : 2210
},
{
"CityID" : 279,
"DisName" : "富源县",
"DisSort" : null,
"Id" : 2211
},
{
"CityID" : 279,
"DisName" : "会泽县",
"DisSort" : null,
"Id" : 2212
},
{
"CityID" : 279,
"DisName" : "沾益县",
"DisSort" : null,
"Id" : 2213
},
{
"CityID" : 279,
"DisName" : "宣威市",
"DisSort" : null,
"Id" : 2214
},
{
"CityID" : 280,
"DisName" : "隆阳区",
"DisSort" : null,
"Id" : 2215
},
{
"CityID" : 280,
"DisName" : "施甸县",
"DisSort" : null,
"Id" : 2216
},
{
"CityID" : 280,
"DisName" : "腾冲县",
"DisSort" : null,
"Id" : 2217
},
{
"CityID" : 280,
"DisName" : "龙陵县",
"DisSort" : null,
"Id" : 2218
},
{
"CityID" : 280,
"DisName" : "昌宁县",
"DisSort" : null,
"Id" : 2219
},
{
"CityID" : 281,
"DisName" : "文山县",
"DisSort" : null,
"Id" : 2220
},
{
"CityID" : 281,
"DisName" : "砚山县",
"DisSort" : null,
"Id" : 2221
},
{
"CityID" : 281,
"DisName" : "西畴县",
"DisSort" : null,
"Id" : 2222
},
{
"CityID" : 281,
"DisName" : "麻栗坡县",
"DisSort" : null,
"Id" : 2223
},
{
"CityID" : 281,
"DisName" : "马关县",
"DisSort" : null,
"Id" : 2224
},
{
"CityID" : 281,
"DisName" : "丘北县",
"DisSort" : null,
"Id" : 2225
},
{
"CityID" : 281,
"DisName" : "广南县",
"DisSort" : null,
"Id" : 2226
},
{
"CityID" : 281,
"DisName" : "富宁县",
"DisSort" : null,
"Id" : 2227
},
{
"CityID" : 282,
"DisName" : "红塔区",
"DisSort" : null,
"Id" : 2228
},
{
"CityID" : 282,
"DisName" : "江川县",
"DisSort" : null,
"Id" : 2229
},
{
"CityID" : 282,
"DisName" : "澄江县",
"DisSort" : null,
"Id" : 2230
},
{
"CityID" : 282,
"DisName" : "通海县",
"DisSort" : null,
"Id" : 2231
},
{
"CityID" : 282,
"DisName" : "华宁县",
"DisSort" : null,
"Id" : 2232
},
{
"CityID" : 282,
"DisName" : "易门县",
"DisSort" : null,
"Id" : 2233
},
{
"CityID" : 282,
"DisName" : "峨山彝族自治县",
"DisSort" : null,
"Id" : 2234
},
{
"CityID" : 282,
"DisName" : "新平彝族傣族自治县",
"DisSort" : null,
"Id" : 2235
},
{
"CityID" : 282,
"DisName" : "元江哈尼族彝族傣族自治县",
"DisSort" : null,
"Id" : 2236
},
{
"CityID" : 283,
"DisName" : "楚雄市",
"DisSort" : null,
"Id" : 2237
},
{
"CityID" : 283,
"DisName" : "双柏县",
"DisSort" : null,
"Id" : 2238
},
{
"CityID" : 283,
"DisName" : "牟定县",
"DisSort" : null,
"Id" : 2239
},
{
"CityID" : 283,
"DisName" : "南华县",
"DisSort" : null,
"Id" : 2240
},
{
"CityID" : 283,
"DisName" : "姚安县",
"DisSort" : null,
"Id" : 2241
},
{
"CityID" : 283,
"DisName" : "大姚县",
"DisSort" : null,
"Id" : 2242
},
{
"CityID" : 283,
"DisName" : "永仁县",
"DisSort" : null,
"Id" : 2243
},
{
"CityID" : 283,
"DisName" : "元谋县",
"DisSort" : null,
"Id" : 2244
},
{
"CityID" : 283,
"DisName" : "武定县",
"DisSort" : null,
"Id" : 2245
},
{
"CityID" : 283,
"DisName" : "禄丰县",
"DisSort" : null,
"Id" : 2246
},
{
"CityID" : 284,
"DisName" : "思茅区",
"DisSort" : null,
"Id" : 2247
},
{
"CityID" : 284,
"DisName" : "宁洱哈尼族彝族自治县",
"DisSort" : null,
"Id" : 2248
},
{
"CityID" : 284,
"DisName" : "墨江哈尼族自治县",
"DisSort" : null,
"Id" : 2249
},
{
"CityID" : 284,
"DisName" : "景东彝族自治县",
"DisSort" : null,
"Id" : 2250
},
{
"CityID" : 284,
"DisName" : "景谷傣族彝族自治县",
"DisSort" : null,
"Id" : 2251
},
{
"CityID" : 284,
"DisName" : "镇沅彝族哈尼族拉祜族自治县",
"DisSort" : null,
"Id" : 2252
},
{
"CityID" : 284,
"DisName" : "江城哈尼族彝族自治县",
"DisSort" : null,
"Id" : 2253
},
{
"CityID" : 284,
"DisName" : "孟连傣族拉祜族佤族自治县",
"DisSort" : null,
"Id" : 2254
},
{
"CityID" : 284,
"DisName" : "澜沧拉祜族自治县",
"DisSort" : null,
"Id" : 2255
},
{
"CityID" : 284,
"DisName" : "西盟佤族自治县",
"DisSort" : null,
"Id" : 2256
},
{
"CityID" : 285,
"DisName" : "临翔区",
"DisSort" : null,
"Id" : 2257
},
{
"CityID" : 285,
"DisName" : "凤庆县",
"DisSort" : null,
"Id" : 2258
},
{
"CityID" : 285,
"DisName" : "云县",
"DisSort" : null,
"Id" : 2259
},
{
"CityID" : 285,
"DisName" : "永德县",
"DisSort" : null,
"Id" : 2260
},
{
"CityID" : 285,
"DisName" : "镇康县",
"DisSort" : null,
"Id" : 2261
},
{
"CityID" : 285,
"DisName" : "双江拉祜族佤族布朗族傣族自治县",
"DisSort" : null,
"Id" : 2262
},
{
"CityID" : 285,
"DisName" : "耿马傣族佤族自治县",
"DisSort" : null,
"Id" : 2263
},
{
"CityID" : 285,
"DisName" : "沧源佤族自治县",
"DisSort" : null,
"Id" : 2264
},
{
"CityID" : 286,
"DisName" : "泸水县",
"DisSort" : null,
"Id" : 2265
},
{
"CityID" : 286,
"DisName" : "福贡县",
"DisSort" : null,
"Id" : 2266
},
{
"CityID" : 286,
"DisName" : "贡山独龙族怒族自治县",
"DisSort" : null,
"Id" : 2267
},
{
"CityID" : 286,
"DisName" : "兰坪白族普米族自治县",
"DisSort" : null,
"Id" : 2268
},
{
"CityID" : 287,
"DisName" : "香格里拉县",
"DisSort" : null,
"Id" : 2269
},
{
"CityID" : 287,
"DisName" : "德钦县",
"DisSort" : null,
"Id" : 2270
},
{
"CityID" : 287,
"DisName" : "维西傈僳族自治县",
"DisSort" : null,
"Id" : 2271
},
{
"CityID" : 288,
"DisName" : "古城区",
"DisSort" : null,
"Id" : 2272
},
{
"CityID" : 288,
"DisName" : "玉龙纳西族自治县",
"DisSort" : null,
"Id" : 2273
},
{
"CityID" : 288,
"DisName" : "永胜县",
"DisSort" : null,
"Id" : 2274
},
{
"CityID" : 288,
"DisName" : "华坪县",
"DisSort" : null,
"Id" : 2275
},
{
"CityID" : 288,
"DisName" : "宁蒗彝族自治县",
"DisSort" : null,
"Id" : 2276
},
{
"CityID" : 289,
"DisName" : "门源回族自治县",
"DisSort" : null,
"Id" : 2277
},
{
"CityID" : 289,
"DisName" : "祁连县",
"DisSort" : null,
"Id" : 2278
},
{
"CityID" : 289,
"DisName" : "海晏县",
"DisSort" : null,
"Id" : 2279
},
{
"CityID" : 289,
"DisName" : "刚察县",
"DisSort" : null,
"Id" : 2280
},
{
"CityID" : 290,
"DisName" : "城东区",
"DisSort" : null,
"Id" : 2281
},
{
"CityID" : 290,
"DisName" : "城中区",
"DisSort" : null,
"Id" : 2282
},
{
"CityID" : 290,
"DisName" : "城西区",
"DisSort" : null,
"Id" : 2283
},
{
"CityID" : 290,
"DisName" : "城北区",
"DisSort" : null,
"Id" : 2284
},
{
"CityID" : 290,
"DisName" : "大通回族土族自治县",
"DisSort" : null,
"Id" : 2285
},
{
"CityID" : 290,
"DisName" : "湟中县",
"DisSort" : null,
"Id" : 2286
},
{
"CityID" : 290,
"DisName" : "湟源县",
"DisSort" : null,
"Id" : 2287
},
{
"CityID" : 291,
"DisName" : "平安县",
"DisSort" : null,
"Id" : 2288
},
{
"CityID" : 291,
"DisName" : "民和回族土族自治县",
"DisSort" : null,
"Id" : 2289
},
{
"CityID" : 291,
"DisName" : "乐都县",
"DisSort" : null,
"Id" : 2290
},
{
"CityID" : 291,
"DisName" : "互助土族自治县",
"DisSort" : null,
"Id" : 2291
},
{
"CityID" : 291,
"DisName" : "化隆回族自治县",
"DisSort" : null,
"Id" : 2292
},
{
"CityID" : 291,
"DisName" : "循化撒拉族自治县",
"DisSort" : null,
"Id" : 2293
},
{
"CityID" : 292,
"DisName" : "同仁县",
"DisSort" : null,
"Id" : 2294
},
{
"CityID" : 292,
"DisName" : "尖扎县",
"DisSort" : null,
"Id" : 2295
},
{
"CityID" : 292,
"DisName" : "泽库县",
"DisSort" : null,
"Id" : 2296
},
{
"CityID" : 292,
"DisName" : "河南蒙古族自治县",
"DisSort" : null,
"Id" : 2297
},
{
"CityID" : 293,
"DisName" : "共和县",
"DisSort" : null,
"Id" : 2298
},
{
"CityID" : 293,
"DisName" : "同德县",
"DisSort" : null,
"Id" : 2299
},
{
"CityID" : 293,
"DisName" : "贵德县",
"DisSort" : null,
"Id" : 2300
},
{
"CityID" : 293,
"DisName" : "兴海县",
"DisSort" : null,
"Id" : 2301
},
{
"CityID" : 293,
"DisName" : "贵南县",
"DisSort" : null,
"Id" : 2302
},
{
"CityID" : 294,
"DisName" : "玛沁县",
"DisSort" : null,
"Id" : 2303
},
{
"CityID" : 294,
"DisName" : "班玛县",
"DisSort" : null,
"Id" : 2304
},
{
"CityID" : 294,
"DisName" : "甘德县",
"DisSort" : null,
"Id" : 2305
},
{
"CityID" : 294,
"DisName" : "达日县",
"DisSort" : null,
"Id" : 2306
},
{
"CityID" : 294,
"DisName" : "久治县",
"DisSort" : null,
"Id" : 2307
},
{
"CityID" : 294,
"DisName" : "玛多县",
"DisSort" : null,
"Id" : 2308
},
{
"CityID" : 295,
"DisName" : "玉树县",
"DisSort" : null,
"Id" : 2309
},
{
"CityID" : 295,
"DisName" : "杂多县",
"DisSort" : null,
"Id" : 2310
},
{
"CityID" : 295,
"DisName" : "称多县",
"DisSort" : null,
"Id" : 2311
},
{
"CityID" : 295,
"DisName" : "治多县",
"DisSort" : null,
"Id" : 2312
},
{
"CityID" : 295,
"DisName" : "囊谦县",
"DisSort" : null,
"Id" : 2313
},
{
"CityID" : 295,
"DisName" : "曲麻莱县",
"DisSort" : null,
"Id" : 2314
},
{
"CityID" : 296,
"DisName" : "格尔木市",
"DisSort" : null,
"Id" : 2315
},
{
"CityID" : 296,
"DisName" : "德令哈市",
"DisSort" : null,
"Id" : 2316
},
{
"CityID" : 296,
"DisName" : "乌兰县",
"DisSort" : null,
"Id" : 2317
},
{
"CityID" : 296,
"DisName" : "都兰县",
"DisSort" : null,
"Id" : 2318
},
{
"CityID" : 296,
"DisName" : "天峻县",
"DisSort" : null,
"Id" : 2319
},
{
"CityID" : 297,
"DisName" : "新城区",
"DisSort" : null,
"Id" : 2320
},
{
"CityID" : 297,
"DisName" : "碑林区",
"DisSort" : null,
"Id" : 2321
},
{
"CityID" : 297,
"DisName" : "莲湖区",
"DisSort" : null,
"Id" : 2322
},
{
"CityID" : 297,
"DisName" : "灞桥区",
"DisSort" : null,
"Id" : 2323
},
{
"CityID" : 297,
"DisName" : "未央区",
"DisSort" : null,
"Id" : 2324
},
{
"CityID" : 297,
"DisName" : "雁塔区",
"DisSort" : null,
"Id" : 2325
},
{
"CityID" : 297,
"DisName" : "阎良区",
"DisSort" : null,
"Id" : 2326
},
{
"CityID" : 297,
"DisName" : "临潼区",
"DisSort" : null,
"Id" : 2327
},
{
"CityID" : 297,
"DisName" : "长安区",
"DisSort" : null,
"Id" : 2328
},
{
"CityID" : 297,
"DisName" : "蓝田县",
"DisSort" : null,
"Id" : 2329
},
{
"CityID" : 297,
"DisName" : "周至县",
"DisSort" : null,
"Id" : 2330
},
{
"CityID" : 297,
"DisName" : "户县",
"DisSort" : null,
"Id" : 2331
},
{
"CityID" : 297,
"DisName" : "高陵县",
"DisSort" : null,
"Id" : 2332
},
{
"CityID" : 298,
"DisName" : "秦都区",
"DisSort" : null,
"Id" : 2333
},
{
"CityID" : 298,
"DisName" : "杨陵区",
"DisSort" : null,
"Id" : 2334
},
{
"CityID" : 298,
"DisName" : "渭城区",
"DisSort" : null,
"Id" : 2335
},
{
"CityID" : 298,
"DisName" : "三原县",
"DisSort" : null,
"Id" : 2336
},
{
"CityID" : 298,
"DisName" : "泾阳县",
"DisSort" : null,
"Id" : 2337
},
{
"CityID" : 298,
"DisName" : "乾县",
"DisSort" : null,
"Id" : 2338
},
{
"CityID" : 298,
"DisName" : "礼泉县",
"DisSort" : null,
"Id" : 2339
},
{
"CityID" : 298,
"DisName" : "永寿县",
"DisSort" : null,
"Id" : 2340
},
{
"CityID" : 298,
"DisName" : "彬县",
"DisSort" : null,
"Id" : 2341
},
{
"CityID" : 298,
"DisName" : "长武县",
"DisSort" : null,
"Id" : 2342
},
{
"CityID" : 298,
"DisName" : "旬邑县",
"DisSort" : null,
"Id" : 2343
},
{
"CityID" : 298,
"DisName" : "淳化县",
"DisSort" : null,
"Id" : 2344
},
{
"CityID" : 298,
"DisName" : "武功县",
"DisSort" : null,
"Id" : 2345
},
{
"CityID" : 298,
"DisName" : "兴平市",
"DisSort" : null,
"Id" : 2346
},
{
"CityID" : 299,
"DisName" : "宝塔区",
"DisSort" : null,
"Id" : 2347
},
{
"CityID" : 299,
"DisName" : "延长县",
"DisSort" : null,
"Id" : 2348
},
{
"CityID" : 299,
"DisName" : "延川县",
"DisSort" : null,
"Id" : 2349
},
{
"CityID" : 299,
"DisName" : "子长县",
"DisSort" : null,
"Id" : 2350
},
{
"CityID" : 299,
"DisName" : "安塞县",
"DisSort" : null,
"Id" : 2351
},
{
"CityID" : 299,
"DisName" : "志丹县",
"DisSort" : null,
"Id" : 2352
},
{
"CityID" : 299,
"DisName" : "吴起县",
"DisSort" : null,
"Id" : 2353
},
{
"CityID" : 299,
"DisName" : "甘泉县",
"DisSort" : null,
"Id" : 2354
},
{
"CityID" : 299,
"DisName" : "富县",
"DisSort" : null,
"Id" : 2355
},
{
"CityID" : 299,
"DisName" : "洛川县",
"DisSort" : null,
"Id" : 2356
},
{
"CityID" : 299,
"DisName" : "宜川县",
"DisSort" : null,
"Id" : 2357
},
{
"CityID" : 299,
"DisName" : "黄龙县",
"DisSort" : null,
"Id" : 2358
},
{
"CityID" : 299,
"DisName" : "黄陵县",
"DisSort" : null,
"Id" : 2359
},
{
"CityID" : 300,
"DisName" : "榆阳区",
"DisSort" : null,
"Id" : 2360
},
{
"CityID" : 300,
"DisName" : "神木县",
"DisSort" : null,
"Id" : 2361
},
{
"CityID" : 300,
"DisName" : "府谷县",
"DisSort" : null,
"Id" : 2362
},
{
"CityID" : 300,
"DisName" : "横山县",
"DisSort" : null,
"Id" : 2363
},
{
"CityID" : 300,
"DisName" : "靖边县",
"DisSort" : null,
"Id" : 2364
},
{
"CityID" : 300,
"DisName" : "定边县",
"DisSort" : null,
"Id" : 2365
},
{
"CityID" : 300,
"DisName" : "绥德县",
"DisSort" : null,
"Id" : 2366
},
{
"CityID" : 300,
"DisName" : "米脂县",
"DisSort" : null,
"Id" : 2367
},
{
"CityID" : 300,
"DisName" : "佳县",
"DisSort" : null,
"Id" : 2368
},
{
"CityID" : 300,
"DisName" : "吴堡县",
"DisSort" : null,
"Id" : 2369
},
{
"CityID" : 300,
"DisName" : "清涧县",
"DisSort" : null,
"Id" : 2370
},
{
"CityID" : 300,
"DisName" : "子洲县",
"DisSort" : null,
"Id" : 2371
},
{
"CityID" : 301,
"DisName" : "临渭区",
"DisSort" : null,
"Id" : 2372
},
{
"CityID" : 301,
"DisName" : "华县",
"DisSort" : null,
"Id" : 2373
},
{
"CityID" : 301,
"DisName" : "潼关县",
"DisSort" : null,
"Id" : 2374
},
{
"CityID" : 301,
"DisName" : "大荔县",
"DisSort" : null,
"Id" : 2375
},
{
"CityID" : 301,
"DisName" : "合阳县",
"DisSort" : null,
"Id" : 2376
},
{
"CityID" : 301,
"DisName" : "澄城县",
"DisSort" : null,
"Id" : 2377
},
{
"CityID" : 301,
"DisName" : "蒲城县",
"DisSort" : null,
"Id" : 2378
},
{
"CityID" : 301,
"DisName" : "白水县",
"DisSort" : null,
"Id" : 2379
},
{
"CityID" : 301,
"DisName" : "富平县",
"DisSort" : null,
"Id" : 2380
},
{
"CityID" : 301,
"DisName" : "韩城市",
"DisSort" : null,
"Id" : 2381
},
{
"CityID" : 301,
"DisName" : "华阴市",
"DisSort" : null,
"Id" : 2382
},
{
"CityID" : 302,
"DisName" : "商州区",
"DisSort" : null,
"Id" : 2383
},
{
"CityID" : 302,
"DisName" : "洛南县",
"DisSort" : null,
"Id" : 2384
},
{
"CityID" : 302,
"DisName" : "丹凤县",
"DisSort" : null,
"Id" : 2385
},
{
"CityID" : 302,
"DisName" : "商南县",
"DisSort" : null,
"Id" : 2386
},
{
"CityID" : 302,
"DisName" : "山阳县",
"DisSort" : null,
"Id" : 2387
},
{
"CityID" : 302,
"DisName" : "镇安县",
"DisSort" : null,
"Id" : 2388
},
{
"CityID" : 302,
"DisName" : "柞水县",
"DisSort" : null,
"Id" : 2389
},
{
"CityID" : 303,
"DisName" : "汉滨区",
"DisSort" : null,
"Id" : 2390
},
{
"CityID" : 303,
"DisName" : "汉阴县",
"DisSort" : null,
"Id" : 2391
},
{
"CityID" : 303,
"DisName" : "石泉县",
"DisSort" : null,
"Id" : 2392
},
{
"CityID" : 303,
"DisName" : "宁陕县",
"DisSort" : null,
"Id" : 2393
},
{
"CityID" : 303,
"DisName" : "紫阳县",
"DisSort" : null,
"Id" : 2394
},
{
"CityID" : 303,
"DisName" : "岚皋县",
"DisSort" : null,
"Id" : 2395
},
{
"CityID" : 303,
"DisName" : "平利县",
"DisSort" : null,
"Id" : 2396
},
{
"CityID" : 303,
"DisName" : "镇坪县",
"DisSort" : null,
"Id" : 2397
},
{
"CityID" : 303,
"DisName" : "旬阳县",
"DisSort" : null,
"Id" : 2398
},
{
"CityID" : 303,
"DisName" : "白河县",
"DisSort" : null,
"Id" : 2399
},
{
"CityID" : 304,
"DisName" : "汉台区",
"DisSort" : null,
"Id" : 2400
},
{
"CityID" : 304,
"DisName" : "南郑县",
"DisSort" : null,
"Id" : 2401
},
{
"CityID" : 304,
"DisName" : "城固县",
"DisSort" : null,
"Id" : 2402
},
{
"CityID" : 304,
"DisName" : "洋县",
"DisSort" : null,
"Id" : 2403
},
{
"CityID" : 304,
"DisName" : "西乡县",
"DisSort" : null,
"Id" : 2404
},
{
"CityID" : 304,
"DisName" : "勉县",
"DisSort" : null,
"Id" : 2405
},
{
"CityID" : 304,
"DisName" : "宁强县",
"DisSort" : null,
"Id" : 2406
},
{
"CityID" : 304,
"DisName" : "略阳县",
"DisSort" : null,
"Id" : 2407
},
{
"CityID" : 304,
"DisName" : "镇巴县",
"DisSort" : null,
"Id" : 2408
},
{
"CityID" : 304,
"DisName" : "留坝县",
"DisSort" : null,
"Id" : 2409
},
{
"CityID" : 304,
"DisName" : "佛坪县",
"DisSort" : null,
"Id" : 2410
},
{
"CityID" : 305,
"DisName" : "渭滨区",
"DisSort" : null,
"Id" : 2411
},
{
"CityID" : 305,
"DisName" : "金台区",
"DisSort" : null,
"Id" : 2412
},
{
"CityID" : 305,
"DisName" : "陈仓区",
"DisSort" : null,
"Id" : 2413
},
{
"CityID" : 305,
"DisName" : "凤翔县",
"DisSort" : null,
"Id" : 2414
},
{
"CityID" : 305,
"DisName" : "岐山县",
"DisSort" : null,
"Id" : 2415
},
{
"CityID" : 305,
"DisName" : "扶风县",
"DisSort" : null,
"Id" : 2416
},
{
"CityID" : 305,
"DisName" : "眉县",
"DisSort" : null,
"Id" : 2417
},
{
"CityID" : 305,
"DisName" : "陇县",
"DisSort" : null,
"Id" : 2418
},
{
"CityID" : 305,
"DisName" : "千阳县",
"DisSort" : null,
"Id" : 2419
},
{
"CityID" : 305,
"DisName" : "麟游县",
"DisSort" : null,
"Id" : 2420
},
{
"CityID" : 305,
"DisName" : "凤县",
"DisSort" : null,
"Id" : 2421
},
{
"CityID" : 305,
"DisName" : "太白县",
"DisSort" : null,
"Id" : 2422
},
{
"CityID" : 306,
"DisName" : "王益区",
"DisSort" : null,
"Id" : 2423
},
{
"CityID" : 306,
"DisName" : "印台区",
"DisSort" : null,
"Id" : 2424
},
{
"CityID" : 306,
"DisName" : "耀州区",
"DisSort" : null,
"Id" : 2425
},
{
"CityID" : 306,
"DisName" : "宜君县",
"DisSort" : null,
"Id" : 2426
},
{
"CityID" : 307,
"DisName" : "港口区",
"DisSort" : null,
"Id" : 2427
},
{
"CityID" : 307,
"DisName" : "防城区",
"DisSort" : null,
"Id" : 2428
},
{
"CityID" : 307,
"DisName" : "上思县",
"DisSort" : null,
"Id" : 2429
},
{
"CityID" : 307,
"DisName" : "东兴市",
"DisSort" : null,
"Id" : 2430
},
{
"CityID" : 308,
"DisName" : "兴宁区",
"DisSort" : null,
"Id" : 2431
},
{
"CityID" : 308,
"DisName" : "青秀区",
"DisSort" : null,
"Id" : 2432
},
{
"CityID" : 308,
"DisName" : "江南区",
"DisSort" : null,
"Id" : 2433
},
{
"CityID" : 308,
"DisName" : "西乡塘区",
"DisSort" : null,
"Id" : 2434
},
{
"CityID" : 308,
"DisName" : "良庆区",
"DisSort" : null,
"Id" : 2435
},
{
"CityID" : 308,
"DisName" : "邕宁区",
"DisSort" : null,
"Id" : 2436
},
{
"CityID" : 308,
"DisName" : "武鸣县",
"DisSort" : null,
"Id" : 2437
},
{
"CityID" : 308,
"DisName" : "隆安县",
"DisSort" : null,
"Id" : 2438
},
{
"CityID" : 308,
"DisName" : "马山县",
"DisSort" : null,
"Id" : 2439
},
{
"CityID" : 308,
"DisName" : "上林县",
"DisSort" : null,
"Id" : 2440
},
{
"CityID" : 308,
"DisName" : "宾阳县",
"DisSort" : null,
"Id" : 2441
},
{
"CityID" : 308,
"DisName" : "横县",
"DisSort" : null,
"Id" : 2442
},
{
"CityID" : 309,
"DisName" : "江洲区",
"DisSort" : null,
"Id" : 2443
},
{
"CityID" : 309,
"DisName" : "扶绥县",
"DisSort" : null,
"Id" : 2444
},
{
"CityID" : 309,
"DisName" : "宁明县",
"DisSort" : null,
"Id" : 2445
},
{
"CityID" : 309,
"DisName" : "龙州县",
"DisSort" : null,
"Id" : 2446
},
{
"CityID" : 309,
"DisName" : "大新县",
"DisSort" : null,
"Id" : 2447
},
{
"CityID" : 309,
"DisName" : "天等县",
"DisSort" : null,
"Id" : 2448
},
{
"CityID" : 309,
"DisName" : "凭祥市",
"DisSort" : null,
"Id" : 2449
},
{
"CityID" : 310,
"DisName" : "兴宾区",
"DisSort" : null,
"Id" : 2450
},
{
"CityID" : 310,
"DisName" : "忻城县",
"DisSort" : null,
"Id" : 2451
},
{
"CityID" : 310,
"DisName" : "象州县",
"DisSort" : null,
"Id" : 2452
},
{
"CityID" : 310,
"DisName" : "武宣县",
"DisSort" : null,
"Id" : 2453
},
{
"CityID" : 310,
"DisName" : "金秀瑶族自治县",
"DisSort" : null,
"Id" : 2454
},
{
"CityID" : 310,
"DisName" : "合山市",
"DisSort" : null,
"Id" : 2455
},
{
"CityID" : 311,
"DisName" : "城中区",
"DisSort" : null,
"Id" : 2456
},
{
"CityID" : 311,
"DisName" : "鱼峰区",
"DisSort" : null,
"Id" : 2457
},
{
"CityID" : 311,
"DisName" : "柳南区",
"DisSort" : null,
"Id" : 2458
},
{
"CityID" : 311,
"DisName" : "柳北区",
"DisSort" : null,
"Id" : 2459
},
{
"CityID" : 311,
"DisName" : "柳江县",
"DisSort" : null,
"Id" : 2460
},
{
"CityID" : 311,
"DisName" : "柳城县",
"DisSort" : null,
"Id" : 2461
},
{
"CityID" : 311,
"DisName" : "鹿寨县",
"DisSort" : null,
"Id" : 2462
},
{
"CityID" : 311,
"DisName" : "融安县",
"DisSort" : null,
"Id" : 2463
},
{
"CityID" : 311,
"DisName" : "融水苗族自治县",
"DisSort" : null,
"Id" : 2464
},
{
"CityID" : 311,
"DisName" : "三江侗族自治县",
"DisSort" : null,
"Id" : 2465
},
{
"CityID" : 312,
"DisName" : "秀峰区",
"DisSort" : null,
"Id" : 2466
},
{
"CityID" : 312,
"DisName" : "叠彩区",
"DisSort" : null,
"Id" : 2467
},
{
"CityID" : 312,
"DisName" : "象山区",
"DisSort" : null,
"Id" : 2468
},
{
"CityID" : 312,
"DisName" : "七星区",
"DisSort" : null,
"Id" : 2469
},
{
"CityID" : 312,
"DisName" : "雁山区",
"DisSort" : null,
"Id" : 2470
},
{
"CityID" : 312,
"DisName" : "阳朔县",
"DisSort" : null,
"Id" : 2471
},
{
"CityID" : 312,
"DisName" : "临桂县",
"DisSort" : null,
"Id" : 2472
},
{
"CityID" : 312,
"DisName" : "灵川县",
"DisSort" : null,
"Id" : 2473
},
{
"CityID" : 312,
"DisName" : "全州县",
"DisSort" : null,
"Id" : 2474
},
{
"CityID" : 312,
"DisName" : "兴安县",
"DisSort" : null,
"Id" : 2475
},
{
"CityID" : 312,
"DisName" : "永福县",
"DisSort" : null,
"Id" : 2476
},
{
"CityID" : 312,
"DisName" : "灌阳县",
"DisSort" : null,
"Id" : 2477
},
{
"CityID" : 312,
"DisName" : "龙胜各族自治县",
"DisSort" : null,
"Id" : 2478
},
{
"CityID" : 312,
"DisName" : "资源县",
"DisSort" : null,
"Id" : 2479
},
{
"CityID" : 312,
"DisName" : "平乐县",
"DisSort" : null,
"Id" : 2480
},
{
"CityID" : 312,
"DisName" : "荔浦县",
"DisSort" : null,
"Id" : 2481
},
{
"CityID" : 312,
"DisName" : "恭城瑶族自治县",
"DisSort" : null,
"Id" : 2482
},
{
"CityID" : 313,
"DisName" : "万秀区",
"DisSort" : null,
"Id" : 2483
},
{
"CityID" : 313,
"DisName" : "碟山区",
"DisSort" : null,
"Id" : 2484
},
{
"CityID" : 313,
"DisName" : "长洲区",
"DisSort" : null,
"Id" : 2485
},
{
"CityID" : 313,
"DisName" : "苍梧县",
"DisSort" : null,
"Id" : 2486
},
{
"CityID" : 313,
"DisName" : "藤县",
"DisSort" : null,
"Id" : 2487
},
{
"CityID" : 313,
"DisName" : "蒙山县",
"DisSort" : null,
"Id" : 2488
},
{
"CityID" : 313,
"DisName" : "岑溪市",
"DisSort" : null,
"Id" : 2489
},
{
"CityID" : 314,
"DisName" : "八步区",
"DisSort" : null,
"Id" : 2490
},
{
"CityID" : 314,
"DisName" : "昭平县",
"DisSort" : null,
"Id" : 2491
},
{
"CityID" : 314,
"DisName" : "钟山县",
"DisSort" : null,
"Id" : 2492
},
{
"CityID" : 314,
"DisName" : "富川瑶族自治县",
"DisSort" : null,
"Id" : 2493
},
{
"CityID" : 315,
"DisName" : "港北区",
"DisSort" : null,
"Id" : 2494
},
{
"CityID" : 315,
"DisName" : "港南区",
"DisSort" : null,
"Id" : 2495
},
{
"CityID" : 315,
"DisName" : "覃塘区",
"DisSort" : null,
"Id" : 2496
},
{
"CityID" : 315,
"DisName" : "平南县",
"DisSort" : null,
"Id" : 2497
},
{
"CityID" : 315,
"DisName" : "桂平市",
"DisSort" : null,
"Id" : 2498
},
{
"CityID" : 316,
"DisName" : "玉州区",
"DisSort" : null,
"Id" : 2499
},
{
"CityID" : 316,
"DisName" : "容县",
"DisSort" : null,
"Id" : 2500
},
{
"CityID" : 316,
"DisName" : "陆川县",
"DisSort" : null,
"Id" : 2501
},
{
"CityID" : 316,
"DisName" : "博白县",
"DisSort" : null,
"Id" : 2502
},
{
"CityID" : 316,
"DisName" : "兴业县",
"DisSort" : null,
"Id" : 2503
},
{
"CityID" : 316,
"DisName" : "北流市",
"DisSort" : null,
"Id" : 2504
},
{
"CityID" : 317,
"DisName" : "右江区",
"DisSort" : null,
"Id" : 2505
},
{
"CityID" : 317,
"DisName" : "田阳县",
"DisSort" : null,
"Id" : 2506
},
{
"CityID" : 317,
"DisName" : "田东县",
"DisSort" : null,
"Id" : 2507
},
{
"CityID" : 317,
"DisName" : "平果县",
"DisSort" : null,
"Id" : 2508
},
{
"CityID" : 317,
"DisName" : "德保县",
"DisSort" : null,
"Id" : 2509
},
{
"CityID" : 317,
"DisName" : "靖西县",
"DisSort" : null,
"Id" : 2510
},
{
"CityID" : 317,
"DisName" : "那坡县",
"DisSort" : null,
"Id" : 2511
},
{
"CityID" : 317,
"DisName" : "凌云县",
"DisSort" : null,
"Id" : 2512
},
{
"CityID" : 317,
"DisName" : "乐业县",
"DisSort" : null,
"Id" : 2513
},
{
"CityID" : 317,
"DisName" : "田林县",
"DisSort" : null,
"Id" : 2514
},
{
"CityID" : 317,
"DisName" : "西林县",
"DisSort" : null,
"Id" : 2515
},
{
"CityID" : 317,
"DisName" : "隆林各族自治县",
"DisSort" : null,
"Id" : 2516
},
{
"CityID" : 318,
"DisName" : "钦南区",
"DisSort" : null,
"Id" : 2517
},
{
"CityID" : 318,
"DisName" : "钦北区",
"DisSort" : null,
"Id" : 2518
},
{
"CityID" : 318,
"DisName" : "灵山县",
"DisSort" : null,
"Id" : 2519
},
{
"CityID" : 318,
"DisName" : "浦北县",
"DisSort" : null,
"Id" : 2520
},
{
"CityID" : 319,
"DisName" : "金城江区",
"DisSort" : null,
"Id" : 2521
},
{
"CityID" : 319,
"DisName" : "南丹县",
"DisSort" : null,
"Id" : 2522
},
{
"CityID" : 319,
"DisName" : "天峨县",
"DisSort" : null,
"Id" : 2523
},
{
"CityID" : 319,
"DisName" : "凤山县",
"DisSort" : null,
"Id" : 2524
},
{
"CityID" : 319,
"DisName" : "东兰县",
"DisSort" : null,
"Id" : 2525
},
{
"CityID" : 319,
"DisName" : "罗城仫佬族自治县",
"DisSort" : null,
"Id" : 2526
},
{
"CityID" : 319,
"DisName" : "环江毛南族自治县",
"DisSort" : null,
"Id" : 2527
},
{
"CityID" : 319,
"DisName" : "巴马瑶族自治县",
"DisSort" : null,
"Id" : 2528
},
{
"CityID" : 319,
"DisName" : "都安瑶族自治县",
"DisSort" : null,
"Id" : 2529
},
{
"CityID" : 319,
"DisName" : "大化瑶族自治县",
"DisSort" : null,
"Id" : 2530
},
{
"CityID" : 319,
"DisName" : "宜州市",
"DisSort" : null,
"Id" : 2531
},
{
"CityID" : 320,
"DisName" : "海城区",
"DisSort" : null,
"Id" : 2532
},
{
"CityID" : 320,
"DisName" : "银海区",
"DisSort" : null,
"Id" : 2533
},
{
"CityID" : 320,
"DisName" : "铁山港区",
"DisSort" : null,
"Id" : 2534
},
{
"CityID" : 320,
"DisName" : "合浦县",
"DisSort" : null,
"Id" : 2535
},
{
"CityID" : 321,
"DisName" : "城关区",
"DisSort" : null,
"Id" : 2536
},
{
"CityID" : 321,
"DisName" : "林周县",
"DisSort" : null,
"Id" : 2537
},
{
"CityID" : 321,
"DisName" : "当雄县",
"DisSort" : null,
"Id" : 2538
},
{
"CityID" : 321,
"DisName" : "尼木县",
"DisSort" : null,
"Id" : 2539
},
{
"CityID" : 321,
"DisName" : "曲水县",
"DisSort" : null,
"Id" : 2540
},
{
"CityID" : 321,
"DisName" : "堆龙德庆县",
"DisSort" : null,
"Id" : 2541
},
{
"CityID" : 321,
"DisName" : "达孜县",
"DisSort" : null,
"Id" : 2542
},
{
"CityID" : 321,
"DisName" : "墨竹工卡县",
"DisSort" : null,
"Id" : 2543
},
{
"CityID" : 322,
"DisName" : "日喀则市",
"DisSort" : null,
"Id" : 2544
},
{
"CityID" : 322,
"DisName" : "南木林县",
"DisSort" : null,
"Id" : 2545
},
{
"CityID" : 322,
"DisName" : "江孜县",
"DisSort" : null,
"Id" : 2546
},
{
"CityID" : 322,
"DisName" : "定日县",
"DisSort" : null,
"Id" : 2547
},
{
"CityID" : 322,
"DisName" : "萨迦县",
"DisSort" : null,
"Id" : 2548
},
{
"CityID" : 322,
"DisName" : "拉孜县",
"DisSort" : null,
"Id" : 2549
},
{
"CityID" : 322,
"DisName" : "昂仁县",
"DisSort" : null,
"Id" : 2550
},
{
"CityID" : 322,
"DisName" : "谢通门县",
"DisSort" : null,
"Id" : 2551
},
{
"CityID" : 322,
"DisName" : "白朗县",
"DisSort" : null,
"Id" : 2552
},
{
"CityID" : 322,
"DisName" : "仁布县",
"DisSort" : null,
"Id" : 2553
},
{
"CityID" : 322,
"DisName" : "康马县",
"DisSort" : null,
"Id" : 2554
},
{
"CityID" : 322,
"DisName" : "定结县",
"DisSort" : null,
"Id" : 2555
},
{
"CityID" : 322,
"DisName" : "仲巴县",
"DisSort" : null,
"Id" : 2556
},
{
"CityID" : 322,
"DisName" : "亚东县",
"DisSort" : null,
"Id" : 2557
},
{
"CityID" : 322,
"DisName" : "吉隆县",
"DisSort" : null,
"Id" : 2558
},
{
"CityID" : 322,
"DisName" : "聂拉木县",
"DisSort" : null,
"Id" : 2559
},
{
"CityID" : 322,
"DisName" : "萨嘎县",
"DisSort" : null,
"Id" : 2560
},
{
"CityID" : 322,
"DisName" : "岗巴县",
"DisSort" : null,
"Id" : 2561
},
{
"CityID" : 323,
"DisName" : "乃东县",
"DisSort" : null,
"Id" : 2562
},
{
"CityID" : 323,
"DisName" : "扎囊县",
"DisSort" : null,
"Id" : 2563
},
{
"CityID" : 323,
"DisName" : "贡嘎县",
"DisSort" : null,
"Id" : 2564
},
{
"CityID" : 323,
"DisName" : "桑日县",
"DisSort" : null,
"Id" : 2565
},
{
"CityID" : 323,
"DisName" : "琼结县",
"DisSort" : null,
"Id" : 2566
},
{
"CityID" : 323,
"DisName" : "曲松县",
"DisSort" : null,
"Id" : 2567
},
{
"CityID" : 323,
"DisName" : "措美县",
"DisSort" : null,
"Id" : 2568
},
{
"CityID" : 323,
"DisName" : "洛扎县",
"DisSort" : null,
"Id" : 2569
},
{
"CityID" : 323,
"DisName" : "加查县",
"DisSort" : null,
"Id" : 2570
},
{
"CityID" : 323,
"DisName" : "隆子县",
"DisSort" : null,
"Id" : 2571
},
{
"CityID" : 323,
"DisName" : "错那县",
"DisSort" : null,
"Id" : 2572
},
{
"CityID" : 323,
"DisName" : "浪卡子县",
"DisSort" : null,
"Id" : 2573
},
{
"CityID" : 324,
"DisName" : "林芝县",
"DisSort" : null,
"Id" : 2574
},
{
"CityID" : 324,
"DisName" : "工布江达县",
"DisSort" : null,
"Id" : 2575
},
{
"CityID" : 324,
"DisName" : "米林县",
"DisSort" : null,
"Id" : 2576
},
{
"CityID" : 324,
"DisName" : "墨脱县",
"DisSort" : null,
"Id" : 2577
},
{
"CityID" : 324,
"DisName" : "波密县",
"DisSort" : null,
"Id" : 2578
},
{
"CityID" : 324,
"DisName" : "察隅县",
"DisSort" : null,
"Id" : 2579
},
{
"CityID" : 324,
"DisName" : "朗县",
"DisSort" : null,
"Id" : 2580
},
{
"CityID" : 325,
"DisName" : "昌都县",
"DisSort" : null,
"Id" : 2581
},
{
"CityID" : 325,
"DisName" : "江达县",
"DisSort" : null,
"Id" : 2582
},
{
"CityID" : 325,
"DisName" : "贡觉县",
"DisSort" : null,
"Id" : 2583
},
{
"CityID" : 325,
"DisName" : "类乌齐县",
"DisSort" : null,
"Id" : 2584
},
{
"CityID" : 325,
"DisName" : "丁青县",
"DisSort" : null,
"Id" : 2585
},
{
"CityID" : 325,
"DisName" : "察雅县",
"DisSort" : null,
"Id" : 2586
},
{
"CityID" : 325,
"DisName" : "八宿县",
"DisSort" : null,
"Id" : 2587
},
{
"CityID" : 325,
"DisName" : "左贡县",
"DisSort" : null,
"Id" : 2588
},
{
"CityID" : 325,
"DisName" : "芒康县",
"DisSort" : null,
"Id" : 2589
},
{
"CityID" : 325,
"DisName" : "洛隆县",
"DisSort" : null,
"Id" : 2590
},
{
"CityID" : 325,
"DisName" : "边坝县",
"DisSort" : null,
"Id" : 2591
},
{
"CityID" : 326,
"DisName" : "那曲县",
"DisSort" : null,
"Id" : 2592
},
{
"CityID" : 326,
"DisName" : "嘉黎县",
"DisSort" : null,
"Id" : 2593
},
{
"CityID" : 326,
"DisName" : "比如县",
"DisSort" : null,
"Id" : 2594
},
{
"CityID" : 326,
"DisName" : "聂荣县",
"DisSort" : null,
"Id" : 2595
},
{
"CityID" : 326,
"DisName" : "安多县",
"DisSort" : null,
"Id" : 2596
},
{
"CityID" : 326,
"DisName" : "申扎县",
"DisSort" : null,
"Id" : 2597
},
{
"CityID" : 326,
"DisName" : "索县",
"DisSort" : null,
"Id" : 2598
},
{
"CityID" : 326,
"DisName" : "班戈县",
"DisSort" : null,
"Id" : 2599
},
{
"CityID" : 326,
"DisName" : "巴青县",
"DisSort" : null,
"Id" : 2600
},
{
"CityID" : 326,
"DisName" : "尼玛县",
"DisSort" : null,
"Id" : 2601
},
{
"CityID" : 327,
"DisName" : "普兰县",
"DisSort" : null,
"Id" : 2602
},
{
"CityID" : 327,
"DisName" : "札达县",
"DisSort" : null,
"Id" : 2603
},
{
"CityID" : 327,
"DisName" : "噶尔县",
"DisSort" : null,
"Id" : 2604
},
{
"CityID" : 327,
"DisName" : "日土县",
"DisSort" : null,
"Id" : 2605
},
{
"CityID" : 327,
"DisName" : "革吉县",
"DisSort" : null,
"Id" : 2606
},
{
"CityID" : 327,
"DisName" : "改则县",
"DisSort" : null,
"Id" : 2607
},
{
"CityID" : 327,
"DisName" : "措勤县",
"DisSort" : null,
"Id" : 2608
},
{
"CityID" : 328,
"DisName" : "兴庆区",
"DisSort" : null,
"Id" : 2609
},
{
"CityID" : 328,
"DisName" : "西夏区",
"DisSort" : null,
"Id" : 2610
},
{
"CityID" : 328,
"DisName" : "金凤区",
"DisSort" : null,
"Id" : 2611
},
{
"CityID" : 328,
"DisName" : "永宁县",
"DisSort" : null,
"Id" : 2612
},
{
"CityID" : 328,
"DisName" : "贺兰县",
"DisSort" : null,
"Id" : 2613
},
{
"CityID" : 328,
"DisName" : "灵武市",
"DisSort" : null,
"Id" : 2614
},
{
"CityID" : 329,
"DisName" : "大武口区",
"DisSort" : null,
"Id" : 2615
},
{
"CityID" : 329,
"DisName" : "惠农区",
"DisSort" : null,
"Id" : 2616
},
{
"CityID" : 329,
"DisName" : "平罗县",
"DisSort" : null,
"Id" : 2617
},
{
"CityID" : 330,
"DisName" : "利通区",
"DisSort" : null,
"Id" : 2618
},
{
"CityID" : 330,
"DisName" : "盐池县",
"DisSort" : null,
"Id" : 2619
},
{
"CityID" : 330,
"DisName" : "同心县",
"DisSort" : null,
"Id" : 2620
},
{
"CityID" : 330,
"DisName" : "青铜峡市",
"DisSort" : null,
"Id" : 2621
},
{
"CityID" : 331,
"DisName" : "原州区",
"DisSort" : null,
"Id" : 2622
},
{
"CityID" : 331,
"DisName" : "西吉县",
"DisSort" : null,
"Id" : 2623
},
{
"CityID" : 331,
"DisName" : "隆德县",
"DisSort" : null,
"Id" : 2624
},
{
"CityID" : 331,
"DisName" : "泾源县",
"DisSort" : null,
"Id" : 2625
},
{
"CityID" : 331,
"DisName" : "彭阳县",
"DisSort" : null,
"Id" : 2626
},
{
"CityID" : 332,
"DisName" : "沙坡头区",
"DisSort" : null,
"Id" : 2627
},
{
"CityID" : 332,
"DisName" : "中宁县",
"DisSort" : null,
"Id" : 2628
},
{
"CityID" : 332,
"DisName" : "海原县",
"DisSort" : null,
"Id" : 2629
},
{
"CityID" : 333,
"DisName" : "塔城市",
"DisSort" : null,
"Id" : 2630
},
{
"CityID" : 333,
"DisName" : "乌苏市",
"DisSort" : null,
"Id" : 2631
},
{
"CityID" : 333,
"DisName" : "额敏县",
"DisSort" : null,
"Id" : 2632
},
{
"CityID" : 333,
"DisName" : "沙湾县",
"DisSort" : null,
"Id" : 2633
},
{
"CityID" : 333,
"DisName" : "托里县",
"DisSort" : null,
"Id" : 2634
},
{
"CityID" : 333,
"DisName" : "裕民县",
"DisSort" : null,
"Id" : 2635
},
{
"CityID" : 333,
"DisName" : "和布克赛尔蒙古自治县",
"DisSort" : null,
"Id" : 2636
},
{
"CityID" : 334,
"DisName" : "哈密市",
"DisSort" : null,
"Id" : 2637
},
{
"CityID" : 334,
"DisName" : "巴里坤哈萨克自治县",
"DisSort" : null,
"Id" : 2638
},
{
"CityID" : 334,
"DisName" : "伊吾县",
"DisSort" : null,
"Id" : 2639
},
{
"CityID" : 335,
"DisName" : "和田市",
"DisSort" : null,
"Id" : 2640
},
{
"CityID" : 335,
"DisName" : "和田县",
"DisSort" : null,
"Id" : 2641
},
{
"CityID" : 335,
"DisName" : "墨玉县",
"DisSort" : null,
"Id" : 2642
},
{
"CityID" : 335,
"DisName" : "皮山县",
"DisSort" : null,
"Id" : 2643
},
{
"CityID" : 335,
"DisName" : "洛浦县",
"DisSort" : null,
"Id" : 2644
},
{
"CityID" : 335,
"DisName" : "策勒县",
"DisSort" : null,
"Id" : 2645
},
{
"CityID" : 335,
"DisName" : "于田县",
"DisSort" : null,
"Id" : 2646
},
{
"CityID" : 335,
"DisName" : "民丰县",
"DisSort" : null,
"Id" : 2647
},
{
"CityID" : 336,
"DisName" : "阿勒泰市",
"DisSort" : null,
"Id" : 2648
},
{
"CityID" : 336,
"DisName" : "布尔津县",
"DisSort" : null,
"Id" : 2649
},
{
"CityID" : 336,
"DisName" : "富蕴县",
"DisSort" : null,
"Id" : 2650
},
{
"CityID" : 336,
"DisName" : "福海县",
"DisSort" : null,
"Id" : 2651
},
{
"CityID" : 336,
"DisName" : "哈巴河县",
"DisSort" : null,
"Id" : 2652
},
{
"CityID" : 336,
"DisName" : "青河县",
"DisSort" : null,
"Id" : 2653
},
{
"CityID" : 336,
"DisName" : "吉木乃县",
"DisSort" : null,
"Id" : 2654
},
{
"CityID" : 337,
"DisName" : "阿图什市",
"DisSort" : null,
"Id" : 2655
},
{
"CityID" : 337,
"DisName" : "阿克陶县",
"DisSort" : null,
"Id" : 2656
},
{
"CityID" : 337,
"DisName" : "阿合奇县",
"DisSort" : null,
"Id" : 2657
},
{
"CityID" : 337,
"DisName" : "乌恰县",
"DisSort" : null,
"Id" : 2658
},
{
"CityID" : 338,
"DisName" : "博乐市",
"DisSort" : null,
"Id" : 2659
},
{
"CityID" : 338,
"DisName" : "精河县",
"DisSort" : null,
"Id" : 2660
},
{
"CityID" : 338,
"DisName" : "温泉县",
"DisSort" : null,
"Id" : 2661
},
{
"CityID" : 339,
"DisName" : "独山子区",
"DisSort" : null,
"Id" : 2662
},
{
"CityID" : 339,
"DisName" : "克拉玛依区",
"DisSort" : null,
"Id" : 2663
},
{
"CityID" : 339,
"DisName" : "白碱滩区",
"DisSort" : null,
"Id" : 2664
},
{
"CityID" : 339,
"DisName" : "乌尔禾区",
"DisSort" : null,
"Id" : 2665
},
{
"CityID" : 340,
"DisName" : "天山区",
"DisSort" : null,
"Id" : 2666
},
{
"CityID" : 340,
"DisName" : "沙依巴克区",
"DisSort" : null,
"Id" : 2667
},
{
"CityID" : 340,
"DisName" : "新市区",
"DisSort" : null,
"Id" : 2668
},
{
"CityID" : 340,
"DisName" : "水磨沟区",
"DisSort" : null,
"Id" : 2669
},
{
"CityID" : 340,
"DisName" : "头屯河区",
"DisSort" : null,
"Id" : 2670
},
{
"CityID" : 340,
"DisName" : "达坂城区",
"DisSort" : null,
"Id" : 2671
},
{
"CityID" : 340,
"DisName" : "米东区",
"DisSort" : null,
"Id" : 2672
},
{
"CityID" : 340,
"DisName" : "乌鲁木齐县",
"DisSort" : null,
"Id" : 2673
},
{
"CityID" : 342,
"DisName" : "昌吉市",
"DisSort" : null,
"Id" : 2674
},
{
"CityID" : 342,
"DisName" : "阜康市",
"DisSort" : null,
"Id" : 2675
},
{
"CityID" : 342,
"DisName" : "呼图壁县",
"DisSort" : null,
"Id" : 2676
},
{
"CityID" : 342,
"DisName" : "玛纳斯县",
"DisSort" : null,
"Id" : 2677
},
{
"CityID" : 342,
"DisName" : "奇台县",
"DisSort" : null,
"Id" : 2678
},
{
"CityID" : 342,
"DisName" : "吉木萨尔县",
"DisSort" : null,
"Id" : 2679
},
{
"CityID" : 342,
"DisName" : "木垒哈萨克自治县",
"DisSort" : null,
"Id" : 2680
},
{
"CityID" : 344,
"DisName" : "吐鲁番市",
"DisSort" : null,
"Id" : 2681
},
{
"CityID" : 344,
"DisName" : "鄯善县",
"DisSort" : null,
"Id" : 2682
},
{
"CityID" : 344,
"DisName" : "托克逊县",
"DisSort" : null,
"Id" : 2683
},
{
"CityID" : 345,
"DisName" : "库尔勒市",
"DisSort" : null,
"Id" : 2684
},
{
"CityID" : 345,
"DisName" : "轮台县",
"DisSort" : null,
"Id" : 2685
},
{
"CityID" : 345,
"DisName" : "尉犁县",
"DisSort" : null,
"Id" : 2686
},
{
"CityID" : 345,
"DisName" : "若羌县",
"DisSort" : null,
"Id" : 2687
},
{
"CityID" : 345,
"DisName" : "且末县",
"DisSort" : null,
"Id" : 2688
},
{
"CityID" : 345,
"DisName" : "焉耆回族自治县",
"DisSort" : null,
"Id" : 2689
},
{
"CityID" : 345,
"DisName" : "和静县",
"DisSort" : null,
"Id" : 2690
},
{
"CityID" : 345,
"DisName" : "和硕县",
"DisSort" : null,
"Id" : 2691
},
{
"CityID" : 345,
"DisName" : "博湖县",
"DisSort" : null,
"Id" : 2692
},
{
"CityID" : 346,
"DisName" : "阿克苏市",
"DisSort" : null,
"Id" : 2693
},
{
"CityID" : 346,
"DisName" : "温宿县",
"DisSort" : null,
"Id" : 2694
},
{
"CityID" : 346,
"DisName" : "库车县",
"DisSort" : null,
"Id" : 2695
},
{
"CityID" : 346,
"DisName" : "沙雅县",
"DisSort" : null,
"Id" : 2696
},
{
"CityID" : 346,
"DisName" : "新和县",
"DisSort" : null,
"Id" : 2697
},
{
"CityID" : 346,
"DisName" : "拜城县",
"DisSort" : null,
"Id" : 2698
},
{
"CityID" : 346,
"DisName" : "乌什县",
"DisSort" : null,
"Id" : 2699
},
{
"CityID" : 346,
"DisName" : "阿瓦提县",
"DisSort" : null,
"Id" : 2700
},
{
"CityID" : 346,
"DisName" : "柯坪县",
"DisSort" : null,
"Id" : 2701
},
{
"CityID" : 348,
"DisName" : "喀什市",
"DisSort" : null,
"Id" : 2702
},
{
"CityID" : 348,
"DisName" : "疏附县",
"DisSort" : null,
"Id" : 2703
},
{
"CityID" : 348,
"DisName" : "疏勒县",
"DisSort" : null,
"Id" : 2704
},
{
"CityID" : 348,
"DisName" : "英吉沙县",
"DisSort" : null,
"Id" : 2705
},
{
"CityID" : 348,
"DisName" : "泽普县",
"DisSort" : null,
"Id" : 2706
},
{
"CityID" : 348,
"DisName" : "莎车县",
"DisSort" : null,
"Id" : 2707
},
{
"CityID" : 348,
"DisName" : "叶城县",
"DisSort" : null,
"Id" : 2708
},
{
"CityID" : 348,
"DisName" : "麦盖提县",
"DisSort" : null,
"Id" : 2709
},
{
"CityID" : 348,
"DisName" : "岳普湖县",
"DisSort" : null,
"Id" : 2710
},
{
"CityID" : 348,
"DisName" : "伽师县",
"DisSort" : null,
"Id" : 2711
},
{
"CityID" : 348,
"DisName" : "巴楚县",
"DisSort" : null,
"Id" : 2712
},
{
"CityID" : 348,
"DisName" : "塔什库尔干塔吉克自治县",
"DisSort" : null,
"Id" : 2713
},
{
"CityID" : 350,
"DisName" : "伊宁市",
"DisSort" : null,
"Id" : 2714
},
{
"CityID" : 350,
"DisName" : "奎屯市",
"DisSort" : null,
"Id" : 2715
},
{
"CityID" : 350,
"DisName" : "伊宁县",
"DisSort" : null,
"Id" : 2716
},
{
"CityID" : 350,
"DisName" : "察布查尔锡伯自治县",
"DisSort" : null,
"Id" : 2717
},
{
"CityID" : 350,
"DisName" : "霍城县",
"DisSort" : null,
"Id" : 2718
},
{
"CityID" : 350,
"DisName" : "巩留县",
"DisSort" : null,
"Id" : 2719
},
{
"CityID" : 350,
"DisName" : "新源县",
"DisSort" : null,
"Id" : 2720
},
{
"CityID" : 350,
"DisName" : "昭苏县",
"DisSort" : null,
"Id" : 2721
},
{
"CityID" : 350,
"DisName" : "特克斯县",
"DisSort" : null,
"Id" : 2722
},
{
"CityID" : 350,
"DisName" : "尼勒克县",
"DisSort" : null,
"Id" : 2723
},
{
"CityID" : 351,
"DisName" : "海拉尔区",
"DisSort" : null,
"Id" : 2724
},
{
"CityID" : 351,
"DisName" : "阿荣旗",
"DisSort" : null,
"Id" : 2725
},
{
"CityID" : 351,
"DisName" : "莫力达瓦达斡尔族自治旗",
"DisSort" : null,
"Id" : 2726
},
{
"CityID" : 351,
"DisName" : "鄂伦春自治旗",
"DisSort" : null,
"Id" : 2727
},
{
"CityID" : 351,
"DisName" : "鄂温克族自治旗",
"DisSort" : null,
"Id" : 2728
},
{
"CityID" : 351,
"DisName" : "陈巴尔虎旗",
"DisSort" : null,
"Id" : 2729
},
{
"CityID" : 351,
"DisName" : "新巴尔虎左旗",
"DisSort" : null,
"Id" : 2730
},
{
"CityID" : 351,
"DisName" : "新巴尔虎右旗",
"DisSort" : null,
"Id" : 2731
},
{
"CityID" : 351,
"DisName" : "满洲里市",
"DisSort" : null,
"Id" : 2732
},
{
"CityID" : 351,
"DisName" : "牙克石市",
"DisSort" : null,
"Id" : 2733
},
{
"CityID" : 351,
"DisName" : "扎兰屯市",
"DisSort" : null,
"Id" : 2734
},
{
"CityID" : 351,
"DisName" : "额尔古纳市",
"DisSort" : null,
"Id" : 2735
},
{
"CityID" : 351,
"DisName" : "根河市",
"DisSort" : null,
"Id" : 2736
},
{
"CityID" : 352,
"DisName" : "新城区",
"DisSort" : null,
"Id" : 2737
},
{
"CityID" : 352,
"DisName" : "回民区",
"DisSort" : null,
"Id" : 2738
},
{
"CityID" : 352,
"DisName" : "玉泉区",
"DisSort" : null,
"Id" : 2739
},
{
"CityID" : 352,
"DisName" : "赛罕区",
"DisSort" : null,
"Id" : 2740
},
{
"CityID" : 352,
"DisName" : "土默特左旗",
"DisSort" : null,
"Id" : 2741
},
{
"CityID" : 352,
"DisName" : "托克托县",
"DisSort" : null,
"Id" : 2742
},
{
"CityID" : 352,
"DisName" : "和林格尔县",
"DisSort" : null,
"Id" : 2743
},
{
"CityID" : 352,
"DisName" : "清水河县",
"DisSort" : null,
"Id" : 2744
},
{
"CityID" : 352,
"DisName" : "武川县",
"DisSort" : null,
"Id" : 2745
},
{
"CityID" : 353,
"DisName" : "东河区",
"DisSort" : null,
"Id" : 2746
},
{
"CityID" : 353,
"DisName" : "昆都仑区",
"DisSort" : null,
"Id" : 2747
},
{
"CityID" : 353,
"DisName" : "青山区",
"DisSort" : null,
"Id" : 2748
},
{
"CityID" : 353,
"DisName" : "石拐区",
"DisSort" : null,
"Id" : 2749
},
{
"CityID" : 353,
"DisName" : "白云鄂博矿区",
"DisSort" : null,
"Id" : 2750
},
{
"CityID" : 353,
"DisName" : "九原区",
"DisSort" : null,
"Id" : 2751
},
{
"CityID" : 353,
"DisName" : "土默特右旗",
"DisSort" : null,
"Id" : 2752
},
{
"CityID" : 353,
"DisName" : "固阳县",
"DisSort" : null,
"Id" : 2753
},
{
"CityID" : 353,
"DisName" : "达尔罕茂明安联合旗",
"DisSort" : null,
"Id" : 2754
},
{
"CityID" : 354,
"DisName" : "海勃湾区",
"DisSort" : null,
"Id" : 2755
},
{
"CityID" : 354,
"DisName" : "海南区",
"DisSort" : null,
"Id" : 2756
},
{
"CityID" : 354,
"DisName" : "乌达区",
"DisSort" : null,
"Id" : 2757
},
{
"CityID" : 355,
"DisName" : "集宁区",
"DisSort" : null,
"Id" : 2758
},
{
"CityID" : 355,
"DisName" : "卓资县",
"DisSort" : null,
"Id" : 2759
},
{
"CityID" : 355,
"DisName" : "化德县",
"DisSort" : null,
"Id" : 2760
},
{
"CityID" : 355,
"DisName" : "商都县",
"DisSort" : null,
"Id" : 2761
},
{
"CityID" : 355,
"DisName" : "兴和县",
"DisSort" : null,
"Id" : 2762
},
{
"CityID" : 355,
"DisName" : "凉城县",
"DisSort" : null,
"Id" : 2763
},
{
"CityID" : 355,
"DisName" : "察哈尔右翼前旗",
"DisSort" : null,
"Id" : 2764
},
{
"CityID" : 355,
"DisName" : "察哈尔右翼中旗",
"DisSort" : null,
"Id" : 2765
},
{
"CityID" : 355,
"DisName" : "察哈尔右翼后旗",
"DisSort" : null,
"Id" : 2766
},
{
"CityID" : 355,
"DisName" : "四子王旗",
"DisSort" : null,
"Id" : 2767
},
{
"CityID" : 355,
"DisName" : "丰镇市",
"DisSort" : null,
"Id" : 2768
},
{
"CityID" : 356,
"DisName" : "科尔沁区",
"DisSort" : null,
"Id" : 2769
},
{
"CityID" : 356,
"DisName" : "科尔沁左翼中旗",
"DisSort" : null,
"Id" : 2770
},
{
"CityID" : 356,
"DisName" : "科尔沁左翼后旗",
"DisSort" : null,
"Id" : 2771
},
{
"CityID" : 356,
"DisName" : "开鲁县",
"DisSort" : null,
"Id" : 2772
},
{
"CityID" : 356,
"DisName" : "库伦旗",
"DisSort" : null,
"Id" : 2773
},
{
"CityID" : 356,
"DisName" : "奈曼旗",
"DisSort" : null,
"Id" : 2774
},
{
"CityID" : 356,
"DisName" : "扎鲁特旗",
"DisSort" : null,
"Id" : 2775
},
{
"CityID" : 356,
"DisName" : "霍林郭勒市",
"DisSort" : null,
"Id" : 2776
},
{
"CityID" : 357,
"DisName" : "红山区",
"DisSort" : null,
"Id" : 2777
},
{
"CityID" : 357,
"DisName" : "元宝山区",
"DisSort" : null,
"Id" : 2778
},
{
"CityID" : 357,
"DisName" : "松山区",
"DisSort" : null,
"Id" : 2779
},
{
"CityID" : 357,
"DisName" : "阿鲁科尔沁旗",
"DisSort" : null,
"Id" : 2780
},
{
"CityID" : 357,
"DisName" : "巴林左旗",
"DisSort" : null,
"Id" : 2781
},
{
"CityID" : 357,
"DisName" : "巴林右旗",
"DisSort" : null,
"Id" : 2782
},
{
"CityID" : 357,
"DisName" : "林西县",
"DisSort" : null,
"Id" : 2783
},
{
"CityID" : 357,
"DisName" : "克什克腾旗",
"DisSort" : null,
"Id" : 2784
},
{
"CityID" : 357,
"DisName" : "翁牛特旗",
"DisSort" : null,
"Id" : 2785
},
{
"CityID" : 357,
"DisName" : "喀喇沁旗",
"DisSort" : null,
"Id" : 2786
},
{
"CityID" : 357,
"DisName" : "宁城县",
"DisSort" : null,
"Id" : 2787
},
{
"CityID" : 357,
"DisName" : "敖汉旗",
"DisSort" : null,
"Id" : 2788
},
{
"CityID" : 358,
"DisName" : "东胜区",
"DisSort" : null,
"Id" : 2789
},
{
"CityID" : 358,
"DisName" : "达拉特旗",
"DisSort" : null,
"Id" : 2790
},
{
"CityID" : 358,
"DisName" : "准格尔旗",
"DisSort" : null,
"Id" : 2791
},
{
"CityID" : 358,
"DisName" : "鄂托克前旗",
"DisSort" : null,
"Id" : 2792
},
{
"CityID" : 358,
"DisName" : "鄂托克旗",
"DisSort" : null,
"Id" : 2793
},
{
"CityID" : 358,
"DisName" : "杭锦旗",
"DisSort" : null,
"Id" : 2794
},
{
"CityID" : 358,
"DisName" : "乌审旗",
"DisSort" : null,
"Id" : 2795
},
{
"CityID" : 358,
"DisName" : "伊金霍洛旗",
"DisSort" : null,
"Id" : 2796
},
{
"CityID" : 359,
"DisName" : "临河区",
"DisSort" : null,
"Id" : 2797
},
{
"CityID" : 359,
"DisName" : "五原县",
"DisSort" : null,
"Id" : 2798
},
{
"CityID" : 359,
"DisName" : "磴口县",
"DisSort" : null,
"Id" : 2799
},
{
"CityID" : 359,
"DisName" : "乌拉特前旗",
"DisSort" : null,
"Id" : 2800
},
{
"CityID" : 359,
"DisName" : "乌拉特中旗",
"DisSort" : null,
"Id" : 2801
},
{
"CityID" : 359,
"DisName" : "乌拉特后旗",
"DisSort" : null,
"Id" : 2802
},
{
"CityID" : 359,
"DisName" : "杭锦后旗",
"DisSort" : null,
"Id" : 2803
},
{
"CityID" : 360,
"DisName" : "二连浩特市",
"DisSort" : null,
"Id" : 2804
},
{
"CityID" : 360,
"DisName" : "锡林浩特市",
"DisSort" : null,
"Id" : 2805
},
{
"CityID" : 360,
"DisName" : "阿巴嘎旗",
"DisSort" : null,
"Id" : 2806
},
{
"CityID" : 360,
"DisName" : "苏尼特左旗",
"DisSort" : null,
"Id" : 2807
},
{
"CityID" : 360,
"DisName" : "苏尼特右旗",
"DisSort" : null,
"Id" : 2808
},
{
"CityID" : 360,
"DisName" : "东乌珠穆沁旗",
"DisSort" : null,
"Id" : 2809
},
{
"CityID" : 360,
"DisName" : "西乌珠穆沁旗",
"DisSort" : null,
"Id" : 2810
},
{
"CityID" : 360,
"DisName" : "太仆寺旗",
"DisSort" : null,
"Id" : 2811
},
{
"CityID" : 360,
"DisName" : "镶黄旗",
"DisSort" : null,
"Id" : 2812
},
{
"CityID" : 360,
"DisName" : "正镶白旗",
"DisSort" : null,
"Id" : 2813
},
{
"CityID" : 360,
"DisName" : "正蓝旗",
"DisSort" : null,
"Id" : 2814
},
{
"CityID" : 360,
"DisName" : "多伦县",
"DisSort" : null,
"Id" : 2815
},
{
"CityID" : 361,
"DisName" : "乌兰浩特市",
"DisSort" : null,
"Id" : 2816
},
{
"CityID" : 361,
"DisName" : "阿尔山市",
"DisSort" : null,
"Id" : 2817
},
{
"CityID" : 361,
"DisName" : "科尔沁右翼前旗",
"DisSort" : null,
"Id" : 2818
},
{
"CityID" : 361,
"DisName" : "科尔沁右翼中旗",
"DisSort" : null,
"Id" : 2819
},
{
"CityID" : 361,
"DisName" : "扎赉特旗",
"DisSort" : null,
"Id" : 2820
},
{
"CityID" : 361,
"DisName" : "突泉县",
"DisSort" : null,
"Id" : 2821
},
{
"CityID" : 362,
"DisName" : "阿拉善左旗",
"DisSort" : null,
"Id" : 2822
},
{
"CityID" : 362,
"DisName" : "阿拉善右旗",
"DisSort" : null,
"Id" : 2823
},
{
"CityID" : 362,
"DisName" : "额济纳旗",
"DisSort" : null,
"Id" : 2824
}
];
|
var express = require('express');
var Model = require('../models/Upload');
var multiparty = require('multiparty');
var fileHandler = require('../util/fileHandler');
var fs = require('fs');
var router = express.Router();
router.route('/:id?')
.post(function(req, res) {
var defaultDir = './pub/files/';
var username = req.session.user ? req.session.user.username : 'default';
var userDir = defaultDir + username;
fileHandler.fileCreate(defaultDir, username).then(function() {
var form = new multiparty.Form({ uploadDir: userDir });
form.parse(req, function(err, fields, files) {
if (err) {
res.status(500);
return res.msg(0, 'Something error!');
}
var taskid = fields.taskid;
var inputFile = files.file[0];
var uploadedPath = inputFile.path;
var taskPath = userDir + '/' + taskid + inputFile.originalFilename;
fs.rename(uploadedPath, taskPath, function(err) {
if (err) {
res.status(500);
return res.msg(0, 'Something error!');
}
return res.msg(1, 'Create object success!');
});
});
});
});
module.exports = router;
|
// @flow
import SqliteFormatter from '../src/formatters/SqliteFormatter';
const tabbedKeywords = [
'AND',
'BETWEEN',
'CASE',
'ELSE',
'END',
'ON',
'OR',
'OVER',
'WHEN'
];
const untabbedKeywords = [
'FROM',
'GROUP BY',
'HAVING',
'JOIN',
'CROSS JOIN',
'INNER JOIN',
'LEFT JOIN',
'RIGHT JOIN',
'ORDER BY',
'WHERE',
'WITH',
'SET'
];
const unchangedKeywords = [
'IN',
'ALL',
'AS',
'ASC',
'DESC',
'DISTINCT',
'EXISTS',
'NOT',
'NULL',
'LIKE'
];
describe('Formatters', () => {
const numSpaces = 2;
it('should format basic sqlite statement', () => {
expect(SqliteFormatter('SELECT * FROM users')).toMatchSnapshot();
});
it('formatting a full SELECT query', () => {
expect(
SqliteFormatter(
'SELECT a.b, c.d FROM a JOIN b on a.b = c.d WHERE a.b = 1 AND c.d = 1',
numSpaces
)
).toMatchSnapshot();
});
it('formatting a full UPDATE query', () => {
expect(
SqliteFormatter('UPDATE a SET a.b = 1, a.c = 2 WHERE a.d = 3', numSpaces)
).toMatchSnapshot();
});
it('formatting a full DELETE query', () => {
expect(
SqliteFormatter('DELETE FROM a WHERE a.b = 1 AND a.c = 2', numSpaces)
).toMatchSnapshot();
});
describe('SqliteFormatter', () => {
describe('formatting of tabbed keywords', () => {
tabbedKeywords.forEach(word => {
it(`formatting of '${word}'`, () => {
expect(SqliteFormatter(`foo ${word} bar`, 2)).toMatchSnapshot();
});
});
});
describe('formatting of untabbed keywords', () => {
untabbedKeywords.forEach(word => {
it(`formatting of '${word}'`, () => {
expect(SqliteFormatter(`foo ${word} bar`, 2)).toMatchSnapshot();
});
});
});
describe('formatting of unchanged keywords', () => {
unchangedKeywords.forEach(word => {
it(`formatting of '${word}'`, () => {
expect(SqliteFormatter(`foo ${word} bar`, 2)).toMatchSnapshot();
});
});
});
describe('SELECTs', () => {
it("formatting of 'SELECT'", () => {
expect(SqliteFormatter('SELECT foo bar', 2)).toMatchSnapshot();
});
it("formatting of ' SELECT'", () => {
expect(SqliteFormatter(' SELECT foo bar', 2)).toMatchSnapshot();
});
it("formatting of '(SELECT'", () => {
expect(SqliteFormatter('foo (SELECT bar', 2)).toMatchSnapshot();
});
it("formatting of '( SELECT'", () => {
expect(SqliteFormatter('foo ( SELECT bar', 2)).toMatchSnapshot();
});
it("formatting of ') SELECT'", () => {
expect(SqliteFormatter('foo) SELECT bar', 2)).toMatchSnapshot();
});
it("formatting of ')SELECT'", () => {
expect(SqliteFormatter('foo)SELECT bar', 2)).toMatchSnapshot();
});
it('Formatting when selecting multiple fields', () => {
expect(SqliteFormatter('SELECT foo, bar, baz', 2)).toMatchSnapshot();
});
});
describe('UPDATEs', () => {
it("formatting of 'UPDATE'", () => {
expect(SqliteFormatter('UPDATE foo bar', 2)).toMatchSnapshot();
});
it("formatting of ' UPDATE'", () => {
expect(SqliteFormatter(' UPDATE foo bar', 2)).toMatchSnapshot();
});
});
describe('DELETEs', () => {
it("formatting of 'DELETE'", () => {
expect(SqliteFormatter('DELETE foo bar', 2)).toMatchSnapshot();
});
it("formatting of ' DELETE'", () => {
expect(SqliteFormatter(' DELETE foo bar', 2)).toMatchSnapshot();
});
});
describe('special case keywords', () => {
it("formatting of 'THEN'", () => {
expect(SqliteFormatter('foo THEN bar', 2)).toMatchSnapshot();
});
it("formatting of 'UNION'", () => {
expect(SqliteFormatter('foo UNION bar', 2)).toMatchSnapshot();
});
it("formatting of 'USING'", () => {
expect(SqliteFormatter('foo USING bar', 2)).toMatchSnapshot();
});
});
describe('nested queries', () => {
it('formatting of single nested query', () => {
expect(
SqliteFormatter('SELECT foo FROM (SELECT bar FROM baz)', 2)
).toMatchSnapshot();
});
it('formatting of multiple nested queries', () => {
expect(
SqliteFormatter(
'SELECT foo FROM (SELECT bar FROM (SELECT baz FROM quux))',
2
)
).toMatchSnapshot();
});
});
});
});
|
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"
}), 'TabUnselectedOutlined');
|
version https://git-lfs.github.com/spec/v1
oid sha256:e2082e1ed7406f7199a4d13d30fc7dc2a59a759ca9c52e86baa391a2049d47b2
size 23958
|
/*jshint globalstrict: true*/
/*global module*/
/*global console*/
"use strict";
module.exports = {
reporter: function(results, data, opts) {
console.log('{"report":' + JSON.stringify(results, null, 2) + '}');
}
};
|
/**
* Chat
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This handles chat and chat commands sent from users to chatrooms
* and PMs. The main function you're lookoing for is Chat.parse
* (scroll down to its definition for details)
*
* Individual commands are put in:
* chat-commands.js - "core" commands that shouldn't be modified
* chat-plugins/ - other commands that can be safely modified
*
* The command API is (mostly) documented in chat-plugins/COMMANDS.md
*
* @license MIT license
*/
/*
To reload chat commands:
/hotpatch chat
*/
'use strict';
const MAX_MESSAGE_LENGTH = 300;
const BROADCAST_COOLDOWN = 20 * 1000;
const MESSAGE_COOLDOWN = 5 * 60 * 1000;
const MAX_PARSE_RECURSION = 10;
const VALID_COMMAND_TOKENS = '/!';
const BROADCAST_TOKEN = '!';
const FS = require('./fs');
let Chat = module.exports;
// Regex copied from the client
const domainRegex = '[a-z0-9\\-]+(?:[.][a-z0-9\\-]+)*';
const parenthesisRegex = '[(](?:[^\\s()<>&]|&)*[)]';
const linkRegex = new RegExp(
'(?:' +
'(?:' +
// When using www. or http://, allow any-length TLD (like .museum)
'(?:https?://|\\bwww[.])' + domainRegex +
'|\\b' + domainRegex + '[.]' +
// Allow a common TLD, or any 2-3 letter TLD followed by : or /
'(?:com?|org|net|edu|info|us|jp|[a-z]{2,3}(?=[:/]))' +
')' +
'(?:[:][0-9]+)?' +
'\\b' +
'(?:' +
'/' +
'(?:' +
'(?:' +
'[^\\s()&<>]|&|"' +
'|' + parenthesisRegex +
')*' +
// URLs usually don't end with punctuation, so don't allow
// punctuation symbols that probably aren't related to URL.
'(?:' +
'[^\\s`()\\[\\]{}\'".,!?;:&<>*_`^~\\\\]' +
'|' + parenthesisRegex +
')' +
')?' +
')?' +
'|[a-z0-9.]+\\b@' + domainRegex + '[.][a-z]{2,3}' +
')' +
'(?!.*>)',
'ig'
);
const hyperlinkRegex = new RegExp(`(.+)<(.+)>`, 'i');
// Matches U+FE0F and all Emoji_Presentation characters. More details on
// http://www.unicode.org/Public/emoji/5.0/emoji-data.txt
const emojiRegex = /[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\uFE0F\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6F8}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F94C}\u{1F950}-\u{1F96B}\u{1F980}-\u{1F997}\u{1F9C0}\u{1F9D0}-\u{1F9E6}]/u;
/** @typedef {{token: string, endToken?: string, resolver: (str: string) => string}} Resolver */
/** @type {Resolver[]} */
const formattingResolvers = [
{token: "**", resolver: str => `<b>${str}</b>`},
{token: "__", resolver: str => `<i>${str}</i>`},
{token: "``", resolver: str => `<code>${str}</code>`},
{token: "~~", resolver: str => `<s>${str}</s>`},
{token: "^^", resolver: str => `<sup>${str}</sup>`},
{token: "\\", resolver: str => `<sub>${str}</sub>`},
{token: "<<", endToken: ">>", resolver: str => str.replace(/[a-z0-9-]/g, '').length ? false : `«<a href="${str}" target="_blank">${str}</a>»`},
{token: "[[", endToken: "]]", resolver: str => {
let hl = hyperlinkRegex.exec(str);
if (hl) return `<a href="${hl[2].trim().replace(/^([a-z]*[^a-z:])/g, 'http://$1')}">${hl[1].trim()}</a>`;
let query = str;
let querystr = str;
let split = str.split(':');
if (split.length > 1) {
let opt = toId(split[0]);
query = split.slice(1).join(':').trim();
switch (opt) {
case 'wiki':
case 'wikipedia':
return `<a href="http://en.wikipedia.org/w/index.php?title=Special:Search&search=${encodeURIComponent(query)}" target="_blank">${querystr}</a>`;
case 'yt':
case 'youtube':
query += " site:youtube.com";
querystr = `yt: ${query}`;
break;
case 'pokemon':
case 'item':
return `<psicon title="${query}" ${opt}="${query}" />`;
}
}
return `<a href="http://www.google.com/search?ie=UTF-8&btnI&q=${encodeURIComponent(query)}" target="_blank">${querystr}</a>`;
}},
];
class PatternTester {
// This class sounds like a RegExp
// In fact, one could in theory implement it as a RegExp subclass
// However, ES2016 RegExp subclassing is a can of worms, and it wouldn't allow us
// to tailor the test method for fast command parsing.
constructor() {
/** @type {string[]} */
this.elements = [];
/** @type {Set<string>} */
this.fastElements = new Set();
/** @type {?RegExp} */
this.regexp = null;
}
/**
* @param {string} elem
*/
fastNormalize(elem) {
return elem.slice(0, -1);
}
update() {
const slowElements = this.elements.filter(elem => !this.fastElements.has(this.fastNormalize(elem)));
if (slowElements.length) {
this.regexp = new RegExp('^(' + slowElements.map(elem => '(?:' + elem + ')').join('|') + ')', 'i');
}
}
/**
* @param {string[]} elems
*/
register(...elems) {
for (const elem of elems) {
this.elements.push(elem);
if (/^[^ ^$?|()[\]]+ $/.test(elem)) {
this.fastElements.add(this.fastNormalize(elem));
}
}
this.update();
}
/**
* @param {string} text
*/
test(text) {
const spaceIndex = text.indexOf(' ');
if (this.fastElements.has(spaceIndex >= 0 ? text.slice(0, spaceIndex) : text)) {
return true;
}
if (!this.regexp) return false;
return this.regexp.test(text);
}
}
Chat.multiLinePattern = new PatternTester();
/*********************************************************
* Load command files
*********************************************************/
Chat.baseCommands = undefined;
Chat.commands = undefined;
/*********************************************************
* Load chat filters
*********************************************************/
Chat.filters = [];
Chat.filter = function (message, user, room, connection, targetUser) {
// Chat filters can choose to:
// 1. return false OR null - to not send a user's message
// 2. return an altered string - to alter a user's message
// 3. return undefined to send the original message through
const originalMessage = message;
for (const filter of Chat.filters) {
const output = filter.call(this, message, user, room, connection, targetUser, originalMessage);
if (output !== undefined) message = output;
if (!message) return message;
}
return message;
};
/*********************************************************
* Parser
*********************************************************/
class CommandContext {
/**
* @param {{message: string, room: Room, user: User, connection: Connection, pmTarget?: User, cmd: string, cmdToken: string, target: string, fullCmd: string}} options
*/
constructor(options) {
this.message = options.message || ``;
this.recursionDepth = 0;
// message context
this.room = options.room;
this.user = options.user;
this.connection = options.connection;
this.pmTarget = options.pmTarget;
// command context
this.cmd = options.cmd || '';
this.cmdToken = options.cmdToken || '';
this.target = options.target || ``;
this.fullCmd = options.fullCmd || '';
// target user
this.targetUser = null;
this.targetUsername = "";
this.inputUsername = "";
}
/**
* @param {any} [message]
* @return {any}
*/
parse(message) {
if (message) {
// spawn subcontext
let subcontext = new CommandContext(this);
subcontext.recursionDepth++;
if (subcontext.recursionDepth > MAX_PARSE_RECURSION) {
throw new Error("Too much command recursion");
}
subcontext.message = message;
return subcontext.parse();
}
message = this.message;
let originalRoom = this.room;
if (this.room && !(this.user.userid in this.room.users)) {
this.room = Rooms.global;
}
let giveExp = false;
let commandHandler = this.splitCommand(message);
if (typeof commandHandler === 'function') {
message = this.run(commandHandler);
} else {
if (commandHandler === '!') {
if (originalRoom === Rooms.global) {
return this.popupReply(`You tried use "${message}" as a global command, but it is not a global command.`);
} else if (originalRoom) {
return this.popupReply(`You tried to send "${message}" to the room "${originalRoom.id}" but it failed because you were not in that room.`);
}
return this.errorReply(`The command "${this.cmdToken}${this.fullCmd}" is unavailable in private messages. To send a message starting with "${this.cmdToken}${this.fullCmd}", type "${this.cmdToken}${this.cmdToken}${this.fullCmd}".`);
}
if (this.cmdToken) {
// To guard against command typos, show an error message
if (this.cmdToken === BROADCAST_TOKEN) {
if (/[a-z0-9]/.test(this.cmd.charAt(0))) {
return this.errorReply(`The command "${this.cmdToken}${this.fullCmd}" does not exist.`);
}
} else {
return this.errorReply(`The command "${this.cmdToken}${this.fullCmd}" does not exist. To send a message starting with "${this.cmdToken}${this.fullCmd}", type "${this.cmdToken}${this.cmdToken}${this.fullCmd}".`);
}
} else if (!VALID_COMMAND_TOKENS.includes(message.charAt(0)) && VALID_COMMAND_TOKENS.includes(message.trim().charAt(0))) {
message = message.trim();
if (message.charAt(0) !== BROADCAST_TOKEN) {
message = message.charAt(0) + message;
}
}
if (Date.now() > (this.user.lastMessageTime + 5000)) giveExp = true;
message = this.canTalk(message);
}
// Output the message
if (message && message !== true && typeof message.then !== 'function') {
if (this.pmTarget) {
let noEmotes = message;
let emoticons = SG.parseEmoticons(message);
if (emoticons) {
noEmotes = message;
message = "/html " + emoticons;
}
let buf = `|pm|${this.user.getIdentity()}|${this.pmTarget.getIdentity()}|${message}`;
this.user.send(buf);
if (Users.ShadowBan.checkBanned(this.user)) {
Users.ShadowBan.addMessage(this.user, "Private to " + this.pmTarget.getIdentity(), noEmotes);
} else {
if (this.pmTarget !== this.user) this.pmTarget.send(buf);
}
this.pmTarget.lastPM = this.user.userid;
this.user.lastPM = this.pmTarget.userid;
} else {
let emoticons = SG.parseEmoticons(message);
if (emoticons && !this.room.disableEmoticons) {
if (Users.ShadowBan.checkBanned(this.user)) {
Users.ShadowBan.addMessage(this.user, "To " + this.room.id, message);
if (!SG.ignoreEmotes[this.user.userid]) this.user.sendTo(this.room, (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') + this.user.getIdentity(this.room.id) + '|/html ' + emoticons);
if (SG.ignoreEmotes[this.user.userid]) this.user.sendTo(this.room, (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') + this.user.getIdentity(this.room.id) + '|' + message);
this.room.update();
return false;
}
for (let u in this.room.users) {
let curUser = Users(u);
if (!curUser || !curUser.connected) continue;
if (SG.ignoreEmotes[curUser.userid]) {
curUser.sendTo(this.room, (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') + this.user.getIdentity(this.room.id) + '|' + message);
continue;
}
curUser.sendTo(this.room, (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') + this.user.getIdentity(this.room.id) + '|/html ' + emoticons);
}
this.room.log.push((this.room.type === 'chat' ? (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') : '|c|') + this.user.getIdentity(this.room.id) + '|' + message);
this.room.lastUpdate = this.room.log.length;
this.room.messageCount++;
} else {
if (Users.ShadowBan.checkBanned(this.user)) {
Users.ShadowBan.addMessage(this.user, "To " + this.room.id, message);
this.user.sendTo(this.room, (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') + this.user.getIdentity(this.room.id) + '|' + message);
} else {
this.room.add((this.room.type === 'chat' ? (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') : '|c|') + this.user.getIdentity(this.room.id) + '|' + message);
this.room.messageCount++;
}
}
//this.room.add(`|c|${this.user.getIdentity(this.room.id)}|${message}`);
}
}
if (this.user.registered && giveExp) SG.addExp(this.user.userid, this.room, 1);
this.update();
return message;
}
/**
* @param {string} message
* @param {boolean} recursing
* @return string
*/
splitCommand(message = this.message, recursing = false) {
this.cmd = '';
this.cmdToken = '';
this.target = '';
if (!message || !message.trim().length) return;
// hardcoded commands
if (message.startsWith(`>> `)) {
message = `/eval ${message.slice(3)}`;
} else if (message.startsWith(`>>> `)) {
message = `/evalbattle ${message.slice(4)}`;
} else if (message.startsWith(`/me`) && /[^A-Za-z0-9 ]/.test(message.charAt(3))) {
message = `/mee ${message.slice(3)}`;
} else if (message.startsWith(`/ME`) && /[^A-Za-z0-9 ]/.test(message.charAt(3))) {
message = `/MEE ${message.slice(3)}`;
}
let cmdToken = message.charAt(0);
if (!VALID_COMMAND_TOKENS.includes(cmdToken)) return;
if (cmdToken === message.charAt(1)) return;
if (cmdToken === BROADCAST_TOKEN && /[^A-Za-z0-9]/.test(message.charAt(1))) return;
let cmd = '',
target = '';
let spaceIndex = message.indexOf(' ');
if (spaceIndex > 0) {
cmd = message.slice(1, spaceIndex).toLowerCase();
target = message.slice(spaceIndex + 1);
} else {
cmd = message.slice(1).toLowerCase();
target = '';
}
let curCommands = Chat.commands;
let commandHandler;
let fullCmd = cmd;
do {
if (curCommands.hasOwnProperty(cmd)) {
commandHandler = curCommands[cmd];
} else {
commandHandler = undefined;
}
if (typeof commandHandler === 'string') {
// in case someone messed up, don't loop
commandHandler = curCommands[commandHandler];
} else if (Array.isArray(commandHandler) && !recursing) {
return this.splitCommand(cmdToken + 'help ' + fullCmd.slice(0, -4), true);
}
if (commandHandler && typeof commandHandler === 'object') {
let spaceIndex = target.indexOf(' ');
if (spaceIndex > 0) {
cmd = target.substr(0, spaceIndex).toLowerCase();
target = target.substr(spaceIndex + 1);
} else {
cmd = target.toLowerCase();
target = '';
}
fullCmd += ' ' + cmd;
curCommands = commandHandler;
}
} while (commandHandler && typeof commandHandler === 'object');
if (!commandHandler && curCommands.default) {
commandHandler = curCommands.default;
if (typeof commandHandler === 'string') {
commandHandler = curCommands[commandHandler];
}
}
if (!commandHandler && !recursing) {
for (let g in Config.groups) {
let groupid = Config.groups[g].id;
target = toId(target);
if (cmd === groupid) {
return this.splitCommand(`/promote ${target}, ${g}`, true);
} else if (cmd === 'global' + groupid) {
return this.splitCommand(`/globalpromote ${target}, ${g}`, true);
} else if (cmd === 'de' + groupid || cmd === 'un' + groupid || cmd === 'globalde' + groupid || cmd === 'deglobal' + groupid) {
return this.splitCommand(`/demote ${target}`, true);
} else if (cmd === 'room' + groupid) {
return this.splitCommand(`/roompromote ${target}, ${g}`, true);
} else if (cmd === 'roomde' + groupid || cmd === 'deroom' + groupid || cmd === 'roomun' + groupid) {
return this.splitCommand(`/roomdemote ${target}`, true);
}
}
}
this.cmd = cmd;
this.cmdToken = cmdToken;
this.target = target;
this.fullCmd = fullCmd;
if (typeof commandHandler === 'function' && (this.pmTarget || this.room === Rooms.global)) {
if (!curCommands['!' + (typeof curCommands[cmd] === 'string' ? curCommands[cmd] : cmd)]) {
return '!';
}
}
return commandHandler;
}
run(commandHandler) {
if (typeof commandHandler === 'string') commandHandler = Chat.commands[commandHandler];
let result;
try {
result = commandHandler.call(this, this.target, this.room, this.user, this.connection, this.cmd, this.message);
} catch (err) {
require('./crashlogger')(err, 'A chat command', {
user: this.user.name,
room: this.room && this.room.id,
pmTarget: this.pmTarget && this.pmTarget.name,
message: this.message,
});
Rooms.global.reportCrash(err);
this.sendReply(`|html|<div class="broadcast-red"><b>Pokemon Showdown crashed!</b><br />Don't worry, we're working on fixing it.</div>`);
}
if (result === undefined) result = false;
return result;
}
checkFormat(room, user, message) {
if (!room) return true;
if (!room.filterStretching && !room.filterCaps && !room.filterEmojis) return true;
if (user.can('bypassall')) return true;
if (room.filterStretching && user.name.match(/(.+?)\1{5,}/i)) {
return this.errorReply(`Your username contains too much stretching, which this room doesn't allow.`);
}
if (room.filterCaps && user.name.match(/[A-Z\s]{6,}/)) {
return this.errorReply(`Your username contains too many capital letters, which this room doesn't allow.`);
}
if (room.filterEmojis && user.name.match(emojiRegex)) {
return this.errorReply(`Your username contains emojis, which this room doesn't allow.`);
}
// Removes extra spaces and null characters
message = message.trim().replace(/[ \u0000\u200B-\u200F]+/g, ' ');
if (room.filterStretching && message.match(/(.+?)\1{7,}/i)) {
return this.errorReply(`Your message contains too much stretching, which this room doesn't allow.`);
}
if (room.filterCaps && message.match(/[A-Z\s]{18,}/)) {
return this.errorReply(`Your message contains too many capital letters, which this room doesn't allow.`);
}
if (room.filterEmojis && message.match(emojiRegex)) {
return this.errorReply(`Your message contains emojis, which this room doesn't allow.`);
}
return true;
}
checkSlowchat(room, user) {
if (!room || !room.slowchat) return true;
let lastActiveSeconds = (Date.now() - user.lastMessageTime) / 1000;
if (lastActiveSeconds < room.slowchat) return false;
return true;
}
checkBanwords(room, message) {
if (!room) return true;
if (!room.banwordRegex) {
if (room.banwords && room.banwords.length) {
room.banwordRegex = new RegExp('(?:\\b|(?!\\w))(?:' + room.banwords.join('|') + ')(?:\\b|\\B(?!\\w))', 'i');
} else {
room.banwordRegex = true;
}
}
if (!message) return true;
if (room.banwordRegex !== true && room.banwordRegex.test(message)) {
return false;
}
return true;
}
checkGameFilter() {
if (!this.room || !this.room.game || !this.room.game.onChatMessage) return false;
return this.room.game.onChatMessage(this.message);
}
pmTransform(message) {
let prefix = `|pm|${this.user.getIdentity()}|${this.pmTarget.getIdentity()}|`;
return message.split('\n').map(message => {
if (message.startsWith('||')) {
return prefix + '/text ' + message.slice(2);
} else if (message.startsWith('|html|')) {
return prefix + '/raw ' + message.slice(6);
} else if (message.startsWith('|raw|')) {
return prefix + '/raw ' + message.slice(5);
} else if (message.startsWith('|c~|')) {
return prefix + message.slice(4);
} else if (message.startsWith('|c|~|/')) {
return prefix + message.slice(5);
}
return prefix + '/text ' + message;
}).join('\n');
}
sendReply(data) {
if (this.broadcasting) {
// broadcasting
if (this.pmTarget) {
data = this.pmTransform(data);
this.user.send(data);
if (this.pmTarget !== this.user) this.pmTarget.send(data);
} else {
this.room.add(data);
}
} else {
// not broadcasting
if (this.pmTarget) {
data = this.pmTransform(data);
this.connection.send(data);
} else {
this.connection.sendTo(this.room, data);
}
}
}
errorReply(message) {
if (this.pmTarget) {
let prefix = '|pm|' + this.user.getIdentity() + '|' + this.pmTarget.getIdentity() + '|/error ';
this.connection.send(prefix + message.replace(/\n/g, prefix));
} else {
this.sendReply('|html|<div class="message-error">' + Chat.escapeHTML(message).replace(/\n/g, '<br />') + '</div>');
}
}
addBox(html) {
this.add('|html|<div class="infobox">' + html + '</div>');
}
sendReplyBox(html) {
this.sendReply('|html|<div class="infobox">' + html + '</div>');
}
popupReply(message) {
this.connection.popup(message);
}
add(data) {
if (this.pmTarget) {
data = this.pmTransform(data);
this.user.send(data);
if (this.pmTarget !== this.user) this.pmTarget.send(data);
return;
}
this.room.add(data);
}
send(data) {
if (this.pmTarget) {
data = this.pmTransform(data);
this.user.send(data);
if (this.pmTarget !== this.user) this.pmTarget.send(data);
return;
}
this.room.send(data);
}
sendModCommand(data) {
this.room.sendModCommand(data);
}
privateModCommand(data, logOnlyText) {
this.room.sendModCommand(data);
this.logEntry(data);
this.room.modlog(data + (logOnlyText || ""));
}
globalModlog(action, user, text) {
let buf = "(" + this.room.id + ") " + action + ": ";
if (typeof user === 'string') {
buf += "[" + toId(user) + "]";
} else {
let userid = user.getLastId();
buf += "[" + userid + "]";
if (user.autoconfirmed && user.autoconfirmed !== userid) buf += " ac:[" + user.autoconfirmed + "]";
}
buf += text;
Rooms.global.modlog(buf);
}
logEntry(data) {
if (this.pmTarget) return;
this.room.logEntry(data);
}
addModCommand(text, logOnlyText) {
this.room.addLogMessage(this.user, text);
this.room.modlog(text + (logOnlyText || ""));
}
logModCommand(text) {
this.room.modlog(text);
}
update() {
if (this.room) this.room.update();
}
can(permission, target, room) {
if (!this.user.can(permission, target, room)) {
this.errorReply(this.cmdToken + this.fullCmd + " - Access denied.");
return false;
}
return true;
}
canBroadcast(suppressMessage) {
if (!this.broadcasting && this.cmdToken === BROADCAST_TOKEN) {
let message = this.canTalk(suppressMessage || this.message);
if (!message) return false;
if (!this.pmTarget && !this.user.can('broadcast', null, this.room)) {
this.errorReply("You need to be voiced to broadcast this command's information.");
this.errorReply("To see it for yourself, use: /" + this.message.substr(1));
return false;
}
if (Users.ShadowBan.checkBanned(this.user)) {
Users.ShadowBan.addMessage(this.user, "To " + this.room.id, message);
this.user.sendTo(this.room, (this.room.type === 'chat' ? '|c:|' + (~~(Date.now() / 1000)) + '|' : '|c|') + this.user.getIdentity(this.room.id) + '|' + message);
this.parse('/' + this.message.substr(1));
return false;
}
// broadcast cooldown
let broadcastMessage = message.toLowerCase().replace(/[^a-z0-9\s!,]/g, '');
if (this.room && this.room.lastBroadcast === this.broadcastMessage &&
this.room.lastBroadcastTime >= Date.now() - BROADCAST_COOLDOWN) {
this.errorReply("You can't broadcast this because it was just broadcasted.");
return false;
}
this.message = message;
this.broadcastMessage = broadcastMessage;
}
return true;
}
runBroadcast(suppressMessage) {
if (this.broadcasting || this.cmdToken !== BROADCAST_TOKEN) {
// Already being broadcast, or the user doesn't intend to broadcast.
return true;
}
if (!this.broadcastMessage) {
// Permission hasn't been checked yet. Do it now.
if (!this.canBroadcast(suppressMessage)) return false;
}
if (this.pmTarget) {
this.add('|c~|' + (suppressMessage || this.message));
} else {
this.add('|c|' + this.user.getIdentity(this.room.id) + '|' + (suppressMessage || this.message));
}
if (!this.pmTarget) {
this.room.lastBroadcast = this.broadcastMessage;
this.room.lastBroadcastTime = Date.now();
}
this.broadcasting = true;
return true;
}
canTalk(message, room, targetUser) {
if (room === undefined) room = this.room;
if (targetUser === undefined && this.pmTarget) {
room = undefined;
targetUser = this.pmTarget;
}
let user = this.user;
let connection = this.connection;
if (room && room.id === 'global') {
// should never happen
// console.log(`Command tried to write to global: ${user.name}: ${message}`);
return false;
}
if (!user.named) {
connection.popup(`You must choose a name before you can talk.`);
return false;
}
if (!user.can('bypassall')) {
let lockType = (user.namelocked ? `namelocked` : user.locked ? `locked` : ``);
let lockExpiration = Punishments.checkLockExpiration(user.namelocked || user.locked);
if (room) {
if (lockType) {
this.errorReply(`You are ${lockType} and can't talk in chat. ${lockExpiration}`);
return false;
}
if (room.isMuted(user)) {
this.errorReply(`You are muted and cannot talk in this room.`);
return false;
}
if (room.modchat && !user.authAtLeast(room.modchat, room)) {
if (room.modchat === 'autoconfirmed') {
this.errorReply(`Because moderated chat is set, your account must be at least one week old and you must have won at least one ladder game to speak in this room.`);
return false;
}
const groupName = Config.groups[room.modchat] && Config.groups[room.modchat].name || room.modchat;
this.errorReply(`Because moderated chat is set, you must be of rank ${groupName} or higher to speak in this room.`);
return false;
}
if (!(user.userid in room.users)) {
connection.popup("You can't send a message to this room without being in it.");
return false;
}
}
if (targetUser) {
if (lockType && !targetUser.can('lock')) {
return this.errorReply(`You are ${lockType} and can only private message members of the global moderation team (users marked by @ or above in the Help room). ${lockExpiration}`);
}
if (targetUser.locked && !user.can('lock')) {
return this.errorReply(`The user "${targetUser.name}" is locked and cannot be PMed.`);
}
if (Config.pmmodchat && !user.authAtLeast(Config.pmmodchat) && !targetUser.canPromote(user.group, Config.pmmodchat)) {
let groupName = Config.groups[Config.pmmodchat] && Config.groups[Config.pmmodchat].name || Config.pmmodchat;
return this.errorReply(`On this server, you must be of rank ${groupName} or higher to PM users.`);
}
if (targetUser.ignorePMs && targetUser.ignorePMs !== user.group && !user.can('lock')) {
if (!targetUser.can('lock')) {
return this.errorReply(`This user is blocking private messages right now.`);
} else if (targetUser.can('roomowner')) {
return this.errorReply(`This ` + (targetUser.can('bypassall') ? `admin` : `leader`) + ` is too busy to answer private messages right now. Please contact a different staff member.`);
}
}
if (user.ignorePMs && user.ignorePMs !== targetUser.group && !targetUser.can('lock')) {
return this.errorReply(`You are blocking private messages right now.`);
}
}
}
if (typeof message === 'string') {
if (!message) {
connection.popup("Your message can't be blank.");
return false;
}
let length = message.length;
length += 10 * message.replace(/[^\ufdfd]*/g, '').length;
if (length > MAX_MESSAGE_LENGTH && !user.can('ignorelimits')) {
this.errorReply("Your message is too long: " + message);
return false;
}
// remove zalgo
message = message.replace(/[\u0300-\u036f\u0483-\u0489\u0610-\u0615\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06ED\u0E31\u0E34-\u0E3A\u0E47-\u0E4E]{3,}/g, '');
if (/[\u239b-\u23b9]/.test(message)) {
this.errorReply("Your message contains banned characters.");
return false;
}
if (!this.checkFormat(room, user, message)) {
return false;
}
if (!this.checkSlowchat(room, user) && !user.can('mute', null, room)) {
this.errorReply("This room has slow-chat enabled. You can only talk once every " + room.slowchat + " seconds.");
return false;
}
if (!this.checkBanwords(room, user.name) && !user.can('bypassall')) {
this.errorReply(`Your username contains a phrase banned by this room.`);
return false;
}
if (!this.checkBanwords(room, message) && !user.can('mute', null, room)) {
this.errorReply("Your message contained banned words.");
return false;
}
let gameFilter = this.checkGameFilter();
if (gameFilter && !user.can('bypassall')) {
this.errorReply(gameFilter);
return false;
}
if (room) {
let normalized = message.trim();
if ((room.id === 'lobby' || room.id === 'help') && (normalized === user.lastMessage) &&
((Date.now() - user.lastMessageTime) < MESSAGE_COOLDOWN)) {
this.errorReply("You can't send the same message again so soon.");
return false;
}
user.lastMessage = message;
user.lastMessageTime = Date.now();
}
if (Chat.filters.length) {
return Chat.filter.call(this, message, user, room, connection, targetUser);
}
return message;
}
return true;
}
canEmbedURI(uri, isRelative) {
if (uri.startsWith('https://')) return uri;
if (uri.startsWith('//')) return uri;
if (uri.startsWith('data:')) return uri;
if (!uri.startsWith('http://')) {
if (/^[a-z]+:\/\//.test(uri) || isRelative) {
return this.errorReply("URIs must begin with 'https://' or 'http://' or 'data:'");
}
} else {
uri = uri.slice(7);
}
let slashIndex = uri.indexOf('/');
let domain = (slashIndex >= 0 ? uri.slice(0, slashIndex) : uri);
// heuristic that works for all the domains we care about
let secondLastDotIndex = domain.lastIndexOf('.', domain.length - 5);
if (secondLastDotIndex >= 0) domain = domain.slice(secondLastDotIndex + 1);
let approvedDomains = {
'imgur.com': 1,
'gyazo.com': 1,
'puu.sh': 1,
'rotmgtool.com': 1,
'pokemonshowdown.com': 1,
'nocookie.net': 1,
'blogspot.com': 1,
'imageshack.us': 1,
'deviantart.net': 1,
'd.pr': 1,
'pokefans.net': 1,
};
if (domain in approvedDomains) {
return '//' + uri;
}
if (domain === 'bit.ly') {
return this.errorReply("Please don't use URL shorteners.");
}
// unknown URI, allow HTTP to be safe
return 'http://' + uri;
}
canHTML(html) {
html = ('' + (html || '')).trim();
if (!html) return '';
let images = /<img\b[^<>]*/ig;
let match;
while ((match = images.exec(html))) {
if (this.room.isPersonal && !this.user.can('announce')) {
this.errorReply("Images are not allowed in personal rooms.");
return false;
}
if (!/width=([0-9]+|"[0-9]+")/i.test(match[0]) || !/height=([0-9]+|"[0-9]+")/i.test(match[0])) {
// Width and height are required because most browsers insert the
// <img> element before width and height are known, and when the
// image is loaded, this changes the height of the chat area, which
// messes up autoscrolling.
this.errorReply('All images must have a width and height attribute');
return false;
}
let srcMatch = /src\s*=\s*"?([^ "]+)(\s*")?/i.exec(match[0]);
if (srcMatch) {
let uri = this.canEmbedURI(srcMatch[1], true);
if (!uri) return false;
html = html.slice(0, match.index + srcMatch.index) + 'src="' + uri + '"' + html.slice(match.index + srcMatch.index + srcMatch[0].length);
// lastIndex is inaccurate since html was changed
images.lastIndex = match.index + 11;
}
}
if ((this.room.isPersonal || this.room.isPrivate === true) && !this.user.can('lock') && html.replace(/\s*style\s*=\s*"?[^"]*"\s*>/g, '>').match(/<button[^>]/)) {
this.errorReply('You do not have permission to use scripted buttons in HTML.');
this.errorReply('If you just want to link to a room, you can do this: <a href="/roomid"><button>button contents</button></a>');
return false;
}
if (/>here.?</i.test(html) || /click here/i.test(html)) {
this.errorReply('Do not use "click here"');
return false;
}
// check for mismatched tags
let tags = html.toLowerCase().match(/<\/?(div|a|button|b|strong|em|i|u|center|font|marquee|blink|details|summary|code|table|td|tr)\b/g);
if (tags) {
let stack = [];
for (const tag of tags) {
if (tag.charAt(1) === '/') {
if (!stack.length) {
this.errorReply("Extraneous </" + tag.substr(2) + "> without an opening tag.");
return false;
}
if (tag.substr(2) !== stack.pop()) {
this.errorReply("Missing </" + tag.substr(2) + "> or it's in the wrong place.");
return false;
}
} else {
stack.push(tag.substr(1));
}
}
if (stack.length) {
this.errorReply("Missing </" + stack.pop() + ">.");
return false;
}
}
return html;
}
targetUserOrSelf(target, exactName) {
if (!target) {
this.targetUsername = this.user.name;
this.inputUsername = this.user.name;
return this.user;
}
this.splitTarget(target, exactName);
return this.targetUser;
}
splitOne(target) {
let commaIndex = target.indexOf(',');
if (commaIndex < 0) {
return [target, ''];
}
return [target.substr(0, commaIndex), target.substr(commaIndex + 1).trim()];
}
splitTarget(target, exactName) {
let [name, rest] = this.splitOne(target);
this.targetUser = Users.get(name, exactName);
this.inputUsername = name.trim();
this.targetUsername = this.targetUser ? this.targetUser.name : this.inputUsername;
return rest;
}
splitTargetText(target) {
let [first, rest] = this.splitOne(target);
this.targetUsername = first.trim();
return rest.trim();
}
}
Chat.CommandContext = CommandContext;
/**
* Command parser
*
* Usage:
* Chat.parse(message, room, user, connection)
*
* Parses the message. If it's a command, the command is executed, if
* not, it's displayed directly in the room.
*
* Examples:
* Chat.parse("/join lobby", room, user, connection)
* will make the user join the lobby.
*
* Chat.parse("Hi, guys!", room, user, connection)
* will return "Hi, guys!" if the user isn't muted, or
* if he's muted, will warn him that he's muted.
*
* The return value is the return value of the command handler, if any,
* or the message, if there wasn't a command. This value could be a success
* or failure (few commands report these) or a Promise for when the command
* is done executing, if it's not currently done.
*
* @param {string} message - the message the user is trying to say
* @param {Room} room - the room the user is trying to say it in
* @param {User} user - the user that sent the message
* @param {Connection} connection - the connection the user sent the message from
*/
Chat.parse = function (message, room, user, connection) {
Chat.loadPlugins();
let context = new CommandContext({message, room, user, connection});
return context.parse();
};
Chat.package = {};
Chat.uncacheTree = function (root) {
let uncache = [require.resolve(root)];
do {
let newuncache = [];
for (let i = 0; i < uncache.length; ++i) {
if (require.cache[uncache[i]]) {
newuncache.push.apply(newuncache,
require.cache[uncache[i]].children
.filter(cachedModule => !cachedModule.id.endsWith('.node'))
.map(cachedModule => cachedModule.id)
);
delete require.cache[uncache[i]];
}
}
uncache = newuncache;
} while (uncache.length > 0);
};
Chat.loadPlugins = function () {
if (Chat.commands) return;
FS('package.json').readTextIfExists().then(data => {
if (data) Chat.package = JSON.parse(data);
});
let baseCommands = Chat.baseCommands = require('./chat-commands').commands;
let commands = Chat.commands = Object.assign({}, baseCommands);
let chatfilters = Chat.filters;
const baseFilter = Config.chatfilter;
if (baseFilter && typeof baseFilter === 'function') chatfilters.push(baseFilter);
// Install plug-in commands and chat filters
// info always goes first so other plugins can shadow it
Object.assign(commands, require('./chat-plugins/info').commands);
Object.assign(commands, require('./spacialgaze-plugins/SG.js').commands);
for (const file of FS('chat-plugins/').readdirSync()) {
if (file.substr(-3) !== '.js' || file === 'info.js') continue;
const plugin = require(`./chat-plugins/${file}`);
Object.assign(commands, plugin.commands);
const filter = plugin.chatfilter;
if (filter) {
if (typeof filter !== 'function') {
require('./crashlogger')(new TypeError(`This chatfilter is not a function`), `Loading a chatfilter`, {
file: `File location: ../chat-plugins/${file}`,
filter: filter,
type: typeof filter,
});
} else {
chatfilters.push(filter);
}
}
}
for (let file of FS('spacialgaze-plugins').readdirSync()) {
if (file.substr(-3) !== '.js' || file === 'SG.js') continue;
const spacialgazeplugin = require(`./spacialgaze-plugins/${file}`);
Object.assign(commands, spacialgazeplugin.commands);
}
};
/**
* Escapes HTML in a string.
*
* @param {string} str
* @return {string}
*/
Chat.escapeHTML = function (str) {
if (!str) return '';
return ('' + str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/\//g, '/');
};
/**
* Strips HTML from a string.
*
* @param {string} html
* @return {string}
*/
Chat.stripHTML = function (html) {
if (!html) return '';
return html.replace(/<[^>]*>/g, '');
};
/**
* Template string tag function for escaping HTML
*
* @param {string[]} strings
* @param {...any} values
* @return {string}
*/
Chat.html = function (strings, ...args) {
let buf = strings[0];
let i = 0;
while (i < args.length) {
buf += Chat.escapeHTML(args[i]);
buf += strings[++i];
}
return buf;
};
/**
* Returns singular (defaulting to '') if num is 1, or plural
* (defaulting to 's') otherwise. Helper function for pluralizing
* words.
*
* @param {any} num
* @param {?string} plural
* @param {?string} singular
* @return {string}
*/
Chat.plural = function (num, plural = 's', singular = '') {
if (num && typeof num.length === 'number') {
num = num.length;
} else if (num && typeof num.size === 'number') {
num = num.size;
} else {
num = Number(num);
}
return (num !== 1 ? plural : singular);
};
/**
* Returns a timestamp in the form {yyyy}-{MM}-{dd} {hh}:{mm}:{ss}.
*
* options.hour12 = true will reports hours in mod-12 format.
*
* @param {Date} date
* @param {object} options
* @return {string}
*/
Chat.toTimestamp = function (date, options) {
const isHour12 = options && options.hour12;
let parts = [date.getFullYear(), date.getMonth() + 1, date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()];
if (isHour12) {
parts.push(parts[3] >= 12 ? 'pm' : 'am');
parts[3] = parts[3] % 12 || 12;
}
parts = parts.map(val => val < 10 ? '0' + val : '' + val);
return parts.slice(0, 3).join("-") + " " + parts.slice(3, 6).join(":") + (isHour12 ? " " + parts[6] : "");
};
/**
* Takes a number of milliseconds, and reports the duration in English: hours, minutes, etc.
*
* options.hhmmss = true will instead report the duration in 00:00:00 format
*
* @param {number} number
* @param {object} options
* @return {string}
*/
Chat.toDurationString = function (number, options) {
// TODO: replace by Intl.DurationFormat or equivalent when it becomes available (ECMA-402)
// https://github.com/tc39/ecma402/issues/47
const date = new Date(+number);
const parts = [date.getUTCFullYear() - 1970, date.getUTCMonth(), date.getUTCDate() - 1, date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()];
const roundingBoundaries = [6, 15, 12, 30, 30];
const unitNames = ["second", "minute", "hour", "day", "month", "year"];
const positiveIndex = parts.findIndex(elem => elem > 0);
const precision = (options && options.precision ? options.precision : parts.length);
if (options && options.hhmmss) {
let string = parts.slice(positiveIndex).map(value => value < 10 ? "0" + value : "" + value).join(":");
return string.length === 2 ? "00:" + string : string;
}
// round least significant displayed unit
if (positiveIndex + precision < parts.length && precision > 0 && positiveIndex >= 0) {
if (parts[positiveIndex + precision] >= roundingBoundaries[positiveIndex + precision - 1]) {
parts[positiveIndex + precision - 1]++;
}
}
return parts.slice(positiveIndex).reverse().map((value, index) => value ? value + " " + unitNames[index] + (value > 1 ? "s" : "") : "").reverse().slice(0, precision).join(" ").trim();
};
/**
* Takes a string and converts it to HTML by replacing standard chat formatting with the appropriate HTML tags.
*
* @param {string} str
* @return {string}
*/
Chat.parseText = function (str) {
str = Chat.escapeHTML(str).replace(///g, '/').replace(linkRegex, uri => `<a href=${uri.replace(/^([a-z]*[^a-z:])/g, 'http://$1')}>${uri}</a>`);
let output = [''];
let stack = [];
let parse = true;
let i = 0;
mainLoop: while (i < str.length) {
let token = str[i];
// Hardcoded parsing
if (parse && token === '`' && str.substr(i, 2) === '``') {
stack.push('``');
output.push('');
parse = false;
i += 2;
continue;
}
for (const formattingResolver of formattingResolvers) {
let start = formattingResolver.token;
let end = formattingResolver.endToken || start;
if (stack.length && end.startsWith(token) && str.substr(i, end.length) === end && output[stack.length].replace(token, '').length) {
for (let j = stack.length - 1; j >= 0; j--) {
if (stack[j] === start) {
parse = true;
while (stack.length > j + 1) {
output[stack.length - 1] += stack.pop() + output.pop();
}
let str = output.pop();
let outstr = formattingResolver.resolver(str.trim());
if (!outstr) outstr = `${start}${str}${end}`;
output[stack.length - 1] += outstr;
i += end.length;
stack.pop();
continue mainLoop;
}
}
}
if (parse && start.startsWith(token) && str.substr(i, start.length) === start) {
stack.push(start);
output.push('');
i += start.length;
continue mainLoop;
}
}
output[stack.length] += token;
i++;
}
while (stack.length) {
output[stack.length - 1] += stack.pop() + output.pop();
}
let result = output[0];
return result;
};
/**
* Takes an array and turns it into a sentence string by adding commas and the word 'and' at the end
*
* @param {array} array
* @return {string}
*/
Chat.toListString = function (array) {
if (!array.length) return '';
if (array.length === 1) return array[0];
return `${array.slice(0, -1).join(", ")} and ${array.slice(-1)}`;
};
Chat.getDataPokemonHTML = function (template, gen = 7) {
if (typeof template === 'string') template = Object.assign({}, Dex.getTemplate(template));
let buf = '<li class="result">';
buf += '<span class="col numcol">' + (template.tier) + '</span> ';
buf += `<span class="col iconcol"><psicon pokemon="${template.id}"/></span> `;
buf += '<span class="col pokemonnamecol" style="white-space:nowrap"><a href="https://pokemonshowdown.com/dex/pokemon/' + template.id + '" target="_blank">' + template.species + '</a></span> ';
buf += '<span class="col typecol">';
if (template.types) {
for (const type of template.types) {
buf += `<img src="https://play.pokemonshowdown.com/sprites/types/${type}.png" alt="${type}" height="14" width="32">`;
}
}
buf += '</span> ';
if (gen >= 3) {
buf += '<span style="float:left;min-height:26px">';
if (template.abilities['1'] && (gen >= 4 || Dex.getAbility(template.abilities['1']).gen === 3)) {
buf += '<span class="col twoabilitycol">' + template.abilities['0'] + '<br />' + template.abilities['1'] + '</span>';
} else {
buf += '<span class="col abilitycol">' + template.abilities['0'] + '</span>';
}
if (template.abilities['S']) {
buf += '<span class="col twoabilitycol' + (template.unreleasedHidden ? ' unreleasedhacol' : '') + '"><em>' + template.abilities['H'] + '<br />' + template.abilities['S'] + '</em></span>';
} else if (template.abilities['H']) {
buf += '<span class="col abilitycol' + (template.unreleasedHidden ? ' unreleasedhacol' : '') + '"><em>' + template.abilities['H'] + '</em></span>';
} else {
buf += '<span class="col abilitycol"></span>';
}
buf += '</span>';
}
let bst = 0;
for (let i in template.baseStats) {
bst += template.baseStats[i];
}
buf += '<span style="float:left;min-height:26px">';
buf += '<span class="col statcol"><em>HP</em><br />' + template.baseStats.hp + '</span> ';
buf += '<span class="col statcol"><em>Atk</em><br />' + template.baseStats.atk + '</span> ';
buf += '<span class="col statcol"><em>Def</em><br />' + template.baseStats.def + '</span> ';
if (gen <= 1) {
bst -= template.baseStats.spd;
buf += '<span class="col statcol"><em>Spc</em><br />' + template.baseStats.spa + '</span> ';
} else {
buf += '<span class="col statcol"><em>SpA</em><br />' + template.baseStats.spa + '</span> ';
buf += '<span class="col statcol"><em>SpD</em><br />' + template.baseStats.spd + '</span> ';
}
buf += '<span class="col statcol"><em>Spe</em><br />' + template.baseStats.spe + '</span> ';
buf += '<span class="col bstcol"><em>BST<br />' + bst + '</em></span> ';
buf += '</span>';
buf += '</li>';
return `<div class="message"><ul class="utilichart">${buf}<li style="clear:both"></li></ul></div>`;
};
Chat.getDataMoveHTML = function (move) {
if (typeof move === 'string') move = Object.assign({}, Dex.getMove(move));
let buf = `<ul class="utilichart"><li class="result">`;
buf += `<a data-entry="move|${move.name}"><span class="col movenamecol">${move.name}</span> `;
buf += `<span class="col typecol"><img src="//play.pokemonshowdown.com/sprites/types/${move.type}.png" alt="${move.type}" width="32" height="14">`;
buf += `<img src="//play.pokemonshowdown.com/sprites/categories/${move.category}.png" alt="${move.category}" width="32" height="14"></span> `;
if (move.basePower) buf += `<span class="col labelcol"><em>Power</em><br>${typeof move.basePower === 'number' ? move.basePower : '—'}</span> `;
buf += `<span class="col widelabelcol"><em>Accuracy</em><br>${typeof move.accuracy === 'number' ? (move.accuracy + '%') : '—'}</span> `;
const basePP = move.pp || 1;
const pp = Math.floor(move.noPPBoosts ? basePP : basePP * 8 / 5);
buf += `<span class="col pplabelcol"><em>PP</em><br>${pp}</span> `;
buf += `<span class="col movedesccol">${move.shortDesc || move.desc}</span> `;
buf += `</a></li><li style="clear:both"></li></ul>`;
return buf;
};
Chat.getDataAbilityHTML = function (ability) {
if (typeof ability === 'string') ability = Object.assign({}, Dex.getAbility(ability));
let buf = `<ul class="utilichart"><li class="result">`;
buf += `<a data-entry="ability|${ability.name}"><span class="col namecol">${ability.name}</span> `;
buf += `<span class="col abilitydesccol">${ability.shortDesc || ability.desc}</span> `;
buf += `</a></li><li style="clear:both"></li></ul>`;
return buf;
};
Chat.getDataItemHTML = function (item) {
if (typeof item === 'string') item = Object.assign({}, Dex.getItem(item));
let buf = `<ul class="utilichart"><li class="result">`;
buf += `<a data-entry="item|${item.name}"><span class="col itemiconcol"><psicon item="${item.id}"></span> <span class="col namecol">${item.name}</span> `;
buf += `<span class="col itemdesccol">${item.shortDesc || item.desc}</span> `;
buf += `</a></li><li style="clear:both"></li></ul>`;
return buf;
};
|
{
item.members = item.members.map(item => _.pick(item, ft.user));
item.extend = _.pick(item.extend, ft.projectExtend);
item.user = _.pick(item.user, ft.user);
return _.pick(item, ["user"].concat(ft.project));
}
|
'use strict';
// test function to prepare us for html page.
var formEl = document.getElementById('answer-form');
var banana = 3;
var wizardHat = 5;
var broom = wizardHat;
var peel = banana;
function riddleMeThis(x ,y){
if ( x < 20){
var number = x + y;
return number;
}else if( x === 2){
var number = x * y;
return number;
}else if(y === x){
var number = x / y;
return number;
}else{
return banana;
}
}
var answerToRiddle = riddleMeThis(broom, peel );
formEl.addEventListener('submit', checkAnswer);
function checkAnswer(event){
event.stopPropagation();
event.preventDefault();
var userInput = parseInt(formEl.userInput.value);
console.log(userInput);
if( userInput === answerToRiddle){
location.href = 'rpg1.html'; // place-holder
}else {
alert('incorrect');
};
}
|
'use strict';
module.exports = function (grunt) {
// automitacly load grunt tasks
require('load-grunt-tasks')(grunt);
// mesure tasks times, can help ;)
require('time-grunt')(grunt);
// define your grunt configuration here
grunt.initConfig({
composer: grunt.file.readJSON('composer.json'),
// defined grunt settings here, feel free to change
// parameters here
paths: {
name: 'front',
src: 'src/<%= paths.name %>',
web: '<%= composer.extra["symfony-web-dir"] %>',
app: '<%= paths.web %>/front',
tmp: '<%= paths.src %>/.tmp',
build: '<%= paths.web %>/front',
views: 'src/App/Resources/views',
layouts: '<%= paths.src %>/layouts'
},
// configure the jshint tasks
jshint: {
options: {
reporter: require('jshint-stylish')
},
scripts: {
options: {
jshintrc: '<%= paths.src %>/.jshintrc'
},
src: ['<%= paths.src %>/scripts/{,*/}*.js']
},
spec: {
options: {
jshintrc: '<%= paths.src %>/test/.jshintrc'
},
src: ['<%= paths.src %>/test/{,*/}*.js']
},
},
// configure use min
useminPrepare: {
html: [],
options: {
root: '<%= paths.web %>',
dest: '<%= paths.web %>',
staging: '<%= paths.tmp %>'
}
},
usemin: {
html: [],
options: {
assetsDirs: ['<%= paths.build %>']
}
},
// configure grunt copy
copy: {
app: {
files: [{
expand: true,
dot: false,
cwd: '<%= paths.src %>',
dest: '<%= paths.app %>',
src: ['{,*/}*', '!layouts', '!styles/**/*.scss', '!styles/**/*.sass', '!test']
}]
},
build: {
files: [{
expand: true,
dot: false,
cwd: '<%= paths.src %>',
dest: '<%= paths.build %>',
src: [
'{,*/}*',
'!layout.html.twig',
'!styles/**/*',
'!scripts/**/*',
'!images/**/*',
'!test'
]
}]
},
layoutApp: {
files: [{
expand: true,
dot: false,
cwd: '<%= paths.layouts %>',
dest: '<%= paths.views %>/layouts',
src: ['**/*.twig']
}]
},
styles: {
files: [{
expand: true,
dot: false,
cwd: '<%= paths.tmp %>/styles',
dest: '<%= paths.app %>/styles',
src: ['**/*.css']
}]
},
'styles-build': {
files: [{
expand: true,
dot: false,
cwd: '<%= paths.tmp %>/styles',
dest: '<%= paths.build %>/styles',
src: ['**/*.css']
}]
}
},
// configure clean app
clean: {
app: ['<%= paths.app %>'],
'styles-build': ['<%= paths.build %>/styles/**/*.css', '!<%= paths.build %>/styles/app.css', '!<%= paths.build %>/styles/vendor.css']
},
// rename distribution files for browser cache supports
rev: {
build: {
files: {
src: [
'<%= paths.build %>/**/scripts/{,*/}*.js',
'<%= paths.build %>/**/styles/{,*/}*.css'
]
}
}
},
// configure the bower
bower: {
install: {
options: {
copy: false
}
}
},
// configure the karma runner
karma: {
spec: {
options: {},
configFile: 'karma.conf.js'
}
},
// configure watcher
watch: {
js: {
files: '<%= paths.src %>/scripts/{,*/}*.js',
tasks: ['install', 'jshint:scripts']
},
styles: {
files: '<%= paths.src %>/styles/{,*/}*.{css,sass,scss}',
tasks: ['install']
},
spec: {
files: '<%= paths.src %>/test/spec/**/*.js',
tasks: ['jshint:spec', 'karma']
},
bower: {
files: 'bower.json',
tasks: ['install']
}
}
});
// defined the karma runner test files :
grunt.config.set('karma.spec.options.files', (function () {
var fs = require('fs');
var bowerrc = JSON.parse(fs.readFileSync('.bowerrc', 'utf8'));
var testPath = grunt.config.get('paths.src') + '/test';
var vendorPath = bowerrc.directory;
var sourcePath = grunt.config.get('paths.src') + '/scripts';
return [
// load vendors here :
vendorPath + '/jquery/jquery.js',
// load your source files that you wan't to test
sourcePath + '/**/*.js',
// Here you can defined mocks if you need it
testPath + '/mock/**/*.js',
// load the specs
testPath + '/spec/**/*.js'
];
})());
// configure the preprocessor fixtures path for karma :
grunt.config.set('karma.spec.options.preprocessors', (function () {
var testPath = grunt.config.get('paths.src') + '/test';
var fixtures = testPath + '/fixtures/**/*.html';
var processors = {};
processors[fixtures] = ['html2js'];
return processors;
})());
// set the usemin preparation layouts
grunt.config.set('useminPrepare.html', (function () {
var fs = require('fs');
var layouts = fs.readdirSync(grunt.config.get('paths.layouts'));
for (var i in layouts) {
layouts[i] = '<%= paths.layouts %>/' + layouts[i];
}
return layouts;
})());
// set the usemin html layouts destination
grunt.config.set('usemin.html', (function () {
var fs = require('fs');
var layouts = fs.readdirSync(grunt.config.get('paths.layouts'));
for (var i in layouts) {
layouts[i] = '<%= paths.views %>/layouts/' + layouts[i];
}
return layouts;
})());
grunt.registerTask('test', [
'jshint',
'karma'
]);
grunt.registerTask('build', [
'clean:app',
'bower',
'copy:build',
'copy:styles-build',
'useminPrepare',
'concat',
'uglify',
'cssmin',
'clean:styles-build',
'rev',
'usemin'
]);
grunt.registerTask('install', [
'clean:app',
'copy:app',
'bower',
'copy:styles',
'copy:layoutApp'
]);
grunt.registerTask('serve', [
'install',
'watch'
]);
grunt.registerTask('server', ['serve']);
};
|
var recipes = null;
var recipe_images = null;
var favs = [];
var interval_ready_id = null;
var registered = false;
var last_updated = "1984-01-01";
var application_started = false;
var menu_options = ["home", "search", "favs", "about-me", "contact"];
var current_page = 1;
Storage.prototype.setObj = function(key, obj) {
return this.setItem(key, JSON.stringify(obj));
};
Storage.prototype.getObj = function(key) {
return JSON.parse(this.getItem(key));
};
|
'use strict';
/**
* Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges),
* and z-index (low to high). These styles affect how this applies:
*
* z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` which is the
* same depth as the root of the compound graph, followed by the default value `auto` which draws in order from
* root to leaves of the compound graph. The last drawn is `top`.
* z-index-compare: May be `auto | manual`. The default value is `auto` which always draws edges under nodes.
* `manual` ignores this convention and draws based on the `z-index` value setting.
* z-index: An integer value that affects the relative draw order of elements. In general, an element with a higher
* `z-index` will be drawn on top of an element with a lower `z-index`.
*/
var zIndexSort = function( a, b ){
var cy = a.cy();
var hasCompoundNodes = cy.hasCompoundNodes();
function getDepth(ele){
var style = ele.pstyle( 'z-compound-depth' );
if ( style.value === 'auto' ){
return hasCompoundNodes ? ele.zDepth() : 0
} else if ( style.value === 'bottom' ){
return -1
} else if ( style.value === 'top' ){
return Number.MAX_SAFE_INTEGER
}
// 'orphan'
return 0
}
var depthDiff = getDepth(a) - getDepth(b);
if ( depthDiff !== 0 ){
return depthDiff
}
function getEleDepth(ele){
var style = ele.pstyle( 'z-index-compare' );
if ( style.value === 'auto' ){
return ele.isNode() ? 1 : 0
}
// 'manual'
return 0
}
var eleDiff = getEleDepth(a) - getEleDepth(b);
if ( eleDiff !== 0 ){
return eleDiff
}
var zDiff = a.pstyle( 'z-index' ).value - b.pstyle( 'z-index' ).value;
if ( zDiff !== 0 ){
return zDiff
}
// compare indices in the core (order added to graph w/ last on top)
return a.poolIndex() - b.poolIndex();
};
module.exports = zIndexSort;
|
var express = require('express')
var router = express.Router()
var getHome = require('./getHome')
router.get('/', getHome)
module.exports = router
|
import Tile from './Tile';
export default class WallTile extends Tile {
/**
* @class WallTile
* @description An opaque solid tile
*/
constructor(x, y) {
super(x, y);
}
isSolid() {
return true;
}
isOpaque() {
return true;
}
getName() {
return 'Wall';
}
}
|
import PropTypes from "prop-types";
import React, { Component } from "react";
import { Button, Grid } from "@material-ui/core";
import DeleteIcon from "@material-ui/icons/Delete";
import StatusTagIcons from "./StatusTagIcons";
import DialogModal from "../shared/DialogModal";
class MovieInfoModal extends Component {
static propTypes = {
isVisible: PropTypes.bool.isRequired,
movie: PropTypes.object.isRequired,
onClose: PropTypes.func.isRequired,
onClickDelete: PropTypes.func.isRequired,
onClickToggleStatusTag: PropTypes.func.isRequired,
};
constructor(props) {
super(props);
this._handleCancelClose = this._handleCancelClose.bind(this);
this._handleClickDelete = this._handleClickDelete.bind(this);
}
_handleCancelClose() {
this.props.onClose(false);
}
_handleClickDelete() {
this.props.onClickDelete(this.props.movie);
}
render() {
const { onClickToggleStatusTag, isVisible, movie } = this.props;
return (
<DialogModal
title="Movie Info"
isVisible={isVisible}
onClose={this._handleCancelClose}
footer={[
<div
key="buttons"
style={{ width: "100%", textAlign: "center" }}
>
<Button
variant="contained"
key="close"
size="small"
onClick={this._handleCancelClose}
>
Close
</Button>
</div>,
]}
width={700}
>
<Grid
key="container"
container
item
xs={12}
className="ib-moviemodal-contents"
>
<Grid key="thumbox" item xs={4}>
<div className="ib-moviemodal-thumbnail-box">
<img
src={"/images/movies/" + movie.image_filename}
/>
</div>
</Grid>
<Grid
key="info"
container
item
xs={8}
alignContent={"flex-start"}
>
<Grid
key="title"
item
xs={12}
className="mm-title"
dangerouslySetInnerHTML={{ __html: movie.title }}
/>
<Grid key="byline" item xs={12} className="mm-byline">
{movie.year} |
<a
href={"http://imdb.com/title/" + movie.imdb_id}
target="_blank"
>
IMDB
</a>
|
{movie.runtime} minutes
</Grid>
<Grid key="actions" item container xs={12}>
<Grid item xs={6} style={{ textAlign: "center" }}>
<StatusTagIcons
movie={movie}
onClickToggleStatusTag={
onClickToggleStatusTag
}
/>
</Grid>
<Grid item xs={6} style={{ textAlign: "center" }}>
<Button
onClick={this._handleClickDelete}
size="small"
variant="contained"
disableElevation
startIcon={<DeleteIcon />}
color="secondary"
>
Delete
</Button>
</Grid>
</Grid>
<Grid
key="desc"
item
xs={12}
className="ib-moviemodal-description"
>
{movie.overview}
</Grid>
</Grid>
</Grid>
</DialogModal>
);
}
}
export default MovieInfoModal;
|
/**
* @fileoverview This file is generated by the Angular 2 template compiler.
* Do not edit.
* @suppress {suspiciousCode,uselessCode,missingProperties}
*/
/* tslint:disable */
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var import0 = require("../../../../../../src/app/theme/components/baMenu/baMenu.component");
var import1 = require("@angular/core/src/change_detection/change_detection_util");
var import2 = require("@angular/core/src/linker/view");
var import3 = require("@angular/core/src/linker/view_utils");
var import5 = require("@angular/core/src/metadata/view");
var import6 = require("@angular/core/src/linker/view_type");
var import7 = require("@angular/core/src/change_detection/constants");
var import8 = require("@angular/core/src/linker/component_factory");
var import9 = require("@angular/router/src/router");
var import10 = require("../../../../../../src/app/theme/services/baMenu/baMenu.service");
var import11 = require("../../../../../../src/app/global.state");
var import12 = require("../../../../../../src/app/theme/components/baMenu/components/baMenuItem/baMenuItem.component");
var import13 = require("./components/baMenuItem/baMenuItem.component.ngfactory");
var import14 = require("@angular/core/src/linker/view_container");
var import15 = require("../../directives/baSlimScroll/baSlimScroll.directive.ngfactory");
var import16 = require("../../../../../node_modules/@angular/common/src/directives/ng_for.ngfactory");
var import17 = require("../../../../../node_modules/@angular/common/src/directives/ng_class.ngfactory");
var import18 = require("../../../../../node_modules/@angular/common/src/directives/ng_style.ngfactory");
var import19 = require("@angular/core/src/linker/element_ref");
var import20 = require("@angular/core/src/linker/template_ref");
var import21 = require("@angular/core/src/change_detection/differs/iterable_differs");
var import22 = require("@angular/core/src/change_detection/differs/keyvalue_differs");
var import23 = require("@angular/common/src/directives/ng_for");
var import24 = require("../../../../../../src/app/theme/directives/baSlimScroll/baSlimScroll.directive");
var import25 = require("@angular/common/src/directives/ng_class");
var import26 = require("@angular/common/src/directives/ng_style");
var Wrapper_BaMenu = (function () {
function Wrapper_BaMenu(p0, p1, p2) {
this._changed = false;
this.context = new import0.BaMenu(p0, p1, p2);
this._expr_0 = import1.UNINITIALIZED;
this._expr_1 = import1.UNINITIALIZED;
}
Wrapper_BaMenu.prototype.ngOnDetach = function (view, componentView, el) {
};
Wrapper_BaMenu.prototype.ngOnDestroy = function () {
this.context.ngOnDestroy();
(this.subscription0 && this.subscription0.unsubscribe());
};
Wrapper_BaMenu.prototype.check_sidebarCollapsed = function (currValue, throwOnChange, forceUpdate) {
if ((forceUpdate || import3.checkBinding(throwOnChange, this._expr_0, currValue))) {
this._changed = true;
this.context.sidebarCollapsed = currValue;
this._expr_0 = currValue;
}
};
Wrapper_BaMenu.prototype.check_menuHeight = function (currValue, throwOnChange, forceUpdate) {
if ((forceUpdate || import3.checkBinding(throwOnChange, this._expr_1, currValue))) {
this._changed = true;
this.context.menuHeight = currValue;
this._expr_1 = currValue;
}
};
Wrapper_BaMenu.prototype.ngDoCheck = function (view, el, throwOnChange) {
var changed = this._changed;
this._changed = false;
if (!throwOnChange) {
if ((view.numberOfChecks === 0)) {
this.context.ngOnInit();
}
}
return changed;
};
Wrapper_BaMenu.prototype.checkHost = function (view, componentView, el, throwOnChange) {
};
Wrapper_BaMenu.prototype.handleEvent = function (eventName, $event) {
var result = true;
return result;
};
Wrapper_BaMenu.prototype.subscribe = function (view, _eventHandler, emit0) {
this._eventHandler = _eventHandler;
if (emit0) {
(this.subscription0 = this.context.expandMenu.subscribe(_eventHandler.bind(view, 'expandMenu')));
}
};
return Wrapper_BaMenu;
}());
exports.Wrapper_BaMenu = Wrapper_BaMenu;
var renderType_BaMenu_Host = import3.createRenderComponentType('', 0, import5.ViewEncapsulation.None, [], {});
var View_BaMenu_Host0 = (function (_super) {
__extends(View_BaMenu_Host0, _super);
function View_BaMenu_Host0(viewUtils, parentView, parentIndex, parentElement) {
return _super.call(this, View_BaMenu_Host0, renderType_BaMenu_Host, import6.ViewType.HOST, viewUtils, parentView, parentIndex, parentElement, import7.ChangeDetectorStatus.CheckAlways) || this;
}
View_BaMenu_Host0.prototype.createInternal = function (rootSelector) {
this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer, 'ba-menu', import3.EMPTY_INLINE_ARRAY, rootSelector, null);
this.compView_0 = new View_BaMenu0(this.viewUtils, this, 0, this._el_0);
this._BaMenu_0_3 = new Wrapper_BaMenu(this.injectorGet(import9.Router, this.parentIndex), this.injectorGet(import10.BaMenuService, this.parentIndex), this.injectorGet(import11.GlobalState, this.parentIndex));
this.compView_0.create(this._BaMenu_0_3.context);
this.init(this._el_0, (this.renderer.directRenderer ? null : [this._el_0]), null);
return new import8.ComponentRef_(0, this, this._el_0, this._BaMenu_0_3.context);
};
View_BaMenu_Host0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
if (((token === import0.BaMenu) && (0 === requestNodeIndex))) {
return this._BaMenu_0_3.context;
}
return notFoundResult;
};
View_BaMenu_Host0.prototype.detectChangesInternal = function (throwOnChange) {
this._BaMenu_0_3.ngDoCheck(this, this._el_0, throwOnChange);
this.compView_0.internalDetectChanges(throwOnChange);
};
View_BaMenu_Host0.prototype.destroyInternal = function () {
this.compView_0.destroy();
this._BaMenu_0_3.ngOnDestroy();
};
View_BaMenu_Host0.prototype.visitRootNodesInternal = function (cb, ctx) {
cb(this._el_0, ctx);
};
return View_BaMenu_Host0;
}(import2.AppView));
exports.BaMenuNgFactory = new import8.ComponentFactory('ba-menu', View_BaMenu_Host0, import0.BaMenu);
var styles_BaMenu = [];
var View_BaMenu1 = (function (_super) {
__extends(View_BaMenu1, _super);
function View_BaMenu1(viewUtils, parentView, parentIndex, parentElement, declaredViewContainer) {
return _super.call(this, View_BaMenu1, renderType_BaMenu, import6.ViewType.EMBEDDED, viewUtils, parentView, parentIndex, parentElement, import7.ChangeDetectorStatus.CheckAlways, declaredViewContainer) || this;
}
View_BaMenu1.prototype.createInternal = function (rootSelector) {
this._el_0 = import3.createRenderElement(this.renderer, null, 'ba-menu-item', import3.EMPTY_INLINE_ARRAY, null);
this.compView_0 = new import13.View_BaMenuItem0(this.viewUtils, this, 0, this._el_0);
this._BaMenuItem_0_3 = new import13.Wrapper_BaMenuItem();
this.compView_0.create(this._BaMenuItem_0_3.context);
var disposable_0 = import3.subscribeToRenderElement(this, this._el_0, new import3.InlineArray4(4, 'itemHover', null, 'toggleSubMenu', null), this.eventHandler(this.handleEvent_0));
this._BaMenuItem_0_3.subscribe(this, this.eventHandler(this.handleEvent_0), true, true);
this.init(this._el_0, (this.renderer.directRenderer ? null : [this._el_0]), [disposable_0]);
return null;
};
View_BaMenu1.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
if (((token === import12.BaMenuItem) && (0 === requestNodeIndex))) {
return this._BaMenuItem_0_3.context;
}
return notFoundResult;
};
View_BaMenu1.prototype.detectChangesInternal = function (throwOnChange) {
var currVal_0_0_0 = this.context.$implicit;
this._BaMenuItem_0_3.check_menuItem(currVal_0_0_0, throwOnChange, false);
this._BaMenuItem_0_3.ngDoCheck(this, this._el_0, throwOnChange);
this.compView_0.internalDetectChanges(throwOnChange);
};
View_BaMenu1.prototype.destroyInternal = function () {
this.compView_0.destroy();
this._BaMenuItem_0_3.ngOnDestroy();
};
View_BaMenu1.prototype.visitRootNodesInternal = function (cb, ctx) {
cb(this._el_0, ctx);
};
View_BaMenu1.prototype.handleEvent_0 = function (eventName, $event) {
this.markPathToRootAsCheckOnce();
var result = true;
if ((eventName == 'itemHover')) {
var pd_sub_0 = (this.parentView.context.hoverItem($event) !== false);
result = (pd_sub_0 && result);
}
if ((eventName == 'toggleSubMenu')) {
var pd_sub_1 = (this.parentView.context.toggleSubMenu($event) !== false);
result = (pd_sub_1 && result);
}
return result;
};
return View_BaMenu1;
}(import2.AppView));
var renderType_BaMenu = import3.createRenderComponentType('', 0, import5.ViewEncapsulation.None, styles_BaMenu, {});
var View_BaMenu0 = (function (_super) {
__extends(View_BaMenu0, _super);
function View_BaMenu0(viewUtils, parentView, parentIndex, parentElement) {
var _this = _super.call(this, View_BaMenu0, renderType_BaMenu, import6.ViewType.COMPONENT, viewUtils, parentView, parentIndex, parentElement, import7.ChangeDetectorStatus.CheckAlways) || this;
_this._map_16 = import3.pureProxy1(function (p0) {
return { height: p0 };
});
_this._map_17 = import3.pureProxy1(function (p0) {
return { 'show-hover-elem': p0 };
});
_this._map_18 = import3.pureProxy2(function (p0, p1) {
return {
top: p0,
height: p1
};
});
return _this;
}
View_BaMenu0.prototype.createInternal = function (rootSelector) {
var parentRenderNode = this.renderer.createViewRoot(this.parentElement);
this._el_0 = import3.createRenderElement(this.renderer, parentRenderNode, 'aside', new import3.InlineArray4(4, 'class', 'al-sidebar', 'sidebarResize', ''), null);
this._text_1 = this.renderer.createText(this._el_0, '\n ', null);
this._el_2 = import3.createRenderElement(this.renderer, this._el_0, 'ul', new import3.InlineArray8(6, 'baSlimScroll', '', 'class', 'al-sidebar-list', 'id', 'al-sidebar-list'), null);
this._BaSlimScroll_2_3 = new import15.Wrapper_BaSlimScroll(new import19.ElementRef(this._el_2));
this._text_3 = this.renderer.createText(this._el_2, '\n ', null);
this._anchor_4 = this.renderer.createTemplateAnchor(this._el_2, null);
this._vc_4 = new import14.ViewContainer(4, 2, this, this._anchor_4);
this._TemplateRef_4_5 = new import20.TemplateRef_(this, 4, this._anchor_4);
this._NgFor_4_6 = new import16.Wrapper_NgFor(this._vc_4.vcRef, this._TemplateRef_4_5, this.parentView.injectorGet(import21.IterableDiffers, this.parentIndex), this.ref);
this._text_5 = this.renderer.createText(this._el_2, '\n ', null);
this._text_6 = this.renderer.createText(this._el_0, '\n ', null);
this._el_7 = import3.createRenderElement(this.renderer, this._el_0, 'div', new import3.InlineArray2(2, 'class', 'sidebar-hover-elem'), null);
this._NgClass_7_3 = new import17.Wrapper_NgClass(this.parentView.injectorGet(import21.IterableDiffers, this.parentIndex), this.parentView.injectorGet(import22.KeyValueDiffers, this.parentIndex), new import19.ElementRef(this._el_7), this.renderer);
this._NgStyle_7_4 = new import18.Wrapper_NgStyle(this.parentView.injectorGet(import22.KeyValueDiffers, this.parentIndex), new import19.ElementRef(this._el_7), this.renderer);
this._text_8 = this.renderer.createText(this._el_0, '\n', null);
this._text_9 = this.renderer.createText(parentRenderNode, '\n', null);
var disposable_0 = import3.subscribeToRenderElement(this, this._el_0, new import3.InlineArray2(2, 'mouseleave', null), this.eventHandler(this.handleEvent_0));
this.init(null, (this.renderer.directRenderer ? null : [
this._el_0,
this._text_1,
this._el_2,
this._text_3,
this._anchor_4,
this._text_5,
this._text_6,
this._el_7,
this._text_8,
this._text_9
]), [disposable_0]);
return null;
};
View_BaMenu0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
if (((token === import20.TemplateRef) && (4 === requestNodeIndex))) {
return this._TemplateRef_4_5;
}
if (((token === import23.NgFor) && (4 === requestNodeIndex))) {
return this._NgFor_4_6.context;
}
if (((token === import24.BaSlimScroll) && ((2 <= requestNodeIndex) && (requestNodeIndex <= 5)))) {
return this._BaSlimScroll_2_3.context;
}
if (((token === import25.NgClass) && (7 === requestNodeIndex))) {
return this._NgClass_7_3.context;
}
if (((token === import26.NgStyle) && (7 === requestNodeIndex))) {
return this._NgStyle_7_4.context;
}
return notFoundResult;
};
View_BaMenu0.prototype.detectChangesInternal = function (throwOnChange) {
var currVal_2_0_0 = this._map_16(this.context.menuHeight);
this._BaSlimScroll_2_3.check_baSlimScrollOptions(currVal_2_0_0, throwOnChange, false);
this._BaSlimScroll_2_3.ngDoCheck(this, this._el_2, throwOnChange);
var currVal_4_0_0 = this.context.menuItems;
this._NgFor_4_6.check_ngForOf(currVal_4_0_0, throwOnChange, false);
this._NgFor_4_6.ngDoCheck(this, this._anchor_4, throwOnChange);
var currVal_7_0_0 = 'sidebar-hover-elem';
this._NgClass_7_3.check_klass(currVal_7_0_0, throwOnChange, false);
var currVal_7_0_1 = this._map_17(this.context.showHoverElem);
this._NgClass_7_3.check_ngClass(currVal_7_0_1, throwOnChange, false);
this._NgClass_7_3.ngDoCheck(this, this._el_7, throwOnChange);
var currVal_7_1_0 = this._map_18((this.context.hoverElemTop + 'px'), (this.context.hoverElemHeight + 'px'));
this._NgStyle_7_4.check_ngStyle(currVal_7_1_0, throwOnChange, false);
this._NgStyle_7_4.ngDoCheck(this, this._el_7, throwOnChange);
this._vc_4.detectChangesInNestedViews(throwOnChange);
};
View_BaMenu0.prototype.destroyInternal = function () {
this._vc_4.destroyNestedViews();
};
View_BaMenu0.prototype.createEmbeddedViewInternal = function (nodeIndex) {
if ((nodeIndex == 4)) {
return new View_BaMenu1(this.viewUtils, this, 4, this._anchor_4, this._vc_4);
}
return null;
};
View_BaMenu0.prototype.handleEvent_0 = function (eventName, $event) {
this.markPathToRootAsCheckOnce();
var result = true;
if ((eventName == 'mouseleave')) {
var pd_sub_0 = ((this.context.hoverElemTop = this.context.outOfArea) !== false);
result = (pd_sub_0 && result);
}
return result;
};
return View_BaMenu0;
}(import2.AppView));
exports.View_BaMenu0 = View_BaMenu0;
//# sourceMappingURL=baMenu.component.ngfactory.js.map
|
define(function(require){
"use strict";
var $ = require('jquery'),
Backbone = require('backbone'),
Handlebars = require('handlebars'),
html = require('text!template/message/object.html'),
form = require('text!template/message/form.html');
Parse = require('parse');
var View = {};
View.object = Backbone.View.extend({
template: Handlebars.compile(html),
initialize: function() {
this.model.on('destroy', this.remove, this);
this.model.on('remove', this.remove, this);
this.model.on('change', this.render, this);
},
events: {
'click .edit': 'edit',
'click .destroy': 'destroy',
},
edit: function(){
// -> To Edit controller
},
destroy: function(){
this.model.destroy();
},
render: function(){
var html = this.template(this.model.attributes);
this.$el.html(html);
}
});
View.form = Backbone.View.extend({
template: Handlebars.compile(form),
events: {
submit: 'save',
},
save: function(e){
e.preventDefault();
this.model.set('value', newvalue);
this.model.save({
success: function(obj){
},
error: function(error){
}
});
//this.remove();
},
render: function(){
this.$el.html(this.template(this.model.attributes));
}
});
View.objects = Backbone.View.extend({
initialize: function(){
this.collection.on('reset', this.render, this);
this.collection.on('add', this.addOne, this);
},
render: function(){
if (this.collection.length > 0) this.collection.forEach(this.addOne, this);
},
addOne: function(model){
var object = new View.object({ model: model });
object.render();
this.$el.append(object.el);
}
});
return View;
});
|
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Music.css';
import ServerMenu from '../../components/ServerMenu';
import Layout from '../../components/Layout';
function Music({ user, serverId, music, title }) {
// const avatarURL = `https://discordapp.com/api/users/85257659694993408/avatars/${user.avatar}.jpg`;
let items;
try {
items = music.queue.map((song, position) =>
<tr key={position}>
<td>{position}</td>
<td>{song.title}</td>
<td>{song.author ? song.author.name : ''}</td>
<td>{song.lengthSeconds}</td>
<td>{song.user_name}</td>
</tr>,
);
} catch (error) {
items = [];
console.error(error);
}
return (
<Layout user={user}>
<div>
<ServerMenu className={s.nav} user={user} serverId={serverId} page="music" />
<div className={s.root}>
<div className={s.container}>
<h1 className={s.title}>{title}</h1>
<table>
<tbody>
<tr>
<th>#</th>
<th>Song</th>
<th>Uploader</th>
<th>Duration</th>
<th>Added by</th>
</tr>
{items}
</tbody>
</table>
</div>
</div>
</div>
</Layout>
);
}
Music.propTypes = {
user: PropTypes.object.isRequired,
serverId: PropTypes.string.isRequired,
music: PropTypes.object,
title: PropTypes.string,
};
export default withStyles(s)(Music);
|
'use strict';
var moment = require('moment');
var _ = require('underscore');
var cache = require('./cache');
var config = require('./config');
var h = require('./helper');
const session = {};
session.errors = {
EXPIRED: {
msg: 'session expired, please login again',
statusCode: -1
}
};
session.getUser = function() {
return cache.get(h.KEYS.user);
};
session.saveUser = function(user) {
// when auto login enabled, have to save password to re-login later
// otherwise don't dump password for the sake of security.
const _user = _.omit(user, config.autologin.enable ? [] : ['pass']);
cache.set(h.KEYS.user, _user);
};
session.deleteUser = function() {
cache.del(h.KEYS.user);
};
session.deleteCodingSession = function() {
cache.del(h.KEYS.problems);
};
session.isLogin = function() {
return this.getUser() !== null;
};
session.updateStat = function(k, v) {
// TODO: use other storage if too many stat data
const today = moment().format('YYYY-MM-DD');
const stats = cache.get(h.KEYS.stat) || {};
const stat = stats[today] = stats[today] || {};
if (k.endsWith('.set')) {
const s = new Set(stat[k] || []);
s.add(v);
stat[k] = Array.from(s);
} else {
stat[k] = (stat[k] || 0) + v;
}
cache.set(h.KEYS.stat, stats);
};
module.exports = session;
|
var unit = {
atk: function(unit, a) { var x = $(unit).find('input[name="atk_plus"]'); x.val(parseInt(x.val()) + a).change();}
}
// ---------------------------------------------------------------------------
var cards = [];
cards["atk30"] = {
tag: ["atk"], color: "red", label: '攻+30',
enable: function(e) { unit.atk(e, 30) },
disable: function(e) { unit.atk(e, -30) }
}
cards["atk24"] = {
tag: ["atk"], color: "red", label: '攻+24',
enable: function(e) { unit.atk(e, 24) },
disable: function(e) { unit.atk(e, -24) }
}
|
import axios from 'axios'
import moment from 'moment'
const $walkOfShame = $('.hotboard')
const $logOfShame = $('.log')
require('./main.scss')
$('.banner').removeClass('hidden')
const $shameLog = $('<div class="log__item">')
function render(data) {
const $containerOfRegrets = $('<div>')
data.forEach(pieceOfShame => {
if (pieceOfShame.events.length === 0) return
const $shamefulLogEvents = $('<ol class="feed">')
$containerOfRegrets.append($(`<h2 class="heading heading--log"><a name="${normalizeString(pieceOfShame.name)}">${pieceOfShame.name}</a></h2>`))
pieceOfShame.events.forEach(cringeMoment => {
const $cringeInstance = $('<li class="feed__list-item">')
const $title = $('<h3 class="title">')
.text(cringeMoment.title)
.append($('<span class="date">')
.text(moment(cringeMoment.eventDate).format('YYYY-MM-DD')))
$cringeInstance.append($title)
$cringeInstance
.append($('<p class="description">')
.text(cringeMoment.description))
$shamefulLogEvents.append($cringeInstance)
})
$containerOfRegrets.append($shamefulLogEvents)
})
return $containerOfRegrets
}
function normalizeString(string) {
return string.toLowerCase().replace(/\s/g, '_')
}
axios.get('shame.json')
.then((response) => {
response.data.map(pieceOfShame => {
if (pieceOfShame.events.length === 0) {
return
}
const $shameBox = $('<div class="box">').data('href', normalizeString(pieceOfShame.name));
const $shamefulEvents = $('<ol class="hotboard__list">')
$shameBox.append($(`<h2 class="heading heading--box">${pieceOfShame.name}</h2>`))
pieceOfShame.events.slice(0, 1).map(cringeMoment => {
const $cringeInstance = $('<li class="hotboard__list-item">')
const $title = $('<h3 class="title">').text(cringeMoment.title)
.append($('<span class="date">').text(moment(cringeMoment.eventDate).format('YYYY-MM-DD')))
$cringeInstance.append($title)
$cringeInstance.append($('<p class="description">').text(cringeMoment.description))
$shamefulEvents.append($cringeInstance)
})
$shameBox.append($shamefulEvents)
$shameBox.on('click', e => location.hash = $(e.currentTarget).data('href'))
$walkOfShame.append($shameBox)
})
$logOfShame.append(render(response.data))
let $anxiety = $('<input class="filter" placeholder="Filter regrets..." />').keyup(embarrassment => {
let query = embarrassment.currentTarget.value.trim().toLowerCase()
let filtered = response.data.filter(pieceOfShame => {
if (!pieceOfShame.events.length) return
return pieceOfShame.name.toLowerCase().indexOf(query) != -1
})
$logOfShame.empty()
$logOfShame.append(render(filtered))
})
$logOfShame.before($anxiety)
})
.catch((error) => {
console.log(error)
})
|
import Logger from 'color-logger';
import CommentParser from '../Parser/CommentParser.js';
import FileDoc from '../Doc/FileDoc.js';
import ClassDoc from '../Doc/ClassDoc.js';
import MethodDoc from '../Doc/MethodDoc.js';
import MemberDoc from '../Doc/MemberDoc.js';
import FunctionDoc from '../Doc/FunctionDoc.js';
import VariableDoc from '../Doc/VariableDoc.js';
import AssignmentDoc from '../Doc/AssignmentDoc.js';
import TypedefDoc from '../Doc/TypedefDoc.js';
import ExternalDoc from '../Doc/ExternalDoc.js';
import ASTUtil from '../Util/ASTUtil.js';
let already = Symbol('already');
let logger = new Logger('DocFactory');
/**
* Doc factory class.
*
* @example
* let factory = new DocFactory(ast, pathResolver);
* factory.push(node, parentNode);
* let results = factory.results;
*/
export default class DocFactory {
/**
* @type {DocObject[]}
*/
get results() {
return [...this._results];
}
/**
* create instance.
* @param {AST} ast - AST of source code.
* @param {PathResolver} pathResolver - path resolver of source code.
*/
constructor(ast, pathResolver) {
this._ast = ast;
this._pathResolver = pathResolver;
this._results = [];
this._processedClassNodes = [];
this._inspectExportDefaultDeclaration();
this._inspectExportNamedDeclaration();
// file doc
let doc = new FileDoc(ast, ast, pathResolver, []);
this._results.push(doc.value);
// ast does not child, so only comment.
if (ast.body.length === 0 && ast.leadingComments) {
let results = this._traverseComments(ast, null, ast.leadingComments);
this._results.push(...results);
}
}
/**
* inspect ExportDefaultDeclaration.
*
* case1: separated export
*
* ```javascript
* class Foo {}
* export default Foo;
* ```
*
* case2: export instance(directly).
*
* ```javascript
* class Foo {}
* export default new Foo();
* ```
*
* case3: export instance(indirectly).
*
* ```javascript
* class Foo {}
* let foo = new Foo();
* export default foo;
* ```
*
* @private
* @todo support function export.
*/
_inspectExportDefaultDeclaration() {
let pseudoExportNodes = [];
for (let exportNode of this._ast.body) {
if (exportNode.type !== 'ExportDefaultDeclaration') continue;
let targetClassName = null;
let targetVariableName = null;
let pseudoClassExport;
switch(exportNode.declaration.type) {
case 'NewExpression':
targetClassName = exportNode.declaration.callee.name;
targetVariableName = targetClassName.replace(/^./, c => c.toLowerCase());
pseudoClassExport = true;
break;
case 'Identifier':
let varNode = ASTUtil.findVariableDeclarationAndNewExpressionNode(exportNode.declaration.name, this._ast);
if (varNode) {
targetClassName = varNode.declarations[0].init.callee.name;
targetVariableName = exportNode.declaration.name;
pseudoClassExport = true;
varNode.type = 'Identifier'; // to ignore
} else {
targetClassName = exportNode.declaration.name;
targetVariableName = targetClassName.replace(/^./, c => c.toLowerCase());
pseudoClassExport = false;
}
break;
default:
logger.w(`unknown export declaration type. type = "${exportNode.declaration.type}"`);
break;
}
let classNode = ASTUtil.findClassDeclarationNode(targetClassName, this._ast);
if (classNode) {
let pseudoExportNode1 = this._copy(exportNode);
pseudoExportNode1.declaration = this._copy(classNode);
pseudoExportNode1.leadingComments = null;
pseudoExportNode1.declaration.__esdoc__pseudo_export = pseudoClassExport;
let pseudoExportNode2 = this._copy(exportNode);
pseudoExportNode2.declaration = ASTUtil.createVariableDeclarationAndNewExpressionNode(targetVariableName, targetClassName, exportNode.loc);
pseudoExportNodes.push(pseudoExportNode1);
pseudoExportNodes.push(pseudoExportNode2);
classNode.type = 'Identifier'; // to ignore
exportNode.type = 'Identifier'; // to ignore
}
let functionNode = ASTUtil.findFunctionDeclarationNode(exportNode.declaration.name, this._ast);
if (functionNode) {
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(functionNode);
exportNode.type = 'Identifier'; // to ignore
functionNode.type = 'Identifier'; // to ignore
pseudoExportNodes.push(pseudoExportNode);
}
let variableNode = ASTUtil.findVariableDeclarationNode(exportNode.declaration.name, this._ast);
if (variableNode) {
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(variableNode);
exportNode.type = 'Identifier'; // to ignore
variableNode.type = 'Identifier'; // to ignore
pseudoExportNodes.push(pseudoExportNode);
}
}
this._ast.body.push(...pseudoExportNodes);
}
/**
* inspect ExportNamedDeclaration.
*
* case1: separated export
*
* ```javascript
* class Foo {}
* export {Foo};
* ```
*
* case2: export instance(indirectly).
*
* ```javascript
* class Foo {}
* let foo = new Foo();
* export {foo};
* ```
*
* @private
* @todo support function export.
*/
_inspectExportNamedDeclaration() {
let pseudoExportNodes = [];
for (let exportNode of this._ast.body) {
if (exportNode.type !== 'ExportNamedDeclaration') continue;
if (exportNode.declaration && exportNode.declaration.type === 'VariableDeclaration') {
for (let declaration of exportNode.declaration.declarations) {
if (declaration.init.type !== 'NewExpression') continue;
let classNode = ASTUtil.findClassDeclarationNode(declaration.init.callee.name, this._ast);
if (classNode) {
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(classNode);
pseudoExportNode.leadingComments = null;
pseudoExportNodes.push(pseudoExportNode);
pseudoExportNode.declaration.__esdoc__pseudo_export = true;
classNode.type = 'Identifier'; // to ignore
}
}
continue;
}
for (let specifier of exportNode.specifiers) {
if (specifier.type !== 'ExportSpecifier') continue;
let targetClassName = null;
let pseudoClassExport;
let varNode = ASTUtil.findVariableDeclarationAndNewExpressionNode(specifier.exported.name, this._ast);
if (varNode) {
targetClassName = varNode.declarations[0].init.callee.name;
pseudoClassExport = true;
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(varNode);
pseudoExportNode.specifiers = null;
pseudoExportNodes.push(pseudoExportNode);
varNode.type = 'Identifier'; // to ignore
} else {
targetClassName = specifier.exported.name;
pseudoClassExport = false;
}
let classNode = ASTUtil.findClassDeclarationNode(targetClassName, this._ast);
if (classNode) {
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(classNode);
pseudoExportNode.leadingComments = null;
pseudoExportNode.specifiers = null;
pseudoExportNode.declaration.__esdoc__pseudo_export = pseudoClassExport;
pseudoExportNodes.push(pseudoExportNode);
classNode.type = 'Identifier'; // to ignore
}
let functionNode = ASTUtil.findFunctionDeclarationNode(specifier.exported.name, this._ast);
if (functionNode) {
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(functionNode);
pseudoExportNode.leadingComments = null;
pseudoExportNode.specifiers = null;
functionNode.type = 'Identifier'; // to ignore
pseudoExportNodes.push(pseudoExportNode);
}
let variableNode = ASTUtil.findVariableDeclarationNode(specifier.exported.name, this._ast);
if (variableNode) {
let pseudoExportNode = this._copy(exportNode);
pseudoExportNode.declaration = this._copy(variableNode);
pseudoExportNode.leadingComments = null;
pseudoExportNode.specifiers = null;
variableNode.type = 'Identifier'; // to ignore
pseudoExportNodes.push(pseudoExportNode);
}
}
}
this._ast.body.push(...pseudoExportNodes);
}
/**
* push node, and factory processes node.
* @param {ASTNode} node - target node.
* @param {ASTNode} parentNode - parent node of target node.
*/
push(node, parentNode) {
if (node === this._ast) return;
if (node[already]) return;
let isLastNodeInParent = this._isLastNodeInParent(node, parentNode);
node[already] = true;
Object.defineProperty(node, 'parent', {value: parentNode});
// unwrap export declaration
if (['ExportDefaultDeclaration', 'ExportNamedDeclaration'].includes(node.type)) {
parentNode = node;
node = this._unwrapExportDeclaration(node);
if (!node) return;
node[already] = true;
Object.defineProperty(node, 'parent', {value: parentNode});
}
let results = this._traverseComments(parentNode, node, node.leadingComments);
this._results.push(...results);
// for trailing comments.
// traverse with only last node, because prevent duplication of trailing comments.
if (node.trailingComments && isLastNodeInParent) {
let results = this._traverseComments(parentNode, null, node.trailingComments);
this._results.push(...results);
}
}
/**
* traverse comments of node, and create doc object.
* @param {ASTNode} parentNode - parent of target node.
* @param {ASTNode} node - target node.
* @param {ASTNode[]} comments - comment nodes.
* @returns {DocObject[]} created doc objects.
* @private
*/
_traverseComments(parentNode, node, comments) {
if (!node) {
let virtualNode = {};
Object.defineProperty(virtualNode, 'parent', {value: parentNode});
node = virtualNode;
}
// hack: leadingComment of MethodDefinition with Literal is not valid by espree(v2.0.2)
if (node.type === 'MethodDefinition' && node.key.type === 'Literal') {
let line = node.loc.start.line - 1;
for (let comment of this._ast.comments || []) {
if (comment.loc.end.line === line) {
comments = [comment];
break;
}
}
}
if (comments && comments.length) {
let temp = [];
for (let comment of comments) {
if (CommentParser.isESDoc(comment)) temp.push(comment);
}
comments = temp;
} else {
comments = [];
}
if (comments.length === 0) {
comments = [{type: 'Block', value: '* @_undocument'}];
}
let results = [];
let lastComment = comments[comments.length - 1];
for (let comment of comments) {
let tags = CommentParser.parse(comment);
let doc;
if (comment === lastComment) {
doc = this._createDoc(node, tags);
} else {
let virtualNode = {};
Object.defineProperty(virtualNode, 'parent', {value: parentNode});
doc = this._createDoc(virtualNode, tags);
}
if (doc) results.push(doc.value);
}
return results;
}
/**
* create Doc.
* @param {ASTNode} node - target node.
* @param {Tag[]} tags - tags of target node.
* @returns {AbstractDoc} created Doc.
* @private
*/
_createDoc(node, tags) {
let result = this._decideType(tags, node);
let type = result.type;
node = result.node;
if (!type) return null;
if (type === 'Class') {
this._processedClassNodes.push(node);
}
let clazz;
switch (type) {
case 'Class': clazz = ClassDoc; break;
case 'Method': clazz = MethodDoc; break;
case 'Member': clazz = MemberDoc; break;
case 'Function': clazz = FunctionDoc; break;
case 'Variable': clazz = VariableDoc; break;
case 'Assignment': clazz = AssignmentDoc; break;
case 'Typedef': clazz = TypedefDoc; break;
case 'External': clazz = ExternalDoc; break;
}
if (!clazz) return;
if (!node.type) node.type = type;
return new clazz(this._ast, node, this._pathResolver, tags);
}
/**
* decide Doc type by using tags and node.
* @param {Tag[]} tags - tags of node.
* @param {ASTNode} node - target node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideType(tags, node) {
let type = null;
for (let tag of tags) {
let tagName = tag.tagName;
switch (tagName) {
case '@_class': type = 'Class'; break;
case '@_member': type = 'Member'; break;
case '@_method': type = 'Method'; break;
case '@_function': type = 'Function'; break;
case '@_var': type = 'Variable'; break;
case '@typedef': type = 'Typedef'; break;
case '@external': type = 'External'; break;
}
}
if (type) return {type, node};
if (!node) return {type, node};
switch (node.type) {
case 'ClassDeclaration':
return this._decideClassDeclarationType(node);
case 'MethodDefinition':
return this._decideMethodDefinitionType(node);
case 'ExpressionStatement':
return this._decideExpressionStatementType(node);
case 'FunctionDeclaration':
return this._decideFunctionDeclarationType(node);
case 'VariableDeclaration':
return this._decideVariableType(node);
case 'AssignmentExpression':
return this._decideAssignmentType(node);
}
return {type: null, node: null};
}
/**
* decide Doc type from class declaration node.
* @param {ASTNode} node - target node that is class declaration node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideClassDeclarationType(node) {
if (!this._isTopDepthInBody(node, this._ast.body)) return {type: null, node: null};
return {type: 'Class', node: node};
}
/**
* decide Doc type from method definition node.
* @param {ASTNode} node - target node that is method definition node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideMethodDefinitionType(node) {
let classNode = this._findUp(node, ['ClassDeclaration', 'ClassExpression']);
if (this._processedClassNodes.includes(classNode)) {
return {type: 'Method', node: node};
} else {
logger.w('this method is not in class', node);
return {type: null, node: null};
}
}
/**
* decide Doc type from function declaration node.
* @param {ASTNode} node - target node that is function declaration node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideFunctionDeclarationType(node) {
if (!this._isTopDepthInBody(node, this._ast.body)) return {type: null, node: null};
return {type: 'Function', node: node};
}
/**
* decide Doc type from expression statement node.
* @param {ASTNode} node - target node that is expression statement node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideExpressionStatementType(node) {
let isTop = this._isTopDepthInBody(node, this._ast.body);
Object.defineProperty(node.expression, 'parent', {value: node});
node = node.expression;
node[already] = true;
let innerType;
let innerNode;
if (!node.right) return {type: null, node: null};
switch (node.right.type) {
case 'FunctionExpression':
innerType = 'Function';
break;
case 'ClassExpression':
innerType = 'Class';
break;
default:
if (node.left.type === 'MemberExpression' && node.left.object.type === 'ThisExpression') {
let classNode = this._findUp(node, ['ClassExpression', 'ClassDeclaration']);
if (!this._processedClassNodes.includes(classNode)) {
logger.w('this member is not in class.', this._pathResolver.filePath, node);
return {type: null, node: null};
}
return {type: 'Member', node: node};
} else {
return {type: null, node: null};
}
}
if (!isTop) return {type: null, node: null};
innerNode = node.right;
innerNode.id = this._copy(node.left.id || node.left.property);
Object.defineProperty(innerNode, 'parent', {value: node});
innerNode[already] = true;
return {type: innerType, node: innerNode};
}
/**
* decide Doc type from variable node.
* @param {ASTNode} node - target node that is variable node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideVariableType(node) {
if (!this._isTopDepthInBody(node, this._ast.body)) return {type: null, node: null};
let innerType = null;
let innerNode = null;
if (!node.declarations[0].init) return {type: innerType, node: innerNode};
switch (node.declarations[0].init.type) {
case 'FunctionExpression':
innerType = 'Function';
break;
case 'ClassExpression':
innerType = 'Class';
break;
default:
return {type: 'Variable', node: node};
}
innerNode = node.declarations[0].init;
innerNode.id = this._copy(node.declarations[0].id);
Object.defineProperty(innerNode, 'parent', {value: node});
innerNode[already] = true;
return {type: innerType, node: innerNode};
}
/**
* decide Doc type from assignment node.
* @param {ASTNode} node - target node that is assignment node.
* @returns {{type: string, node: ASTNode}} decided type.
* @private
*/
_decideAssignmentType(node) {
if (!this._isTopDepthInBody(node, this._ast.body)) return {type: null, node: null};
let innerType;
let innerNode;
switch (node.right.type) {
case 'FunctionExpression':
innerType = 'Function';
break;
case 'ClassExpression':
innerType = 'Class';
break;
default:
return {type: 'Assignment', node: node};
}
innerNode = node.right;
innerNode.id = this._copy(node.left.id || node.left.property);
Object.defineProperty(innerNode, 'parent', {value: node});
innerNode[already] = true;
return {type: innerType, node: innerNode};
}
/**
* unwrap exported node.
* @param {ASTNode} node - target node that is export declaration node.
* @returns {ASTNode|null} unwrapped child node of exported node.
* @private
*/
_unwrapExportDeclaration(node) {
// e.g. `export A from './A.js'` has not declaration
if (!node.declaration) return null;
let exportedASTNode = node.declaration;
if (!exportedASTNode.leadingComments) exportedASTNode.leadingComments = [];
exportedASTNode.leadingComments.push(...node.leadingComments || []);
if (!exportedASTNode.trailingComments) exportedASTNode.trailingComments = [];
exportedASTNode.trailingComments.push(...node.trailingComments || []);
return exportedASTNode;
}
/**
* judge node is last in parent.
* @param {ASTNode} node - target node.
* @param {ASTNode} parentNode - target parent node.
* @returns {boolean} if true, the node is last in parent.
* @private
*/
_isLastNodeInParent(node, parentNode) {
if (parentNode && parentNode.body) {
let lastNode = parentNode.body[parentNode.body.length - 1];
return node === lastNode;
}
return false;
}
/**
* judge node is top in body.
* @param {ASTNode} node - target node.
* @param {ASTNode[]} body - target body node.
* @returns {boolean} if true, the node is top in body.
* @private
*/
_isTopDepthInBody(node, body) {
if (!body) return false;
if (!Array.isArray(body)) return false;
let parentNode = node.parent;
if (['ExportDefaultDeclaration', 'ExportNamedDeclaration'].includes(parentNode.type)) {
node = parentNode;
}
for (let _node of body) {
if (node === _node) return true;
}
return false;
}
/**
* deep copy object.
* @param {Object} obj - target object.
* @return {Object} copied object.
* @private
*/
_copy(obj) {
return JSON.parse(JSON.stringify(obj));
}
/**
* find node while goes up.
* @param {ASTNode} node - start node.
* @param {string[]} types - ASTNode types.
* @returns {ASTNode|null} found first node.
* @private
*/
_findUp(node, types) {
let parent = node.parent;
while(parent) {
if (types.includes(parent.type)) return parent;
parent = parent.parent;
}
return null;
}
}
|
{
expect(() => jestExpect(0).toBeTruthy(null)).toThrowErrorMatchingSnapshot();
expect(() => jestExpect(0).toBeFalsy(null)).toThrowErrorMatchingSnapshot();
}
|
/*
* Full Documentation:
* http://developers.freshbooks.com/docs/projects/
*
*/
var utils = require('./utils');
function ProjectService(config) {
if (!(this instanceof ProjectService)) {
return new ProjectService(config);
}
this.config = config;
}
/* http://developers.freshbooks.com/docs/projects/#project.list */
ProjectService.prototype.list = function(callback) { //cb(err, project, metaData)
var options = {
method: 'project.list',
url: this.config.url,
token: this.config.token
};
var filters, cb;
if (typeof arguments[1] === 'function') {
cb = arguments[1];
filters = arguments[0];
}
utils.callAPI(filters, options, function(err, result) {
if (err) {
cb(err, null);
}
else if (!result || !result.projects) {
cb(null, null);
}
else {
var meta;
if (result.projects.$) {
meta = {
page: result.projects.$.page,
per_page: result.projects.$.per_page,
pages: result.projects.$.pages,
total: result.projects.$.total
};
}
else {
meta = {};
}
var projects;
if (result.projects.project) {
if (Array.isArray(result.projects.project)) {
projects = result.projects.project;
}
else {
projects = [result.projects.project];
}
}
else {
projects = [];
}
cb(null, projects, meta);
}
});
};
/* http://developers.freshbooks.com/docs/projects/#project.create */
ProjectService.prototype.create = function(project, cb) { //cb(err, project)
var self = this,
data = {
project: project
},
options = {
method: 'project.create',
url: this.config.url,
token: this.config.token
};
utils.callAPI(data, options, function(err, result) {
if (err) {
cb(err, null);
}
else if (!result || !result.project_id) {
cb(new Error('Server returned no ID for project create'), null);
}
else {
self.get(result.project_id, cb);
}
});
};
/* http://developers.freshbooks.com/docs/projects/#project.update */
ProjectService.prototype.update = function(project, cb) { //cb(err, project)
var self = this,
data = {
project: project
},
options = {
method: 'project.update',
url: this.config.url,
token: this.config.token
};
utils.callAPI(data, options, function(err, result) {
if (err) {
cb(err, null);
}
else {
self.get(project.project_id, cb);
}
});
};
/* http://developers.freshbooks.com/docs/projects/#project.get */
ProjectService.prototype.get = function(id, cb) { //cb(err, project)
var data = {
project_id: id
},
options = {
method: 'project.get',
url: this.config.url,
token: this.config.token
};
utils.callAPI(data, options, function(err, result) {
if (err) {
cb(err, null);
}
else if (!result) {
cb(null, null);
}
else {
cb(null, result.project || null);
}
});
};
/* http://developers.freshbooks.com/docs/projects/#project.delete */
ProjectService.prototype.delete = function(id, cb) { //cb(err)
var data = {
project_id: id
},
options = {
method: 'project.delete',
url: this.config.url,
token: this.config.token
};
utils.callAPI(data, options, function(err, result) {
if (err) {
cb(err);
}
else {
cb(null);
}
});
};
module.exports = ProjectService;
|
module.exports = {
rules: {
'comma-dangle': [2, 'never'],
'id-length': [1, {
min: 3,
properties: 'never',
exceptions: ['_', '$', 'x', 'y', 'i', 'j']
}],
'no-unused-vars': [2, {
vars: 'all',
args: 'none'
}],
'no-use-before-define': 2,
'vars-on-top': 0,
'object-curly-newline': [2, { consistent: true }],
'no-plusplus': [2, { allowForLoopAfterthoughts: true }]
}
};
|
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('biker', 'Unit | Model | biker', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
let model = this.subject();
// let store = this.store();
assert.ok(!!model);
});
|
// Karma configuration
// Generated on Wed Nov 05 2014 07:16:09 GMT+0800 (中国标准时间)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'bower_components/yoop/yOOP.js',
'bower_components/jquery/jquery.js',
'test/hepler/**',
'src/main.js',
'src/import/jsExtend.js',
'src/import/yeQuery.js' ,
'src/base/Entity.js',
'src/base/Node.js',
'src/base/*.js',
'src/action/Action.js',
'src/action/ActionInstant.js',
'src/action/ActionInterval.js',
'src/action/Control.js',
'src/loader/Loader.js',
'src/**',
'test/unit/**'
],
// list of files to exclude
exclude: [
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome', 'IE'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
});
};
|
'use strict';
var chalk = require('chalk');
module.exports = function (vorpal, options) {
var app = options.app;
vorpal.command('proxy add', 'Runs Wat through a proxy.').action(function (args, cb) {
var self = this;
self.log('\n This will set Wat up to connect through a proxy.\n Please answer the following:\n');
var questions = [{
type: 'input',
name: 'address',
message: chalk.blue(' proxy address: ')
}, {
type: 'input',
name: 'port',
message: chalk.blue(' proxy port: ')
}, {
type: 'input',
name: 'user',
message: chalk.blue(' user ' + chalk.grey('(optional)') + ': ')
}, {
type: 'input',
name: 'pass',
message: chalk.blue(' pass ' + chalk.grey('(optional)') + ': ')
}];
this.prompt(questions, function (data) {
app.clerk.prefs.set('proxy', 'on');
app.clerk.prefs.set('proxy-address', data.address);
app.clerk.prefs.set('proxy-port', data.port);
app.clerk.prefs.set('proxy-user', data.user);
app.clerk.prefs.set('proxy-pass', data.pass);
self.log('\n Great! Try out your connection.\n');
cb();
});
});
vorpal.command('proxy remove', 'Removes Wat\'s proxy settings.').action(function (args, cb) {
var self = this;
var isOn = app.clerk.prefs.get('proxy') === 'on';
if (!isOn) {
self.log('You aren\'t using a proxy!');
cb();
return;
}
var questions = [{
type: 'confirm',
name: 'remove',
'default': 'y',
message: 'Remove proxy? '
}];
this.prompt(questions, function (data) {
if (data.remove === true) {
app.clerk.prefs.set('proxy', 'off');
}
cb();
});
});
};
|
export { default } from '@upfluence/oss-components/modifiers/enable-dropdown';
|
"use strict";
const main_js_1 = require("../../main.js");
module.exports = main_js_1.validateDefintion({
command: 'open-vue-app [name]',
alias: 'ova',
checkExecutable: 'chromium-browser',
description: 'Open a Vue app in Chromium.'
});
|
var mongojs = require('mongojs');
var Promise = require('bluebird');
require('dotenv').config();
// Heroku Addon Case - use mongo connection string
if(process.env.MONGODB_URI){
process.env.DB = process.env.MONGODB_URI
}
// check to see if the DB exists. If not, create a sample builings collection.
db = mongojs(process.env.DB, ['buildings']);
db.buildings.findOne({}, function(err, docs){
if(err){
console.log(err);
process.exit(1);
}
if(docs){
// collection exists
console.log('collection exists, moving on.');
process.exit(0);
}else{
// collection doesn't exist!
console.log('collection doesn\'t exist. Creating a new one!');
db.buildings.insert(sampleBuilding, function(err, docs){
if(err){
console.log(err);
process.exit(1);
}else{
console.log('Success!');
process.exit(0);
}
})
}
});
var sampleBuilding = {
"buildingId" : "ORD",
"buildingName" : "Rosemont, IL",
"address1" : "9501 Technology Blvd",
"address2" : "",
"city" : "Rosemont",
"state" : "IL",
"phone" : "",
"type" : "Demo Office",
"lattitude" : "",
"longitude" : "",
"floors" : [
{
"floorID" : "1",
"floorName" : "1ST FLOOR",
"drawingName" : "",
"status" : "Online"
}
],
"timeZoneId" : "America/Chicago",
"offset" : -21600,
"conferenceDetails" : [
{
"spnamePretty" : "Home Office",
"schedname" : "ORD-HomeOffice (1)",
"spaceCap" : 1,
"videoConferencing" : "Y",
"tpscreen" : "DX80",
"proxyStatus" : "PUBLIC",
"tpScreenNumber" : 2,
"EmailAddress" : "ord-homeoffice@bdmenterprises.onmicrosoft.com"
},
{
"spnamePretty" : "Poolside",
"schedname" : "ORD-Poolside (6)",
"spaceCap" : 6,
"videoConferencing" : "N",
"tpscreen" : null,
"tpScreenNumber" : null,
"EmailAddress" : "ord-poolside@bdmenterprises.onmicrosoft.com"
},
{
"spnamePretty" : "Theater",
"schedname" : "ORD-Theater (8)",
"spaceCap" : 8,
"videoConferencing" : "Y",
"tpscreen" : null,
"proxyStatus" : "PUBLIC",
"tpScreenNumber" : null,
"EmailAddress" : "ord-theater@bdmenterprises.onmicrosoft.com"
}
],
"dstOffset" : 60
}
|
/**
* Created with JetBrains RubyMine.
* User: teamco
* Date: 11/4/12
* Time: 11:06 PM
* To change this template use File | Settings | File Templates.
*/
import {BaseModel} from '../../modules/Model';
import {Page} from '../config/page';
/**
* @constant WorkspaceModel
* @type {WorkspaceModel}
* @extends BaseModel
*/
export class WorkspaceModel extends BaseModel {
/**
* @constructor
* @param {string} name
* @param scope
*/
constructor(name, scope) {
super(name || 'WorkspaceModel', scope);
/**
* Define item
* @property WorkspaceModel
* @type {Page}
*/
this.item = Page;
/**
* Skip transfer preferences
* @property WorkspaceModel
* @type {string[]}
*/
this.skipPreferencesOn = [
'cloneItemContent'
];
}
/**
* Set static width
* @memberOf WorkspaceModel
* @param {boolean} width
*/
setStaticWidth(width) {
// Define config
const config = this.scope.config;
config.preferences.staticWidth = width;
config.isResized = !width;
}
/**
* Set Site Width Slider
* @memberOf WorkspaceModel
* @param {number} width
*/
setSiteWidthSlider(width) {
this._setItemInfoPreferences('siteWidthSlider', width);
/**
* Set local scope
* @type {Workspace}
*/
const scope = this.scope;
scope.observer.publish(
scope.eventManager.eventList.updatePagesWidth
);
}
/**
* Set site title
* @memberOf WorkspaceModel
* @param {string} title
*/
setSiteTitle(title) {
/**
* Set local scope
* @type {Workspace}
*/
const scope = this.scope;
this._setItemInfoPreferences('siteTitle', title);
scope.observer.publish(scope.eventManager.eventList.updateSiteTitle);
}
/**
* Set site author
* @memberOf WorkspaceModel
* @param {string} author
*/
setSiteAuthor(author) {
/**
* Set local scope
* @type {Workspace}
*/
const scope = this.scope;
this._setItemInfoPreferences('siteAuthor', author);
scope.observer.publish(scope.eventManager.eventList.updateSiteAuthor);
}
/**
* Set site description
* @memberOf WorkspaceModel
* @param {string} description
*/
setSiteDescription(description) {
/**
* Set local scope
* @type {Workspace}
*/
const scope = this.scope;
this._setItemInfoPreferences('siteDescription', description);
scope.observer.publish(scope.eventManager.eventList.updateSiteDescription);
}
/**
* Set site keywords
* @memberOf WorkspaceModel
* @param {string} keywords
*/
setSiteKeywords(keywords) {
/**
* Set local scope
* @type {Workspace}
*/
const scope = this.scope;
this._setItemInfoPreferences('siteKeywords', keywords);
scope.observer.publish(scope.eventManager.eventList.updateSiteKeywords);
}
/**
* Define clone item content
* @memberOf WorkspaceModel
* @param {string} itemUUID
*/
setCloneItemContent(itemUUID) {
/**
* Get scope
* @type {Workspace}
*/
const scope = this.scope;
scope.observer.publish(scope.eventManager.eventList.clonePage, itemUUID);
}
/**
* Define load pages
* @memberOf WorkspaceModel
*/
loadPages() {
this.scope.controller.setAsLoading(true);
/**
* Get collector
* @type {object}
*/
const collector = this.getCollector(this.item);
this.loadData(this.item, collector);
}
}
|
$(function(){
$('#summernote').summernote({
height: 300,
lang: 'fr-FR'
});
var summerNoteVide = $("#summernote").summernote('code');
$("#envoiMail").bootstrapToggle();
Dropzone.options.form2 = {
parallelUploads: 10,
maxFiles: 10,
autoProcessQueue: false,
addRemoveLinks: true,
dictDefaultMessage: 'Déplacer les fichiers ou cliquer ici pour upload',
dictRemoveFile: "Supprimer",
init: function() {
myDropzone = this;
$("#validerNouvelleActu").click(function(){
if($("#titreNouvelleActu").val() == "" || $("#summernote").summernote('code') == summerNoteVide || $("#summernote").summernote('code') == "<br>")
{
alert("Veuillez saisir un titre et un contenu");
}
else{
$("#validerNouvelleActu").prop("disabled", true);
$("#waitValider").show();
var idUser = $("#user_id").val();
var titre = $("#titreNouvelleActu").val();
var description = $("#descriptionNouvelleActu").val();
if(description == "")
{
description = null;
}
var contenu = $("#summernote").summernote('code');
$.post("API/addActualite.php", {titre: titre, contenu: contenu, utilisateur_id: idUser, description: description}, function(data){
var idActu = JSON.parse(data);
if(idActu != null)
{
if($("#imageEnteteNouvelleActu").val() != "")
{
var image = document.getElementById("imageEnteteNouvelleActu").files[0];
var xhr = new XMLHttpRequest();
xhr.open('POST', 'API/modifierImageEnteteActualite.php');
var form = new FormData();
form.append("image", image);
form.append("actualite_id", idActu);
xhr.send(form);
}
if(myDropzone.getUploadingFiles().length == 0 && myDropzone.getQueuedFiles().length == 0)
{
if($("#envoiMail").is(":checked"))
{
$.post("API/mailNotifNouvelleActualite.php", {actualite_id: idActu}, function(data){
var reponse = JSON.parse(data);
if(reponse)
{
document.location.href = "actualite.php?id=" + idActu;
}
else{
alert("Les mails n'ont pas pu être envoyés aux utilisateurs");
$("#validerNouvelleActu").prop("disabled", false);
$("#waitValider").hide();
}
});
}
else{
document.location.href = "actualite.php?id=" + idActu;
}
}
else{
myDropzone.on("complete", function (file) {
if (this.getUploadingFiles().length === 0 && this.getQueuedFiles().length === 0) {
if($("#envoiMail").is(":checked"))
{
$.post("API/mailNotifNouvelleActualite.php", {actualite_id: idActu}, function(data){
var reponse = JSON.parse(data);
if(reponse)
{
document.location.href = "actualite.php?id=" + idActu;
}
else{
alert("Les mails n'ont pas pu être envoyés aux utilisateurs");
$("#validerNouvelleActu").prop("disabled", false);
$("#waitValider").hide();
}
});
}
else{
document.location.href = "actualite.php?id=" + idActu;
}
}
});
myDropzone.on('sending', function(file, xhr, formData){
formData.append('actualite_id', idActu);
});
myDropzone.processQueue();
}
}
else{
alert("Une erreur s'est produite, veuillez réessayer plus tard");
$("#validerNouvelleActu").prop("disabled", false);
$("#waitValider").hide();
}
});
}
});
}
};
$("#btnReinitialiser").click(function(){
window.location.reload();
});
});
|
'use strict';
const getReturnValue = require('./getReturnValue'),
throwOnUnknownProperties = require('./throwOnUnknownProperties');
const formats = {};
// Basically, the following lines could be replaced by a single call to the
// require-all module, but this would break browserify compatibility. Hence,
// the require calls are made manually here.
formats.alphanumeric = require('./validators/alphanumeric');
formats.boolean = require('./validators/boolean');
formats.custom = require('./validators/custom');
formats.date = require('./validators/date');
formats.email = require('./validators/email');
formats.function = require('./validators/function');
formats.ip = require('./validators/ip');
formats.mac = require('./validators/mac');
formats.number = require('./validators/number');
formats.object = require('./validators/object');
formats.regex = require('./validators/regex');
formats.string = require('./validators/string');
formats.uuid = require('./validators/uuid');
Object.keys(formats).forEach(key => {
const newKey = `is${key[0].toUpperCase()}${key.substring(1)}`;
formats[newKey] = function (value, options) {
return formats[key](options)(value);
};
});
formats.getReturnValue = getReturnValue;
formats.throwOnUnknownProperties = throwOnUnknownProperties;
module.exports = formats;
|
import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import CustomPropTypes from "custom-prop-types";
import { partial } from "lodash";
import IconButtonDelete from "components/IconButtonDelete";
import DuplicateButton from "components/DuplicateButton";
import Truncated from "components/Truncated";
import { colors } from "constants/theme";
import QuestionnaireLink from "../QuestionnaireLink";
import FormattedDate from "../FormattedDate";
import FadeTransition from "../../FadeTransition";
const TruncatedQuestionnaireLink = Truncated.withComponent(QuestionnaireLink);
TruncatedQuestionnaireLink.displayName = "TruncatedQuestionnaireLink";
const ButtonGroup = styled.div`
display: flex;
justify-content: space-evenly;
`;
const TR = styled.tr`
border-bottom: 1px solid #e2e2e2;
border-top: 1px solid #e2e2e2;
opacity: 1;
color: ${props => (props.disabled ? `${colors.textLight}` : "inherit")};
`;
const TD = styled.td`
line-height: 1.3;
padding: 0.5em 1em;
text-align: ${props => props.textAlign};
`;
TD.propTypes = {
textAlign: PropTypes.oneOf(["left", "center", "right"])
};
TD.defaultProps = {
textAlign: "left"
};
class Row extends React.Component {
static propTypes = {
questionnaire: CustomPropTypes.questionnaire.isRequired,
onDeleteQuestionnaire: PropTypes.func.isRequired,
onDuplicateQuestionnaire: PropTypes.func.isRequired,
in: PropTypes.bool,
exit: PropTypes.bool,
enter: PropTypes.bool,
autoFocus: PropTypes.bool
};
rowRef = React.createRef();
handleDuplicateQuestionnaire = () => {
this.props.onDuplicateQuestionnaire(this.props.questionnaire);
};
isQuestionnaireADuplicate() {
return this.props.questionnaire.id.startsWith("dupe");
}
shouldComponentUpdate(nextProps) {
for (let key of Object.keys(Row.propTypes)) {
if (this.props[key] !== nextProps[key]) {
return true;
}
}
return false;
}
focusLink() {
this.rowRef.current.getElementsByTagName("a")[0].focus();
}
componentDidMount() {
if (this.isQuestionnaireADuplicate() || this.props.autoFocus) {
this.focusLink();
}
}
componentDidUpdate() {
if (this.props.autoFocus) {
this.focusLink();
}
}
render() {
const { questionnaire, onDeleteQuestionnaire, ...rest } = this.props;
const isOptimisticDupe = this.isQuestionnaireADuplicate();
return (
<FadeTransition
{...rest}
enter={isOptimisticDupe}
exit={!isOptimisticDupe}
>
<TR innerRef={this.rowRef} disabled={isOptimisticDupe}>
<TD>
<TruncatedQuestionnaireLink
data-test="anchor-questionnaire-title"
questionnaire={questionnaire}
title={questionnaire.title}
disabled={isOptimisticDupe}
>
{questionnaire.title}
</TruncatedQuestionnaireLink>
</TD>
<TD>
<FormattedDate date={questionnaire.createdAt} />
</TD>
<TD>
<Truncated>{questionnaire.createdBy.name || "Unknown"}</Truncated>
</TD>
<TD textAlign="center">
<ButtonGroup>
<DuplicateButton
data-test="btn-duplicate-questionnaire"
onClick={this.handleDuplicateQuestionnaire}
disabled={isOptimisticDupe}
/>
<IconButtonDelete
hideText
data-test="btn-delete-questionnaire"
onClick={partial(onDeleteQuestionnaire, questionnaire.id)}
disabled={isOptimisticDupe}
/>
</ButtonGroup>
</TD>
</TR>
</FadeTransition>
);
}
}
export default Row;
|
// // // // // // 备忘模式
// // // // // var fun = function (param) {
// // // // // var f = arguments.callee,
// // // // // result;
// // // // // if (!f.cache[param]) {
// // // // // result = {};
// // // // // for (var i = 1; i < parseInt(param); i++) {
// // // // // result[i] = i + '' + i;
// // // // // }
// // // // // f.cache[param] = result;
// // // // // }
// // // // // return f.cache[param];
// // // // // }
// // // // // fun.cache = {};
// // // // // console.time('one');
// // // // // var a = fun(1000000);
// // // // // console.timeEnd('one');
// // // // // console.time('two');
// // // // // var b = fun(1000000);
// // // // // console.timeEnd('two');
// // // // var alian = {
// // // // sayHi: function (who) {
// // // // return "Hello " + (who ? ", " + who : '') + "!";
// // // // }
// // // // }
// // // // console.log(alian.sayHi('world'));
// // // // console.log(alian.sayHi.call(alian, 'will'));
// // // // 函数柯里化
// // // function toCurry(fn) {
// // // var slice = Array.prototype.slice,
// // // saveArg = slice.call(arguments, 1),
// // // that = this;
// // // return function () {
// // // var funArg = slice.call(arguments);
// // // return fn.apply(that, saveArg.concat(funArg));
// // // }
// // // }
// // // function add() {
// // // arguments = Array.prototype.slice.apply(arguments);
// // // return arguments.reduce(function (x, y) {
// // // return x + y;
// // // })
// // // }
// // // var curryAdd = toCurry(add, 1, 2, 3);
// // // curryAdd = toCurry(curryAdd, 4, 5, 6, 7)
// // // console.log(curryAdd(8));
// // // 通用命名空间函数
// // var MYAPP = {};
// // function namespace(str, par) {
// // var parts = str.split('.'),
// // parent;
// // if (typeof par === 'object') {
// // namespace.parent = par;
// // } else if (!namespace.parent) {
// // throw new Error('first time need a global module obj');
// // }
// // parent = namespace.parent;
// // parts = parts[0] === parent ? parts.slice(1) : parts;
// // parts.forEach(function (elem) {
// // parent[elem] = parent[elem] || {};
// // parent = parent[elem];
// // });
// // return parent;
// // }
// // var module2 = namespace('module1.module2', MYAPP);
// // var module3 = namespace('module1.module2.module3');
// // console.log(module2 === MYAPP.module1.module2);
// // console.log(module3 === MYAPP.module1.module2.module3);
// // console.log(module2 === MYAPP.module1.module2);
// // 揭示模块模式
// // use namespace to generate a namespace
// // namespace('utils.Array', MYAPP);
// // use for test
// var MYAPP = {
// utils: {
// array: {},
// lang: 'China'
// }
// };
// MYAPP.utils.array= (function () {
// // add dependence
// var lang = MYAPP.utils.lang,
// // create private value;
// arrStr = '[object Array]',
// toString = Object.prototype.toString;
// // private function
// function isArray(obj) {
// return toString.call(obj) === arrStr;
// }
// function indexOf(haystack, needle) {
// if (isArray(haystack)) {
// for (var i = 0, j = haystack.length; i < j; i++) {
// if (haystack[i] === needle)
// return i;
// }
// return -1;
// }
// }
// function inArray(haystack, needle) {
// if (indexOf(haystack, needle) != -1)
// return true;
// return false;
// }
// return {
// isArray: isArray,
// indexOf: indexOf,
// inArray: inArray
// };
// }());
// console.log(MYAPP.utils.array.isArray([]));
// console.log(MYAPP.utils.array.indexOf([1,2, 3, 4, 5, 6], 4));
// console.log(MYAPP.utils.array.inArray([1,2, 3, 4, 5, 6], 4));
// // 构造函数的模块
// MYAPP.utils.Array = (function () {
// // ... do things like prev, but return with another way
// // private value
// var slice = Array.prototype.slice;
// var Constructor = function (o) {
// this.elements = slice.call(o);
// };
// Constructor.prototype = {
// coustructor: MYAPP.utils.Array,
// version: '',
// toArray: function (obj) {
// return slice.call(obj);
// }
// }
// return Constructor;
// }());
// var testObj = (function () {return arguments}(1,2,3,4,5,6));
// console.log(Object.prototype.toString.call(testObj));
// console.dir(testObj);
// testObj = new MYAPP.utils.Array(testObj);
// console.log(Object.prototype.toString.call(testObj));
// console.dir(testObj);
// // 沙箱模式
// var SandBox = function () {
// var slice = Array.prototype.slice,
// toType = Object.prototype.toString,
// isArr = function (obj) {
// return toType.call(obj) === '[object Array]';
// },
// args = slice.call(arguments),
// callback = args.pop(),
// modules = isArr(args[0]) ? args[0] : args;
// this.a = 1; // set something you want config in SandBox
// if (!(this instanceof SandBox)) {
// return new SandBox(modules, callback);
// }
// if (!modules.length || modules [0] === '*') {
// modules = [];
// for (var i in SandBox.modules) {
// if (SandBox.modules.hasOwnProperty(i)) {
// modules.push(i);
// }
// }
// }
// for (var i = 0, l = modules.length; i < l; i++) {
// SandBox.modules[modules[i]](this);
// }
// callback(this);
// };
// SandBox.modules = {};
// SandBox.modules.dom = function (box) {
// box.getElement = function () {console.log('getElement');},
// box.setElement = function () {console.log('setElement');},
// box.delElement = function () {console.log('delElement');}
// };
// SandBox.modules.event = function (box) {
// box.Emitter = function () {console.log('Emitter');},
// box.Event = function() {console.log('Event');}
// };
// SandBox.prototype = {
// version: '',
// // ...
// };
// SandBox('event', function (box) {
// console.dir(box);
// });
// 类继承模式#1 默认模式
function inherit(Child, Parent) {
Child.prototype = new Parent();
}
function Parent() {}
Parent.prototype.name = 'prototype';
function Child() {}
var child = new Child();
console.log(child.name);
inherit(Child, Parent);
var child2 = new Child();
console.log(child2.name);
// 类继承模式#2 借用构造函数模式
function Water(name) {
this.name = name;
}
function Coffee(name) {
Water.apply(this, arguments);
}
var nest = new Coffee('nest');
var boilWater = new Water('boil water');
// 并不是引用同一个对象,prototype不一样,不会对
// 父对象有其他影响。
console.log(boilWater.name);
console.log(nest.name);
// 借用构造函数实现多重继承
function CocoPowder(powder) {
this.powder = powder;
}
function Coco(name) {
Water.call(this, name);
CocoPowder.call(this, 'coco');
}
var willCoco = new Coco('will coco');
console.log(willCoco.name);
console.log(willCoco.powder);
// 类继承模式#3 糅合#1 和 #2 两种形式的优点,不过会出现效率低下的情况,因为相同的部分被继承了两次
function Phone(name) {
this.name = name;
}
Phone.prototype.init = function () {
console.log('haha, An ' + this.name + ' was created');
}
function SmartPhone(name) {
Phone.apply(this, arguments);
}
SmartPhone.prototype = new Phone();
SmartPhone.prototype.constructor = SmartPhone;
var iphone = new SmartPhone('iphone');
console.log(iphone.name);
iphone.init();
// 共享原型模式#4 仅仅是将子对象的原型对象设置为父对象的原型对象
function Flower() {};
Flower.prototype.showPerfume = function () {
console.log('charming perfume of ' + this.name);
}
function Rose(name) {
this.name = name;
}
Rose.prototype = Flower.prototype;
var redRose = new Rose('red rose');
redRose.showPerfume();
// 临时构造函数模式#5
function Fun() {
this.name = 'Fun';
}
Fun.prototype.sayName = function () {
console.log(this.name);
}
function SubFun() {
this.name = 'sub fun';
}
function inherit(Child, Parent) {
var tempFun = function () {};
tempFun.prototype = Parent.prototype;
Child.prototype = new tempFun();
}
inherit(SubFun, Fun);
var subFun = new SubFun();
console.log(subFun.name);
subFun.sayName();
delete subFun.name;
console.log(subFun.name);
subFun.sayName();
// 这种模式能够避免继承到父类中this下的属性,而对于原型上的通用属性能够进行继承
// 在使用上述方法的时候还可以考虑存储父类
function inherit(Child, Parent) {
var tempFun = function (){};
tempFun.prototype = Parent.prototype;
Child.prototype = new tempFun();
Child.uber = Parent.prototype;
}
console.log(SubFun.uber.constructor);
// 为避免每次创建时都需要创建一个替代函数,可以使用闭包的方式优化
var inherit = (function () {
var F = function () {};
return function (Child, Parent) {
F.prototype = Parent.prototype;
Child.prototype = new F();
Child.prototype.constructor = Child;
Child.uber = Parent.prototype;
};
}());
// Klass in javascript
var Klass = function (Parent, prop) {
var Child = function () {
if (Child.uber && Child.uber.hasOwnProperty('__constructor')) {
Child.uber.__constructor.apply(this, arguments);
}
if (Child.prototype.hasOwnProperty('__constructor')) {
Child.prototype.__constructor.apply(this, arguments);
}
}
Parent = Parent || Object;
var F = function () {};
F.prototype = Parent.prototype;
Child.prototype = new F();
Child.prototype.constructor = Child;
Child.uber = Parent.prototype;
for (var i in prop) {
if (prop.hasOwnProperty(i)) {
Child.prototype[i] = prop[i];
}
}
return Child;
}
var Man = function (age) {
this.name = 'human';
this.age = age;
}
Man.prototype.say = function () {
console.log('I am ' + this.age + ' old');
}
var SuperMan = Klass(Man, {
__constructor: function (power) {
console.log('I have ' + power + ' power');
this.power = power;
},
say: function () {
console.log('I am super man!');
}
});
var chinese = new Man(10);
var chineseSuperMan = new SuperMan(10000);
chinese.say();
chineseSuperMan.say();
|
Xhr.encode_urlencode = function(hash){
var str = [];
hash.each(function(val){
if($type(val) == 'string') str.push(val);
else str.push(val.key + '=' + encodeURIComponent(val.value));
});
return str.join('&');
};
Xhr.implement({
encode_urlencode: {
transport_callback:'send',
encode:function(hash, callback){
var str = Xhr.encode_urlencode(hash);
this.addHeaders({
'Content-Type' : 'application/x-www-form-urlencoded'
});
callback(str);
}
}
});
|
module.exports={A:{A:{"2":"L H jB","132":"G E A B"},B:{"1":"8","132":"C D e K I N J"},C:{"1":"0 1 2 3 9 f g h i j k l m n o M q r s t u v w x y z JB IB CB DB EB O GB HB","132":"4 5 7 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d aB ZB"},D:{"1":"3 8 9 IB CB DB EB O GB HB TB PB NB mB OB LB QB RB","132":"0 1 2 4 5 7 F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q r s t u v w x y z JB"},E:{"2":"4 F SB KB","132":"6 L H G E A B C D UB VB WB XB YB p bB"},F:{"1":"0 1 2 3 r s t u v w x y z","2":"E cB dB eB fB","16":"B p AB","132":"5 6 7 C K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q hB"},G:{"16":"KB iB FB","132":"G D kB lB MB nB oB pB qB rB sB tB uB vB"},H:{"2":"wB"},I:{"16":"xB yB","132":"BB F O zB 0B FB 1B 2B"},J:{"132":"H A"},K:{"132":"6 A B C M p AB"},L:{"1":"LB"},M:{"1":"O"},N:{"132":"A B"},O:{"132":"3B"},P:{"132":"F 4B 5B 6B 7B 8B"},Q:{"132":"9B"},R:{"132":"AC"},S:{"1":"BC"}},B:5,C:"scrollIntoView"};
|
import bus from '../../native/bus.js';
export default store => next => action => {
bus.fire(action.type, action);
return next(action);
};
|
"use strict"
function getConfig () {
var config = {};
config.is_dev_mode = location.href.indexOf('?') != -1;
config.is_game_title = true;
config.half_PI = Math.PI * 0.5;
config.gravity = 0.00008;
config.fog_start = 0;
config.map_side_n = 9;
config.cube_size = 11;
config.cube_height = 0.5;
config.map_noise_coef = 2;
config.map_visibility = 7;
config.fog_end = config.cube_size * config.map_visibility;
config.light_color = new BABYLON.Color3(0.7, 0, 0);
config.meshes = {};
config.imgs = {};
config.textures = {};
config.sounds = {};
config.imgToLoad = {
"title": "assets/title" + (Math.random()*4 | 0) + ".png" // to choose a title font img in random,
}
config.texturesToLoad = {
"gunImpactParticle": "assets/gunImpactParticle.png"
}
config.soundsConfig = {
"shot" : {src:"assets/sounds/pew.mp3", options: {volume: 0.5} },
"hurt" : {src:"assets/sounds/hurt.mp3" },
"eat" : {src:"assets/sounds/eat.mp3" },
"die" : {src:"assets/sounds/die.mp3", options: {volume: 1.1} },
"BGM" : {src:"assets/sounds/RunAmok.mp3", options: { loop: true, autoplay: true } }
}
config.meshesToLoad = {
"ai" : ["assets/mushroom_final/", "mushroom_final.babylon"],
"gun" : ["assets/PowerRifle/", "PowerRifle.babylon"]
};
config.keyBindings = {
"jump": [32], // <space>
"forward": [90, 87], // Z, W
"backward": [83], // S
"left": [81, 65], // Q, A
"right": [68] // D
};
config.titleScreenCameraBeta = Math.PI * 0.15;
config.titleScreenCameraRadius = 33;
config.titleScreenCameraSpeed = 0.00005;
config.score = 0;
config.highscore = localStorage.drugs_attack_highscore | 0;
config.drug_pill_score_value = 42;
config.elapsedTime = 0;
return config;
}
|
angular
.module('bibtex.services')
.factory('Bibtex', Bibtex);
function Bibtex($http, $q) {
var Bibtex = {
parseBibtexFile: parseBibtexFile
};
return Bibtex;
////////////////////
function parseBibtexFile(fileContent) {
var evidenceList = [];
var lines = fileContent.split('\n');
lines.reduce(function(prev, curr, index, array) {
var cleanLine = curr.trim(); // Wish this is really clean
var initial = cleanLine.charAt(0);
if (initial === '@') {
var newEvidence = [cleanLine];
prev.push(newEvidence);
}
else if (initial.length > 0 && initial !== '%') {
var numOfEvidence = prev.length;
prev[numOfEvidence-1].push(cleanLine);
}
return prev;
}, evidenceList)
var results = [];
evidenceList.forEach(function(evidenceArray) {
var evidenceString = evidenceArray.join('\n');
var parsedEvidence = parseBibtex(evidenceString);
for (var key in parsedEvidence) { // There should be only one key. Any better way to read that only key?
var metadata = parsedEvidence[key];
if (metadata.TITLE !== undefined) {
results.push({
title: metadata.TITLE.split('\n').join(' '),
abstract: metadata.ABSTRACT !== undefined ? metadata.ABSTRACT : '',
metadata: _.omit(_.omit(metadata, 'TITLE'), 'ABSTRACT')
});
}
}
});
return results;
}
}
|
angular.module('angular-bootstrap-select', []).directive('abSelect',
function ($timeout, $log) {
return {
restrict: 'EA',
replace: true,
require: ['?ngModel', '?ngOptions'],
scope: false,
transclude: false,
templateUrl: 'angular-bootstrap-select/select.html',
link: function(scope, element, attrs, ngModel) {
$log.debug('Angular Select Bootstrap', scope);
if(!ngModel) {
return;
}
function refresh(newVal) {
$log.debug('New Val', newVal);
if(angular.isUndefined(newVal)) {
return;
}
scope.$applyAsync(function () {
if (attrs.ngOptions && /track by/.test(attrs.ngOptions)) {
element.selectpicker('val', newVal);
}
element.selectpicker('refresh');
});
}
$timeout(function() {
element.selectpicker(attrs);
element.selectpicker('refresh');
element.selectpicker('render');
});
if (attrs.ngModel) {
scope.$watch(attrs.ngModel, refresh, true);
}
if (attrs.ngDisabled) {
scope.$watch(attrs.ngDisabled, refresh, true);
}
scope.$watch('selected', function(val) {
if(!val) {
return;
}
$log.debug('Val', val);
}, true);
scope.$on('$destroy', function () {
$timeout(function () {
element.selectpicker('destroy');
});
});
}
};
}
);
angular.module('angular-bootstrap-select').factory('selectHelpers', function() {
return {
};
});
angular.module('angular-bootstrap-select').run(['$templateCache', function($templateCache) {
$templateCache.put('angular-bootstrap-select/select.html',
'<select class=\"angular-select\">\n <option style=\"display:none\" value=\"\">Select</option>\n<select>\n'
);
}]);
|
/*
Parallax
Version: 2.0
Developer: Jonathan Chute
Year: 2019
*/
(function( $ ) {
$.fn.parallax = function( options ) {
let object = $(this);
if ( object[0] === undefined ) {
return;
}
let settings = $.extend( {
'offset': 0,
'speed': 0.4,
'reverse': false,
'image': '',
'posX': getPosX( object ),
}, options );
if ( settings.image != '' ) {
object.css('background-image', 'url(' + settings.image + ')');
}
theParallax( object );
$(window).scroll(function() {
theParallax( object );
});
function theParallax( object ) {
let win = {
top: $(window).scrollTop(),
left: $(window).scrollLeft(),
};
win.bottom = win.top + window.innerWidth;
win.right = win.left + window.innerHeight;
if ( settings.speed == 1 && ! settings.reverse ) {
object.css( 'background-attachment', 'fixed' );
return true;
} else if ( settings.speed == 0 ) {
object.css( 'background-attachment', 'scroll' );
return true;
} else if ( ! inView( object, win ) ) {
object.css( 'background-attachment', 'scroll' );
return false;
}
let position = ( win.top - object.offset().top ) * settings.speed - settings.offset;
if ( settings.reverse ) {
position = -position;
}
object.css( 'background-position', settings.posX + ' ' + position + 'px' );
}
function inView( object, win ) {
let obj = {
top: object.offset().top,
left: object.offset().left,
};
obj.bottom = obj.top + object.outerWidth();
obj.right = obj.left + object.outerHeight();
let BottomIn = obj.bottom > win.top,
RightIn = obj.right > win.left,
TopIn = obj.top < win.bottom,
LeftIn = obj.left < win.right;
return ( BottomIn && RightIn && TopIn && LeftIn );
}
function getPosX( object ) {
let pos = object.css( 'background-position' );
if ( pos === undefined || pos == null || pos == 'top' ) {
// For people using IE
return object.css("background-position-x");
} else {
// For everyone else
return pos.split( ' ' )[0];
}
}
};
})( jQuery );
|
'use strict';
exports = module.exports = Migrations;
var Migration = require('./migration');
var PropertyTypes = require('./../models/property-types');
var utils = require('./../../helpers/utils');
var path = require('path');
var Q = require('q');
var fs = require('fs');
var crypto = require('crypto');
var debug = require('debug')('fire:migration');
/**
* This module loads all migrations.
*
* @access private
*
* @constructor
*/
function Migrations(app, models) {
this.app = app;
this.models = models;
this._ = [];
this.version = 0;
if(!this.app) {
throw new Error('Migrations#app not set.');
}
if(!this.models) {
throw new Error('Migrations#models not set.');
}
}
/**
* Helpers method to reset all models on the current models module.
*/
Migrations.prototype.resetAllModels = function() {
debug('Migrations#resetAllModels');
var self = this;
this.models.forEach(function(model) {
if(model != self.models.Schema) {
var modelName = model.getName();
debug('Reset model `' + modelName + '`.');
delete self.models[modelName];
delete self.models.internals[modelName];
}
});
};
/**
* @todo Move this method to tests.
*
* This method destroys all models. Destroying a model means dropping the sql table completely.
*/
Migrations.prototype.destroyAllModels = function() {
var result = Q.when(true);
this.models.forEach(function(model) {
result = result.then(function() {
return model.isCreated()
.then(function(exists) {
if(exists) {
return model.forceDestroy();
}
else {
return Q.when(true);
}
});
});
});
return result;
};
/**
* Finds the latest Schema instance from the database and returns it's version, or 0 if not schema is found.
*/
Migrations.prototype.currentVersion = function() {
var defer = Q.defer();
var appName = this.app.name.replace(/-new$/, '');
var self = this;
this.models.execute('SELECT * FROM schemas WHERE app = ? ORDER BY version DESC LIMIT 1', [appName])
.then(function(schemas) {
if(schemas.length) {
defer.resolve(schemas[0].version);
}
else {
self.models.execute('SELECT * FROM schemas WHERE app IS NULL')
.then(function(schemasWithoutApp) {
if(schemasWithoutApp.length) {
defer.reject(new Error('Some or more of your schemas do not specify an app name. Please update your schemas manually e.g.: UPDATE schemas SET app = \'' + appName + '\';.'));
}
else {
self.models.execute('SELECT * FROM schemas WHERE app = \'default\'')
.then(function(defaultSchemas) {
if(defaultSchemas.length) {
var appNames = Object.keys(self.models.app.container.appsMap);
if(appNames.indexOf('default') != -1) {
defer.reject(new Error('\n\nYou have no migrations for app `' + appName + '`. But you do have migrations for app "default".\n\nSchema names changed in the latest verion of Node on Fire. In the latest version of Node on Fire, the actual name of the app is used in Schema. Before, in some situations, the name `default` would be used.\n\nPlease update your schemas from `default` to `' + appName + '`:\n\nUPDATE schemas SET app = \'' + appName + '\' WHERE app = \'default\';\n\n'));
}
else {
self.models.execute('UPDATE schemas SET app = ? WHERE app = ?', [appName, 'default'])
.then(function() {
return self.models.execute('SELECT * FROM schemas WHERE app = ? ORDER BY version DESC LIMIT 1', [appName]);
})
.then(function(schemas) {
if(schemas.length) {
defer.resolve(schemas[0].version);
}
else {
defer.resolve(0);
}
})
.done();
}
}
else {
defer.resolve(0);
}
})
.done();
}
})
.done();
}
})
.catch(function(error) {
if(error.code == '42703' && error.message == 'column "app" does not exist') {
self.models.execute('SELECT * FROM schemas ORDER BY version DESC LIMIT 1', [])
.then(function(schemas) {
if(schemas.length) {
defer.resolve(schemas[0].version);
}
else {
defer.resolve(0);
}
})
.done();
}
else if(error.code == '42P01' && error.message == 'relation "schemas" does not exist') {
defer.resolve(0);
}
else {
defer.reject(error);
}
})
.done();
return defer.promise;
};
/**
* Executes a soft migration.
*
* A soft migration executes all migrations, but doesn't execute any queries to the database. This is useful to create any forward references for the actual migration.
*
* @param {Number} toVersion The version to migrate to.
*/
Migrations.prototype.softMigrate = function(toVersion) {
var changes = this._.filter(function(migration) {
return (migration.version <= toVersion);
});
debug('Soft migrate ' + changes.length + ' migrations.');
return utils.invokeSeries(changes, 'soft');
};
/**
* This method actually migrates the database based on the existing migration files.
*
* @param {Number} fromVersion The version to migrate from, usually the current version.
* @param {Number} toVersion The version to migrate to, usually the latest version.
* @return {Promise}
*/
Migrations.prototype.migrate = function(fromVersion, toVersion) {
debug('Migrations#migrate ' + fromVersion + ' to ' + toVersion);
var self = this;
return this.softMigrate(fromVersion)
.then(function() {
var direction = '';
var changes = [];
if(fromVersion < toVersion) {
direction = 'up';
changes = self._.filter(function(migration) {
return (migration.version > fromVersion && migration.version <= toVersion);
});
}
else if(fromVersion > toVersion) {
//we're going down
direction = 'down';
changes = self._.reverse().filter(function(migration) {
return (migration.version <= fromVersion && migration.version > toVersion);
});
}
else {
throw new Error('The current database is already at version `' + toVersion + '`.');
}
if(Math.abs(fromVersion - toVersion) != changes.length) {
throw new Error('Migrations from version `' + fromVersion + '` to version `' + toVersion + '`: found only `' + changes.length + '` migrations expected `' + Math.abs(fromVersion - toVersion) + '`. Did you create all migrations?');
}
return utils.invokeSeries(changes, 'go', direction);
})
.catch(function(error) {
throw error;
});
};
Migrations.prototype.checksum = function(filePath) {
var defer = Q.defer();
var stream = fs.createReadStream(filePath);
var digest = crypto.createHash('sha1');
stream.on('data', function(data) {
digest.update(data);
});
stream.on('error', function(error) {
defer.reject(error);
});
stream.on('end', function() {
var hex = digest.digest('hex');
defer.resolve(hex);
});
return defer.promise;
};
/**
* Loads all the migration files to models.
*
* @param {String} fullPath The path to the directory where the migration files are located.
* @param {Models} models The models module.
*/
Migrations.prototype.loadMigrations = function(fullPath, shouldBeUndefined) {
if(typeof shouldBeUndefined != 'undefined') {
throw new Error('Migrations#loadMigrations expects only one parameter instead of two.');
}
var result = Q.when(true);
var self = this;
utils.readDirSync(fullPath, function(filePath) {
if(path.extname(filePath) != '.js') {
debug('Not loading `' + filePath + '` because extension is `' + path.extname(filePath) + '`.');
}
else {
debug('Migrations#load ' + filePath);
result = result.then(function() {
var MigrationClass = require(filePath);
var fileName = path.basename(filePath);
var version = parseInt(utils.captureOne(fileName, /^([0-9]+).*\.js$/));
if(version) {
return self.checksum(filePath)
.then(function(checksum) {
return self.addMigration(MigrationClass, version, checksum);
});
}
else {
throw new Error('Invalid migration file name for file at path `' + filePath + '`. A migration file must start with the migration\'s version number.');
}
});
}
});
result = result.then(function() {
self._ = self._.sort(function(a, b) {
return (a.version - b.version);
});
});
return result;
};
/**
* Sets up the migrations by loading the migration files and creating the Schema model, if it does not exist.
*
* This method is invoked before actually migrating the database.
*
* @param {String} fullPath The path to the migrations directory, usually app path + .fire/migrations.
* @param {Models} models The models to load the migrations into.
* @return {Promise} Resolves or rejects when the setup succeeds or fails.
*/
Migrations.prototype.setup = function(fullPath, shouldBeUndefined) {
if(typeof shouldBeUndefined != 'undefined') {
throw new Error('Migrations#setup only expects one parameter but two given.');
}
return this.loadMigrations(fullPath);
};
/**
* Loads the migration class.
*
* @param {String} MigrationClass The migration to load. This is actually a constructor function.
* @param {Number} version The version number of the migration.
*/
Migrations.prototype.addMigration = function(MigrationClass, version, checksum) {
if(!MigrationClass) {
throw new Error('No migration class in Migrations#addMigration.');
}
debug('addMigration ' + version);
// TODO: replace with actual inheritance?
var method;
for(method in Migration.prototype) {
MigrationClass.prototype[method] = Migration.prototype[method];
}
Object.keys(PropertyTypes).forEach(function(propertyName) {
// We check if it's set already, as e.g. migrations swizzle these methods
if(!MigrationClass.prototype[propertyName]) {
MigrationClass.prototype[propertyName] = PropertyTypes[propertyName];
}
});
var migration = new MigrationClass();
Migration.call(migration, version, checksum, this.models);
if(!(typeof migration.up == 'function' && typeof migration.down == 'function')) {
throw new Error('Migration with version `' + version + '` does not contain both an `up` and a `down` method.');
}
this._.push(migration);
};
|
var express = require('express');
var app = express();
var path = require('path');
app.use(express.static(path.join(__dirname, '.')));
var server = app.listen(8888, function(){
console.log('Server listening on port 8888');
});
|
#!/usr/bin/env node
var AWS = require("aws-sdk");
var amqp = require('amqplib/callback_api');
AWS.config.loadFromPath("config.json");
var docClient = new AWS.DynamoDB.DocumentClient()
function postTemp(q){
setInterval(function() { getTempDynamo(q) }, 500);
}
function getTempDynamo(q){
AWS.config.update({
region: "sa-east-1",
endpoint: "dynamodb.sa-east-1.amazonaws.com"
});
var paramsQueryCaidas = {
TableName : "martinTest",
KeyConditionExpression: "sensor = :val",
ExpressionAttributeValues: {
":val":q,
},
ScanIndexForward: false,
Limit: 1
};
docClient.query(paramsQueryCaidas, function(err, data) {
if (err) {
console.error("Unable to query. Error:", JSON.stringify(err, null, 2));
} else {
console.log("Query succeeded.");
var data = data.Items[0];
var promedio = data.data.split('\t')[1];
var msg = '{"temperature":{"timestamp":' + data.timeStamp.split('.')[0] + ', "promedio":' + promedio + '},' +
'"fall":{"timestamp":' + 123456 +',"promedio":' + 1 + '}}';
publishTemp('temperature', msg);
}
});
};
function publishTemp(q, value){
amqp.connect('amqp://test:test@54.233.152.245:5672/martinMQT',
function(err, conn){
conn.createChannel(function(err, ch) {
var msg = value;
ch.assertQueue(q, {durable: false});
ch.sendToQueue(q, new Buffer(msg));
console.log(" [x] Sent %s", msg);
});
});
}
postTemp('temperature');
|
import passport from 'passport';
import isAdmin from './is-admin.middleware';
import isSeller from './is-seller.middleware';
export const isAuthenticated = passport.authenticate('bearer', { session: false });
export const isAuthenticatedAdmin = [isAuthenticated, isAdmin];
export const isAuthenticatedSeller = [isAuthenticated, isSeller];
|
describe('Elements TestCase', function () {
'use strict';
describe('Initialization', function () {
beforeEach(function () {
setupTestHelpers.call(this);
this.el = this.createElement('div', 'editor', 'lore ipsum');
});
afterEach(function () {
this.cleanupTest();
});
it('should set element contenteditable attribute to true', function () {
var editor = this.newMediumEditor('.editor');
expect(editor.elements.length).toBe(1);
expect(this.el.getAttribute('contenteditable')).toEqual('true');
});
it('should not set element contenteditable when disableEditing is true', function () {
var editor = this.newMediumEditor('.editor', {
disableEditing: true
});
expect(editor.elements.length).toBe(1);
expect(this.el.getAttribute('contenteditable')).toBeFalsy();
});
it('should not set element contenteditable when data-disable-editing is true', function () {
this.el.setAttribute('data-disable-editing', true);
var editor = this.newMediumEditor('.editor');
expect(editor.elements.length).toBe(1);
expect(this.el.getAttribute('contenteditable')).toBeFalsy();
});
it('should set element data attr medium-editor-element to true', function () {
var editor = this.newMediumEditor('.editor');
expect(editor.elements.length).toBe(1);
expect(this.el.getAttribute('data-medium-editor-element')).toEqual('true');
});
it('should set element role attribute to textbox', function () {
var editor = this.newMediumEditor('.editor');
expect(editor.elements.length).toBe(1);
expect(this.el.getAttribute('role')).toEqual('textbox');
});
it('should set element aria multiline attribute to true', function () {
var editor = this.newMediumEditor('.editor');
expect(editor.elements.length).toBe(1);
expect(this.el.getAttribute('aria-multiline')).toEqual('true');
});
});
});
|
(function (Modules, undefined)
{
//initialize angular
Modules.DorianDelmontez = angular.module('dd', ['ngRoute']);
}(DorianDelmontez.Modules = DorianDelmontez.Modules || {} ));
|
// We patch this so Undom can't make any unconfigurable props.
const { defineProperty, defineProperties } = Object;
Object.defineProperty = function(obj, key, def) {
def.configurable = true;
return defineProperty.call(Object, obj, key, def);
};
Object.defineProperties = function(obj, def) {
Object.keys(def).forEach(key => (def[key].configurable = true));
return defineProperties.call(Object, obj, def);
};
// We require the base Undom implementation first so we can use any interfaces
// it's already exposed.
require('undom/register');
const { prop } = require('./util');
// We can now require our stuff.
const { Event } = require('./Event');
const { expose } = require('./util');
// Globals.
require('./window');
require('./document');
// Custom interfaces.
expose('ClassList');
expose('Comment');
expose('CSSStyleSheet');
expose('CustomElementRegistry');
expose('CustomEvent');
expose('DocumentFragment');
expose('Element');
expose('Event');
expose('History');
expose('HTMLElement');
expose('Location');
expose('MouseEvent');
expose('MutationObserver');
expose('MutationRecord');
expose('Navigator');
expose('Node');
expose('NodeFilter');
expose('StyleSheet');
expose('Worker');
// Startup.
document.readyState = 'interactive';
document.dispatchEvent(new Event('DOMContentLoaded'));
document.readyState = 'complete';
dispatchEvent(new Event('load'));
|
var io = require("socket.io")();
var SOCKETEVENTS = require("../shared/socketevents");
// handling for the queue
var QueueHandler = require("./queuehandler");
var SessionHandler = require("./sessionhandler");
// setup the queue-handler to manage the "/queue" namespace
// queuehandler will emit "match_found" when it finds a queue match
var qHandler = new QueueHandler();
var matchSocket = io.of(SOCKETEVENTS.SOCKET_PATH);
matchSocket.on(SOCKETEVENTS.CONNECTION, qHandler.handleSocketConnection.bind(qHandler));
var gsHandler = new SessionHandler();
gsHandler.watch(qHandler);
// export io to index.js so it can be integrated into the server
module.exports.io = io;
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.06 1.06 2.38 1.78 3.96 2.02.6.09 1.14-.39 1.14-1 0-.49-.37-.91-.85-.99-1.11-.18-2.02-.71-2.75-1.43l-1.9-1.9c-.5-.4-1-.6-1.6-.6s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v4c0 .55.45 1 1 1s1-.45 1-1v-4.4c0-.52-.2-1.01-.55-1.38L10.8 10.5zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z" />
, 'DirectionsBikeRounded');
|
var superlongtoolllist = [
{
"name": "edit",
"children": [
{
"name": "select/drag",
"children": [],
"callback": "toSelectMode"
},
{
"name": "undo",
"children": [],
"callback": "undo"
},
{
"name": "redo",
"children": [],
"callback": "redo"
},
{
"name": "remove",
"children": [],
"callback": "removeSelected"
}
],
"callback": null
},
{
"name": "passive",
"children": [
{
"name": "wire",
"children": [],
"callback": "addWire"
},
{
"name": "switch",
"children": [],
"callback": "addSwitch"
},
{
"name": "resistor",
"children": [],
"callback": "addResistor"
},
{
"name": "inductor",
"children": [],
"callback": "addInductor"
},
{
"name": "capacitor",
"children": [],
"callback": "addCapacitor"
}
],
"callback": null
},
{
"name": "sources",
"children": [
{
"name": "ground",
"children": [],
"callback": "addGround"
},
{
"name": "voltage source",
"children": [],
"callback": "addVoltage"
},
{
"name": "current source",
"children": [],
"callback": "addCurrent"
}
],
"callback": null
},
{
"name": "active",
"children": [
{
"name": "diode",
"children": [],
"callback": "addDiode"
},
{
"name": "transistor NPN",
"children": [],
"callback": "addNPN"
},
{
"name": "transistor PNP",
"children": [],
"callback": "addPNP"
},
{
"name": "N-MOSFET",
"children": [],
"callback": "addNMOS"
},
{
"name": "P-MOSFET",
"children": [],
"callback": "addPMOS"
},
{
"name": "N-JFET",
"children": [],
"callback": "addNJFET"
},
{
"name": "P-JFET",
"children": [],
"callback": "addPJFET"
}
],
"callback": null
},
{
"name": "block",
"children": [
{
"name": "Op Amp -",
"children": [],
"callback": "addPlusOpAmp"
},
{
"name": "Op Amp +",
"children": [],
"callback": "addMinusOpAmp"
}
],
"callback": null
}
]
|
import './App.css';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import React, { Component } from 'react';
import { getUserInfo, getTweets } from '../../state/actions';
import Header from '../header/Header';
import Login from '../login/Login';
import TweetsList from '../tweets-list/TweetsList';
class Application extends Component {
/**
* Get user information when the component mounted.
*/
componentDidMount() {
this.props.getUserInfo();
}
/**
* Once the user logs in, fetch the tweets only once.
*/
componentWillReceiveProps(nextProps) {
if (nextProps.user.isLoggedIn && !nextProps.tweets.alreadyFetched) {
this.props.getTweets();
}
}
render() {
const { user, tweets } = this.props;
const mainContainer = user.isLoggedIn ? <TweetsList user={user} tweets={tweets.list}/> : <Login/>;
return (
<div className="app">
<Header user={user}/>
{mainContainer}
</div>
);
}
}
/**
* Connect the application with the created store.
*/
const App = connect(
state => {
return {
user: { ...state.user },
tweets: { ...state.tweets },
};
},
dispatch => bindActionCreators({ getUserInfo, getTweets }, dispatch)
)(Application);
export default App;
|
/// <binding Clean='clean:fonts, clean:icons, clean:images, clean:robots, clean:scripts, clean:sitemap, clean:styles, clean:webConfig' />
var del = require("del");
var gulp = require("gulp");
var addSrc = require("gulp-add-src");
var concat = require("gulp-concat");
var jshint = require("gulp-jshint");
var merge = require("merge-stream");
var minifyCss = require("gulp-minify-css");
var rename = require("gulp-rename");
var sass = require("gulp-sass");
var sourcemaps = require("gulp-sourcemaps");
var typescript = require("gulp-typescript");
var uglify = require("gulp-uglify");
"use strict";
var paths = {
root: "./wwwroot/"
};
paths.icons = paths.root;
paths.images = paths.root + "images/";
paths.fonts = paths.root + "fonts/";
paths.scripts = paths.root + "scripts/";
paths.styles = paths.root + "styles/";
paths.robots = paths.root;
paths.sitemap = paths.root;
paths.webConfig = paths.root;
// Images
gulp.task("clean:images", function () {
return del(paths.images);
});
gulp.task("images", ["clean:images"], function () {
return gulp.src("./images/**/*")
.pipe(gulp.dest(paths.images));
});
// Fonts
gulp.task("clean:fonts", function () {
return del(paths.fonts);
});
gulp.task("fonts:bootstrap", ["clean:fonts"], function () {
return gulp.src("./bower_components/bootstrap-sass/assets/fonts/**/*.*")
.pipe(gulp.dest(paths.fonts));
});
gulp.task("fonts:font-awesome", ["clean:fonts"], function () {
return gulp.src("./bower_components/fontawesome/fonts/**/*.*")
.pipe(gulp.dest(paths.fonts));
});
gulp.task("fonts", ["fonts:font-awesome"]);
// Scripts
gulp.task("clean:scripts", function () {
return del(paths.scripts);
});
gulp.task("scripts:jquery", ["clean:scripts"], function () {
return gulp.src("./bower_components/jquery/dist/jquery.js")
.pipe(gulp.dest(paths.scripts))
.pipe(uglify())
.pipe(rename("jquery.min.js"))
.pipe(gulp.dest(paths.scripts));
});
gulp.task("scripts:materialize", ["clean:scripts"], function () {
return gulp.src("./bower_components/materialize/bin/materialize.js")
.pipe(gulp.dest(paths.scripts))
.pipe(uglify())
.pipe(rename("bootstrap.min.js"))
.pipe(gulp.dest(paths.scripts));
});
gulp.task("scripts:bootstrap", ["clean:scripts"], function () {
return gulp.src("./bower_components/bootstrap-sass/assets/javascripts/bootstrap.js")
.pipe(gulp.dest(paths.scripts))
.pipe(uglify())
.pipe(rename("bootstrap.min.js"))
.pipe(gulp.dest(paths.scripts));
});
gulp.task("scripts:skrollr", ["clean:scripts"], function () {
return gulp.src("./bower_components/skrollr/dist/skrollr.min.js")
.pipe(gulp.dest(paths.scripts))
.pipe(uglify())
.pipe(rename("skrollr.min.js"))
.pipe(gulp.dest(paths.scripts));
});
gulp.task("scripts:application", ["clean:scripts"], function () {
var javascripts = gulp.src([
"./Scripts/**/*.js",
"!./Scripts/Modernizr.js"
]);
var typescripts = gulp.src("./Scripts/**/*.ts")
.pipe(sourcemaps.init())
.pipe(typescript({
sortOutput: true
}));
return merge(javascripts, typescripts)
.pipe(concat("application.js"))
.pipe(gulp.dest(paths.scripts))
.pipe(jshint())
.pipe(uglify())
.pipe(rename("application.min.js"))
.pipe(gulp.dest(paths.scripts));
});
gulp.task("scripts", [
"scripts:jquery",
"scripts:bootstrap",
"scripts:materialize",
"scripts:skrollr",
"scripts:application"
]);
// Styles
gulp.task("clean:styles", function () {
return del(paths.styles);
});
gulp.task("styles:font-awesome", ["clean:styles"], function () {
return gulp.src("./bower_components/font-awesome/css/font-awesome.css")
.pipe(gulp.dest(paths.styles))
.pipe(minifyCss())
.pipe(rename("font-awesome.min.css"))
.pipe(gulp.dest(paths.styles));
});
gulp.task("styles:application", ["clean:styles"], function () {
return gulp.src("./Styles/Application.scss")
.pipe(sass().on("error", sass.logError))
.pipe(concat("application.css"))
.pipe(gulp.dest(paths.styles))
.pipe(minifyCss())
.pipe(rename("application.min.css"))
.pipe(gulp.dest(paths.styles));
});
gulp.task("styles", [
"images",
"styles:font-awesome",
"styles:application"
]);
// Robots
gulp.task("clean:robots", function () {
return del(paths.robots + "robots.txt");
});
gulp.task("robots", ["clean:robots"], function () {
return gulp.src("./Robots.txt")
.pipe(rename("robots.txt"))
.pipe(gulp.dest(paths.robots));
});
// Sitemap
gulp.task("clean:sitemap", function () {
return del(paths.sitemap + "sitemap.xml");
});
gulp.task("sitemap", ["clean:sitemap"], function () {
return gulp.src("./Sitemap.xml")
.pipe(rename("sitemap.xml"))
.pipe(gulp.dest(paths.sitemap));
});
// Web Config
gulp.task("clean:webConfig", function () {
return del(paths.webConfig + "web.config");
});
gulp.task("webConfig", ["clean:webConfig"], function () {
return gulp.src("./Web.config")
.pipe(rename("web.config"))
.pipe(gulp.dest(paths.webConfig));
});
gulp.task('min', function () {
gulp.src('./scripts')
.pipe(uglify())
.pipe(gulp.dest('build'))
});
gulp.task("clean", ["clean:images",
"clean:fonts",
"clean:scripts",
"clean:styles",
"clean:robots",
"clean:sitemap",
"clean:webConfig"]);
gulp.task("default", [
"images",
"fonts",
"scripts",
"styles",
"robots",
"sitemap",
"webConfig"
]);
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define(["require","exports"],function(f,a){function e(a){return a}function d(a){var b=2*(a-Math.sqrt((a-1)*a)),d=b/2/a;return function(c){return c<d?a*c*c:b*c-b+1}}function c(a,c){return function(b){return b<c?c*a(b/c):1-a((1-b)/(1-c))*(1-c)}}Object.defineProperty(a,"__esModule",{value:!0});a.linear=e;a.inQuad=function(a){return a*a};a.outQuad=function(b){return 1-a.inQuad(1-b)};a.inOutQuad=function(b){return.5>b?a.inQuad(2*b)/2:(a.outQuad(2*(b-.5))+1)/2};a.inCubic=function(a){return a*a*a};a.outCubic=
function(b){return 1-a.inCubic(1-b)};a.inOutCubic=function(b){return.5>b?a.inCubic(2*b)/2:(a.outCubic(2*(b-.5))+1)/2};a.inQuart=function(a){return a*a*a*a};a.outQuart=function(b){return 1-a.inQuart(1-b)};a.inOutQuart=function(b){return.5>b?a.inQuart(2*b)/2:(a.outQuart(2*(b-.5))+1)/2};a.inQuint=function(a){return a*a*a*a*a};a.outQuint=function(b){return 1-a.inQuint(1-b)};a.inOutQuint=function(b){return.5>b?a.inQuint(2*b)/2:(a.outQuint(2*(b-.5))+1)/2};a.inSine=function(a){return-Math.cos(a*Math.PI/
2)+1};a.outSine=function(b){return 1-a.inSine(1-b)};a.inOutSine=function(b){return.5>b?a.inSine(2*b)/2:(a.outSine(2*(b-.5))+1)/2};a.inExpo=function(a){return Math.pow(2,10*(a-1))};a.outExpo=function(b){return 1-a.inExpo(1-b)};a.inOutExpo=function(b){return.5>b?a.inExpo(2*b)/2:(a.outExpo(2*(b-.5))+1)/2};a.inCirc=function(a){return-(Math.sqrt(1-a*a)-1)};a.outCirc=function(b){return 1-a.inCirc(1-b)};a.inOutCirc=function(b){return.5>b?a.inCirc(2*b)/2:(a.outCirc(2*(b-.5))+1)/2};a.inCoastQuad=c(d(1),1);
a.outCoastQuad=c(d(1),0);a.inOutCoastQuad=c(d(1),.5);a.inCoastCubic=c(d(2),1);a.outCoastCubic=c(d(2),0);a.inOutCoastCubic=c(d(2),.5);a.inCoastQuart=c(d(3),1);a.outCoastQuart=c(d(3),0);a.inOutCoastQuart=c(d(3),.5);a.inCoastQuint=c(d(4),1);a.outCoastQuint=c(d(4),0);a.inOutCoastQuint=c(d(4),.5);a.named={linear:e,"in-quad":a.inQuad,"out-quad":a.outQuad,"in-out-quad":a.inOutQuad,"in-coast-quad":a.inCoastQuad,"out-coast-quad":a.outCoastQuad,"in-out-coast-quad":a.inOutCoastQuad,"in-cubic":a.inCubic,"out-cubic":a.outCubic,
"in-out-cubic":a.inOutCubic,"in-coast-cubic":a.inCoastCubic,"out-coast-cubic":a.outCoastCubic,"in-out-coast-cubic":a.inOutCoastCubic,"in-quart":a.inQuart,"out-quart":a.outQuart,"in-out-quart":a.inOutQuart,"in-coast-quart":a.inCoastQuart,"out-coast-quart":a.outCoastQuart,"in-out-coast-quart":a.inOutCoastQuart,"in-quint":a.inQuint,"out-quint":a.outQuint,"in-out-quint":a.inOutQuint,"in-coast-quint":a.inCoastQuint,"out-coast-quint":a.outCoastQuint,"in-out-coast-quint":a.inOutCoastQuint,"in-sine":a.inSine,
"out-sine":a.outSine,"in-out-sine":a.inOutSine,"in-expo":a.inExpo,"out-expo":a.outExpo,"in-out-expo":a.inOutExpo,"in-circ":a.inCirc,"out-circ":a.outCirc,"in-out-circ":a.inOutCirc}});
|
'use strict';
if (window.__karma__) {
var allTestFiles = [];
var TEST_REGEXP = /spec\.js$/;
var pathToModule = function(path) {
return path.replace(/^\/base\/app\//, '').replace(/\.js$/, '');
};
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module names.
allTestFiles.push(pathToModule(file));
}
});
}
// deps: window.__karma__ ? allTestFiles : [],
// callback: window.__karma__ ? window.__karma__.start : null,
// baseUrl: window.__karma__ ? '/base/app' : '',
require.config({
paths: {
jquery: 'bower_components/jquery/dist/jquery',
angular: 'bower_components/angular/angular',
angularAMD: 'bower_components/angularAMD/angularAMD',
angularCookies: 'bower_components/angular-cookies/angular-cookies',
angularLoader: 'bower_components/angular-loader/angular-loader',
angularMocks: 'bower_components/angular-mocks/angular-mocks',
angularMousewheel: 'bower_components/angular-mousewheel/mousewheel',
angularResource: 'bower_components/angular-resource/angular-resource',
angularRoute: 'bower_components/angular-route/angular-route',
angularBootstrap: 'bower_components/angular-bootstrap/ui-bootstrap',
angularUIRouter: 'bower_components/angular-ui-router/release/angular-ui-router',
chartjs: 'bower_components/Chart.js/Chart',
angularChart: 'bower_components/angular-chart.js/angular-chart',
perfectScrollbarJquery: 'bower_components/perfect-scrollbar/js/perfect-scrollbar.jquery',
perfectScrollbar: 'bower_components/perfect-scrollbar/js/perfect-scrollbar',
jqueryAppear: 'bower_components/jquery_appear/jquery.appear',
smt:'bower_components/smt/dist/smt',
// cant use . when define paths name
hamsterjs: 'bower_components/hamsterjs/hamster',
ngStorage: 'bower_components/ngstorage/ngStorage',
text: 'bower_components/requirejs-text/text',
angularAnimate: 'bower_components/angular-animate/angular-animate.min',
// must use 1.3
//domReady: "bower_components/requirejs-domready/domready"
},
map : {
"angularChart":{
"chart.js": "chartjs"
}
},
shim: {
'angular': {
'exports': 'angular'
},
'angularRoute': ['angular'],
'angularResource': ['angular'],
'angularUIRouter': ['angular'],
'angularMocks': {
deps: ['angular'],
'exports': 'angular.mock'
},
'chartjs':{
'exports' : 'Chart'
},
'jqueryAppear':['jquery'],
'angularBootstrap': ['angular'],
'angularAnimate': ['angular'],
'angularMousewheel': {
deps: ['angular']
}
},
priority: [
"angular"
],
deps: window.__karma__ ? allTestFiles : [],
callback: window.__karma__ ? window.__karma__.start : null,
baseUrl: window.__karma__ ? '/base/app' : '',
});
require([
// 'domReady',
'jquery',
'angular',
'app'
], function( jquery, angular, app) {
var $html = angular.element(document.getElementsByTagName('html')[0]);
angular.element().ready(function() {
// bootstrap the app manually
angular.bootstrap(document, ['widgetApp']);
});
});
|
var assert = require('assert');
var GraphWorld = require('../cube/graph');
describe('Graph World', function () {
it('should display itself', function () {
var v1 = new GraphWorld.Vertex('test');
assert.equal('test', v1.toString());
assert.equal('test', v1.label);
var v2 = new GraphWorld.Vertex('again');
assert.equal('again', v2.toString());
var e = new GraphWorld.Edge(v1, v2);
assert.equal('Edge (test, again)', e.toString());
var g = new GraphWorld.Graph([v1, v2], e);
assert.deepStrictEqual([v1, v2], g.vertices());
});
it('can get edge item', function () {
var v = new GraphWorld.Vertex('test');
var w = new GraphWorld.Vertex('again');
var e = new GraphWorld.Edge(v, w);
assert.deepStrictEqual(v, e.getItem(0));
assert.deepStrictEqual(w, e.getItem(1));
});
it('should get edge by given vertices', function () {
var v = new GraphWorld.Vertex('test');
var w = new GraphWorld.Vertex('again');
var e = new GraphWorld.Edge(v, w);
var g = new GraphWorld.Graph([v, w], e);
assert.deepStrictEqual(e, g.getEdge(v, w));
assert.deepStrictEqual([e], g.edges());
});
it('can not add the same vertex twice', function () {
var v = new GraphWorld.Vertex('test');
var w = new GraphWorld.Vertex('test');
var g = new GraphWorld.Graph([v], []);
assert.throws(function () {
g.addVertex(w);
}, Error)
});
it('can not add the same edge twice', function () {
var v = new GraphWorld.Vertex('v');
var w = new GraphWorld.Vertex('w');
var e = new GraphWorld.Edge(v, w);
var g = new GraphWorld.Graph([v, w], e);
assert.throws(function () {
g.addEdge(e);
}, Error);
});
it('can create empty graph', function () {
var g = new GraphWorld.Graph([], []);
assert.notEqual(null, g);
});
it('can serialize graph to csv', function () {
var g = new GraphWorld.Graph.simplestGraph();
assert.equal(g.serializeToCSV(), 'source, target\nv, w');
});
});
describe('Graph Mini', function () {
it('can get all vertices', function () {
var v = 'v';
var w = 'w';
var es = [[v, w], [w, v]];
var g = new GraphWorld.GraphMini([v, w], es);
assert.deepStrictEqual([v, w], g.getVertices());
});
// it('can get edge item', function () {
// var v = new GraphWorld.Vertex('test');
// var w = new GraphWorld.Vertex('again');
// var e = new GraphWorld.Edge(v, w);
// assert.deepStrictEqual(v, e.getItem(0));
// assert.deepStrictEqual(w, e.getItem(1));
// });
//
// it('should get edge by given vertices', function () {
// var v = new GraphWorld.Vertex('test');
// var w = new GraphWorld.Vertex('again');
// var e = new GraphWorld.Edge(v, w);
// var g = new GraphWorld.Graph([v, w], e);
// assert.deepStrictEqual(e, g.getEdge(v, w));
// assert.deepStrictEqual([e], g.edges());
// });
//
// it('can not add the same vertex twice', function () {
// var v = new GraphWorld.Vertex('test');
// var w = new GraphWorld.Vertex('test');
// var g = new GraphWorld.Graph([v], []);
// assert.throws(function () {
// g.addVertex(w);
// }, Error)
// });
//
// it('can not add the same edge twice', function () {
// var v = new GraphWorld.Vertex('v');
// var w = new GraphWorld.Vertex('w');
// var e = new GraphWorld.Edge(v, w);
// var g = new GraphWorld.Graph([v, w], e);
// assert.throws(function () {
// g.addEdge(e);
// }, Error);
// });
//
// it('can create empty graph', function () {
// var g = new GraphWorld.Graph([], []);
// assert.notEqual(null, g);
// });
});
|
/**
* PostWithoutReload
* =================
*
* Klasse um einen Beitrag im Forum zu schreiben ohne die Seite neuladen zu
* müssen.
*/
function PostWithoutReload($, _options,_reloadPosts){
var _$form = [];
var _$inputField = [];
var _$submitButton = [];
var _$newSubmitButton = [];
var _crypt = '';
this.init = function(){
_$form = $('#c_content form:last');
_$inputField = _$form.find('#post_text_0');
_$submitButton = _$form.find('input[type=submit]');
_crypt = _$form.find('input[name=crypt]').val();
// Prüfen ob input Feld und Submitbutton gefunden wurden
if (_$inputField.length && _$submitButton.length){
_addEventListener();
// Prüfen ob reloadPosts aktiv ist, sonst initialisieren (ohne intervall)
if (!_options.getOption('middleColumn_forum_reloadPosts_readNewPosts')){
_reloadPosts.init(false);
}
}
};
var _addEventListener = function(){
_$submitButton.hide();
// Bekomme es nicht geschissen den scheiß Reload zu
// unterdrücken.. Baue daher einfach meinen eigenen Submit-Button,
// mit Koks und Nutten!!!1
var newButton = document.createElement('input');
newButton.type = 'button';
newButton.value = 'Antwort erstellen';
newButton.setAttribute('data-koks', 'true');
newButton.setAttribute('data-nutten', 'true');
_$newSubmitButton = $(newButton);
_$submitButton.after(_$newSubmitButton);
_$newSubmitButton.on('click', function(e){
e.preventDefault();
_postMessage();
});
};
var _postMessage = function(){
var postData = {
'post': 1,
'crypt': _crypt,
'post_text_0': _$inputField.val()
};
// Button und Field sperren, damit nicht versehentlich noch mehr abgeschickt wird
_$inputField.prop('disabled', true);
_$newSubmitButton.prop('disabled', true);
// Posten
var postRequest = $.post(document.location.pathname, postData);
// Bei einem Fehler eine simple Meldung ausgeben
postRequest.fail(function(){
alert('Der Post konnte nicht abgeschickt werden, bitte lade die Seite neu und versiche es erneut!');
});
// Post ist durchgelaufen, kann aber trotzdem fehlerhaft sein
// Mindestanzahl an Zeichen oder Readmore-Interne Probleme
postRequest.done(function(returnData){
var $returnElement = $(returnData);
var postError = _detectErrors($returnElement);
// Fehler ausgeben
if (postError !== ''){
alert(postError);
}
// Post erfolgreich, neue crypt Value auslesen und Reload anstoßen
else{
_crypt = $returnElement.find('#c_content form:last input[name=crypt]').val();
_reloadPosts.readPosts();
// Input field leeren
_$inputField.val('');
}
});
// Elemente wieder entsperren
postRequest.always(function(){
_$inputField.prop('disabled', false);
_$newSubmitButton.prop('disabled', false);
});
};
var _detectErrors = function($element){
var errorMessage = '';
var $errorDiv = $element.find('#c_content div.module_notice.error');
if ($errorDiv.length){
errorMessage = $errorDiv.text().replace(/\s+/g, ' ').trim();
}
return errorMessage;
};
};
|
var _ = require("underscore")
, cheerio = require("cheerio");
cheerio.prototype.map = function(fn) {
return _.reduce(this, function(memo, el, i) {
var val = fn.call(this.make(el), i, el);
return val == null ? memo : memo.concat(val);
}, [], this);
};
|
export { default } from 'affinity-engine-plugin-data-manager-rewindable-lokijs/adapters/affinity-engine/data-manager-rewindable-lokijs/shared-data';
|
// Write your Javascript code.
window.onload = function () {
document.getElementById("updateInventory_ProductLabel").focus();
};
(function ($) {
$.fn.jScroll = function (e) {
var f = $.extend({}, $.fn.jScroll.defaults, e);
return this.each(function () {
var a = $(this);
var b = $(window);
var c = new location(a);
b.scroll(function () {
a.stop().animate(c.getMargin(b), f.speed)
})
}); function location(d) {
this.min = d.offset().top;
this.originalMargin = parseInt(d.css("margin-top"), 10) || 0; this.getMargin = function (a) {
var b = d.parent().height() - d.outerHeight();
var c = this.originalMargin;
if (a.scrollTop() >= this.min) c = c + f.top + a.scrollTop() - this.min;
if (c > b) c = b;
return ({ "marginTop": c + 'px' })
}
}
}; $.fn.jScroll.defaults = { speed: "slow", top: 10 }
})(jQuery);
$(function () {
$(".scroll").jScroll();
});
|
angular.module('directives', []);
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
chrome.storage.sync.get("allWordsArray", function(items){
document.getElementById('blocked-words').value = items.allWordsArray.join(', ');
})
var blockButton = document.getElementById('block-button');
blockButton.addEventListener("click", function() {
var allWords = document.getElementById('blocked-words').value,
allWordsArray = allWords.trim().split(",");
chrome.storage.sync.set({'allWordsArray': allWordsArray}, function() {
// Notify that we saved.
});
}, false);
|
// Used to enable the use of TAB in textarea
// This is useful when editing the JSON Query directly as people are used to pressing TAB for indentation
function enableTab(id) {
var el = document.getElementById(id);
if (el !== null) {
el.onkeydown = function(e) {
if (e.keyCode === 9) { // tab was pressed
// get caret position/selection
var val = this.value,
start = this.selectionStart,
end = this.selectionEnd;
// set textarea value to: text before caret + tab + text after caret
this.value = val.substring(0, start) + '\t' + val.substring(end);
// put caret at right position again
this.selectionStart = this.selectionEnd = start + 1;
// prevent the focus lose
return false;
}
};
}
}
|
/*
* GET home page.
*/
exports.view = function(req, res){
// var flag = [];
// flag.hasText = false;
var mongodb = require('mongodb');
var databaseUrl = "ranajays:ranajays@ds033679.mongolab.com:33679/heroku_app21902449"; // "username:password@example.com/mydb"
var collections = ["drinks", "ingredients", "recipes", "cabinets"];
var db = require("mongojs").connect(databaseUrl, collections);
if (req.query['add_ingredient']) {
db.cabinets.ensureIndex({"user_id": true, "ingredient_id": true}, {unique: true});
db.cabinets.save({user_id: req.sessionID, ingredient_id: parseInt(req.query["add_ingredient"])});
}
if (req.query['delete_all'] == 'true') {
db.cabinets.remove({user_id: req.sessionID});
}
if (req.query['delete_ingredient']) {
db.cabinets.remove({user_id: req.sessionID, ingredient_id: parseInt(req.query["delete_ingredient"])});
}
db.ingredients.find({}, {}, function(err,docs) {
if (err) {
console.log("error:" + err);
}
else {
var ingredients = [];
var ingredientMap = {};
for (var i = 0; i < docs.length; i++) {
ingredients.push({label: docs[i].ingredient, id: docs[i].id});
ingredientMap[docs[i].id] = {id: docs[i].id, ingredient: docs[i].ingredient, image_url: docs[i].image_url};
}
db.cabinets.find({user_id: req.sessionID}, {}, function (err,docs) {
cabinet = [];
for (var i = 0; i < docs.length; i++) {
cabinet.push(ingredientMap[docs[i].ingredient_id]);
}
// console.log(cabinet);
cabinet.hasText = false;
res.render('cabinet', {
cabinet: cabinet,
ingredients: JSON.stringify(ingredients)});
db.close();
});
}
});
};
exports.view2 = function(req, res){
// var flag = [];
// flag.hasText = true;
var mongodb = require('mongodb');
var databaseUrl = "ranajays:ranajays@ds033679.mongolab.com:33679/heroku_app21902449"; // "username:password@example.com/mydb"
var collections = ["drinks", "ingredients", "recipes", "cabinets"];
var db = require("mongojs").connect(databaseUrl, collections);
if (req.query['add_ingredient']) {
db.cabinets.ensureIndex({"user_id": true, "ingredient_id": true}, {unique: true});
db.cabinets.save({user_id: req.sessionID, ingredient_id: parseInt(req.query["add_ingredient"])});
}
if (req.query['delete_all'] == 'true') {
db.cabinets.remove({user_id: req.sessionID});
}
if (req.query['delete_ingredient']) {
db.cabinets.remove({user_id: req.sessionID, ingredient_id: parseInt(req.query["delete_ingredient"])});
}
db.ingredients.find({}, {}, function(err,docs) {
if (err) {
console.log("error:" + err);
}
else {
var ingredients = [];
var ingredientMap = {};
for (var i = 0; i < docs.length; i++) {
ingredients.push({label: docs[i].ingredient, id: docs[i].id});
ingredientMap[docs[i].id] = {id: docs[i].id, ingredient: docs[i].ingredient, image_url: docs[i].image_url};
}
db.cabinets.find({user_id: req.sessionID}, {}, function (err,docs) {
cabinet = [];
for (var i = 0; i < docs.length; i++) {
cabinet.push(ingredientMap[docs[i].ingredient_id]);
}
// console.log(cabinet);
cabinet.hasText = true;
res.render('cabinet',{
cabinet: cabinet,
ingredients: JSON.stringify(ingredients)});
db.close();
});
}
});
};
|
version https://git-lfs.github.com/spec/v1
oid sha256:15a1e45f24664c6f3ed62969254b70b71b46bae87850a76ead1a3ecaf981aef1
size 380045
|
version https://git-lfs.github.com/spec/v1
oid sha256:9eb188ba14bbdfb5b1b7729d16e9b8b09523dbbdd5b233e5bbd37fcf291b8c80
size 18924
|
version https://git-lfs.github.com/spec/v1
oid sha256:fab6387214b3ad85994dcf2c58199a7015fdc7c63c19e1a0d8dcf3800f5b896c
size 192629
|
'use strict';
const test = require('ava');
const reverse = require('../../lib/reverse');
test('should throw error if value is `null`', t => {
t.throws(() => reverse(null));
});
test('should throw error if value is `undefined`', t => {
t.throws(() => reverse(undefined));
});
test('should throw error if value is number', t => {
t.throws(() => reverse(123));
});
test('should throw error if value is boolean', t => {
t.throws(() => reverse(true));
});
test('should reverse string characters', t => {
const iter = reverse('str');
t.deepEqual(Array.from(iter), ['r', 't', 's']);
});
|
// Author : Lijian Qiu
// Email : loye.qiu@gmail.com
// Description : ConnectionServer
var util = require('util');
var events = require('events');
var Endpoint = require('./endpoint');
var Connection = require('./connection');
//ConnectionServer(endpoint<Endpoint>[, options<Object>][, connectionListener<function>])
function ConnectionServer(endpoint, options, connectionListener) {
events.EventEmitter.call(this);
if (!(endpoint instanceof Endpoint)) {
endpoint = new Endpoint(endpoint);
}
if (typeof options === 'function') {
connectionListener = options;
options = undefined;
}
this.endpoint = endpoint;
this.options = options || {};
if (typeof connectionListener === 'function') {
this.on('connection', connectionListener);
}
listen.call(this);
}
util.inherits(ConnectionServer, events.EventEmitter);
function listen() {
var self = this, endpoint = this.endpoint, options = this.options;
switch (endpoint.protocol) {
case Endpoint.PROTOCOL.SSL:
case Endpoint.PROTOCOL.HTTPS:
case Endpoint.PROTOCOL.SSH:
case Endpoint.PROTOCOL.SFTP:
self._server = require('tls').createServer(options, function (c) {
var connection = new Connection().on('_write_data', function (data, cb) {
c.write(data, cb);
});
c.on('data', function (data) {
connection.emit('_read_data', data);
});
connection.connected = true;
self.emit('connection', connection);
}).listen(endpoint.port, endpoint.host);
break;
case Endpoint.PROTOCOL.WS:
case Endpoint.PROTOCOL.WSS:
options.server || (options.server = createHttpServer(endpoint.protocol === Endpoint.PROTOCOL.WSS, options)
.listen(endpoint.port, endpoint.host));
self._server = new (require('ws')).Server(options).on('connection', function (c) {
var connection = new Connection().on('_write_data', function (data, cb) {
c.send(data, {binary: true}, cb);
});
c.on('message', function (data) {
connection.emit('_read_data', data);
});
connection.connected = true;
self.emit('connection', connection);
});
break;
default:
self._server = require('net').createServer(options, function (c) {
var connection = new Connection().on('_write_data', function (data, cb) {
c.write(data, cb);
});
c.on('data', function (data) {
connection.emit('_read_data', data);
});
connection.connected = true;
self.emit('connection', connection);
}).listen(endpoint.port, endpoint.host);
}
}
function createHttpServer(isHttps, options) {
return isHttps
? require('https').createServer(options, onHttpRequest)
: require('http').createServer(onHttpRequest);
}
function onHttpRequest(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Connection is working.\r\n');
}
//exports
module.exports = ConnectionServer;
|
function menuButton() {
var menu = document.getElementsByClassName("menu")[0];
if (menu.style.display == "block") {
menu.style.display = "none";
} else {
menu.style.display = "block";
};
// console.log(menu.getElementsByTagName("li"));
// if (menu.style.height == "0px") {
// menu.style.height = "256px";
// menu.getElementsByTagName("li").style.padding = "1.4em 0";
// menu.getElementsByTagName("li").style.border = "1px solid grey 0 0 0";
// menu.getElementsByTagName("li").style.font= "18px";
// } else {
// menu.style.height = "0px";
// menu.getElementsByTagName("li").style.padding = "0";
// menu.getElementsByTagName("li").style.border = "0";
// menu.getElementsByTagName("li").style.font = "0";
// };
};
|
const enumerations = (function () {
const en = {
soilLevel: {
0: 'extra light',
1: 'light',
2: 'normal',
3: 'heavy',
4: 'extra heavy'
},
spinLevel: {
0: 'no spin',
1: 'unused',
2: 'medium',
3: 'high',
4: 'extra high',
5: 'disabled'
},
waterTemp: {
21: 'hot',
20: 'warm',
19: 'colors',
18: 'cool',
17: 'cold',
16: 'tap cold'
},
machineStatus: {
0: 'idle',
1: 'waiting',
2: 'run',
3: 'pause',
4: 'end of cycle',
6: 'delay run',
7: 'delay pause'
},
loadSize: {
0: 'small',
1: 'medium',
2: 'large',
3: 'super',
4: 'precise fill'
},
cycle: {
0: 'blank',
1: 'basket_clean',
2: 'rinse_and_spin',
3: 'quick_rinse',
4: 'bulky_items',
5: 'sanitize',
6: 'towels_and_sheets',
7: 'steam_refresh',
8: 'normal',
9: 'whites',
10: 'darks',
11: 'jeans',
12: 'hand_wash',
13: 'delicates',
14: 'speed_wash',
15: 'heavy_duty',
16: 'allergen',
17: 'power_clean',
18: 'rinse_and_spin',
19: 'single_item',
20: 'colors',
21: 'cold_wash',
22: 'water_station',
128: 'cottons',
129: 'easy_care',
130: 'active_wear',
131: 'time_dry',
132: 'dewrinkle',
133: 'air_fluff',
134: 'steam_refresh',
135: 'steam_dewrinkle',
136: 'speed_dry',
137: 'mixed',
138: 'speed_dry',
139: 'casuals',
140: 'warm_up',
141: 'energy_saver'
},
dryTemp: {
1: 'no heat',
2: 'low',
3: 'medium',
4: 'high'
},
stainPretreat: {
0: 'off',
1: 'tomato',
2: 'wine',
3: 'blood',
4: 'grass',
5: 'dirt'
},
deepFill: {
0: 'off',
1: ''
},
deepRinse: {
0: 'off',
1: '',
},
extraRinse: {
1: '',
0: 'off',
2: '',
3: 'off'
},
warmRinse: {
0: 'off',
1: ''
},
delayWash: {
0: 'off',
1: '',
},
soak: {
0: 'off',
1: '',
},
volume: {
0: 'off',
1: '',
},
stain: {
0: 'off',
1: 'tomato',
2: 'wine',
3: 'blood',
4: 'grass',
5: 'dirt'
}
}
es = en
function makeReadable (text) {
return text.replace(/[_-]/g, ' ')
}
return {
en,
es,
makeReadable
}
})()
module.exports = enumerations
|
O2.extendClass('MW.HUDIconPad', UI.HUDElement, {
sLastIconPrint: '',
oIcons: null,
oAttributes: null,
/**
* Afficher les icones vertes correspondant aux attributs positif
* et les icones rouges correspondant aux attributs négatif
*/
update: function(oAttributes) {
var sLIP = '', sAttr = '';
for (sAttr in oAttributes) {
sLIP += '[' + sAttr + '/' + oAttributes[sAttr] + ']';
}
if (this.oIcons === null) {
this.oIcons = this.oGame.oRaycaster.oHorde.oTiles.i_icons16.oImage;
}
if (sLIP !== this.sLastIconPrint) {
this.sLastIconPrint = sLIP;
this.oAttributes = oAttributes;
this.redraw();
}
},
redraw: function() {
var c = this.oContext;
var w = this.oCanvas.width;
var h = this.oCanvas.height;
var oAttributes = this.oAttributes;
c.clearRect(0, 0, w, h);
var ad = null, xCol = 0;
for (var sAttr in oAttributes) {
ad = null;
if (oAttributes[sAttr] > 0) {
ad = MW.ATTRIBUTES_DATA[sAttr].pos;
} else if (oAttributes[sAttr] < 0) {
ad = MW.ATTRIBUTES_DATA[sAttr].neg;
}
if (ad !== null && ad.icon != null) {
c.drawImage(this.oIcons, ad.icon << 4, ad.color << 4, 16, 16, xCol, 0, 16, 16);
xCol += 16;
}
}
}
});
|
var getData = require('./getData');
var express = require('express');
var router = express.Router();
router.get('/text', function(req, res, next) {
getData.fetch(function(o) {
var data = "";
console.log(o);
for (var t in o) {
data += (t + ", " + o[t].to + ", " + o[t].in + "\n");
}
res.set('Content-Type', 'text/plain');
res.send(data);
});
});
router.get('/json', function(req, res, next) {
getData.fetch(function(o) { res.send(o); });
});
router.get('/', function(req, res, next) {
getData.fetch(function(o) {
console.log(o);
res.render('index', { title: 'Froschberg Bus Monitor', times: o, year : new Date().getFullYear() });
});
});
module.exports = router;
|
/**
* SVGPathNormalizer
* https://github.com/motooka/SVGPathNormalizer
*
* Copyright (c) Tadahisa Motooka
* Licensed under the MIT license
* See the file "LICENSE" for more detail.
*
*/
var SVGPathNormalizer = {};
SVGPathNormalizer.normalize = function(pathSegList) {
var path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
var newPathSegList = path.pathSegList;
var seg = null;
var newSeg = null;
var curX = 0;
var curY = 0;
var newX = 0;
var newY = 0;
var startX = null;
var startY = null;
var lastCommandIsCubicBezier = false;
var lastCommandIsQuadraticBezier = false;
var lastControlX = null;
var lastControlY = null;
var thisCommandIsCubicBezier = false;
var thisCommandIsQuadraticBezier = false;
for(var i=0; i<pathSegList.numberOfItems; i++) {
seg = pathSegList.getItem(i);
thisCommandIsCubicBezier = false;
thisCommandIsQuadraticBezier = false;
switch(seg.pathSegType) {
// z
case SVGPathSeg.PATHSEG_CLOSEPATH:
newX = startX;
newY = startY;
newSeg = path.createSVGPathSegClosePath();
startX = null;
startY = null;
break;
// M
case SVGPathSeg.PATHSEG_MOVETO_ABS:
newX = seg.x;
newY = seg.y;
newSeg = path.createSVGPathSegMovetoAbs(newX, newY);
break;
// m
case SVGPathSeg.PATHSEG_MOVETO_REL:
newX = curX + seg.x;
newY = curY + seg.y;
newSeg = path.createSVGPathSegMovetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_LINETO_ABS:
newX = seg.x;
newY = seg.y;
newSeg = path.createSVGPathSegLinetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_LINETO_REL:
newX = curX + seg.x;
newY = curY + seg.y;
newSeg = path.createSVGPathSegLinetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
newX = seg.x;
newY = seg.y;
lastControlX = seg.x2;
lastControlY = seg.y2;
newSeg = path.createSVGPathSegCurvetoCubicAbs(newX, newY, seg.x1, seg.y1, seg.x2, seg.y2);
thisCommandIsCubicBezier = true;
break;
case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
newX = curX + seg.x;
newY = curY + seg.y;
lastControlX = curX + seg.x2;
lastControlY = curY + seg.y2;
newSeg = path.createSVGPathSegCurvetoCubicAbs(newX, newY, (curX + seg.x1), (curY + seg.y1), (curX + seg.x2), (curY + seg.y2));
thisCommandIsCubicBezier = true;
break;
case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
newX = seg.x;
newY = seg.y;
lastControlX = seg.x1;
lastControlY = seg.y1;
newSeg = path.createSVGPathSegCurvetoQuadraticAbs(newX, newY, seg.x1, seg.y1);
thisCommandIsQuadraticBezier = true;
break;
case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
newX = curX + seg.x;
newY = curY + seg.y;
lastControlX = curX + seg.x1;
lastControlY = curY + seg.y1;
newSeg = path.createSVGPathSegCurvetoQuadraticAbs(newX, newY, (curX + seg.x1), (curY + seg.y1));
thisCommandIsQuadraticBezier = true;
break;
case SVGPathSeg.PATHSEG_ARC_ABS:
newX = seg.x;
newY = seg.y;
newSeg = path.createSVGPathSegArcAbs(newX, newY, seg.r1, seg.r2, seg.angle, seg.largeArcFlag, seg.sweepFlag);
break;
case SVGPathSeg.PATHSEG_ARC_REL:
newX = curX + seg.x;
newY = curY + seg.y;
newSeg = path.createSVGPathSegArcAbs(newX, newY, seg.r1, seg.r2, seg.angle, seg.largeArcFlag, seg.sweepFlag);
break;
case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:
newX = seg.x;
newY = curY;
newSeg = path.createSVGPathSegLinetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:
newX = curX + seg.x;
newY = curY;
newSeg = path.createSVGPathSegLinetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:
newX = curX;
newY = seg.y;
newSeg = path.createSVGPathSegLinetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:
newX = curX;
newY = curY + seg.y;
newSeg = path.createSVGPathSegLinetoAbs(newX, newY);
break;
case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
newX = seg.x;
newY = seg.y;
var firstControlX = curX;
var firstControlY = curY;
if(lastCommandIsCubicBezier) {
var refl = SVGPathNormalizer.getReflectionPoint(lastControlX, lastControlY, curX, curY);
firstControlX = refl.x;
firstControlY = refl.y;
}
lastControlX = seg.x2;
lastControlY = seg.y2;
newSeg = path.createSVGPathSegCurvetoCubicAbs(newX, newY, firstControlX, firstControlY, lastControlX, lastControlY);
thisCommandIsCubicBezier = true;
break;
case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
newX = curX + seg.x;
newY = curY + seg.y;
var firstControlX = curX;
var firstControlY = curY;
if(lastCommandIsCubicBezier) {
var refl = SVGPathNormalizer.getReflectionPoint(lastControlX, lastControlY, curX, curY);
firstControlX = refl.x;
firstControlY = refl.y;
}
lastControlX = (curX + seg.x2);
lastControlY = (curY + seg.y2);
newSeg = path.createSVGPathSegCurvetoCubicAbs(newX, newY, firstControlX, firstControlY, lastControlX, lastControlY);
thisCommandIsCubicBezier = true;
break;
case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
newX = seg.x;
newY = seg.y;
var firstControlX = curX;
var firstControlY = curY;
if(lastCommandIsQuadraticBezier) {
var refl = SVGPathNormalizer.getReflectionPoint(lastControlX, lastControlY, curX, curY);
firstControlX = refl.x;
firstControlY = refl.y;
}
newSeg = path.createSVGPathSegCurvetoQuadraticAbs(newX, newY, firstControlX, firstControlY);
lastControlX = firstControlX;
lastControlY = firstControlY;
thisCommandIsQuadraticBezier = true;
break;
case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
newX = curX + seg.x;
newY = curY + seg.y;
var firstControlX = curX;
var firstControlY = curY;
if(lastCommandIsQuadraticBezier) {
var refl = SVGPathNormalizer.getReflectionPoint(lastControlX, lastControlY, curX, curY);
firstControlX = refl.x;
firstControlY = refl.y;
}
newSeg = path.createSVGPathSegCurvetoQuadraticAbs(newX, newY, firstControlX, firstControlY);
lastControlX = firstControlX;
lastControlY = firstControlY;
thisCommandIsQuadraticBezier = true;
break;
default:
newSeg = seg;
break;
}
newPathSegList.appendItem(newSeg);
curX = newX;
curY = newY;
if(startX === null && startY === null) {
startX = curX;
startY = curY;
}
if(thisCommandIsCubicBezier || thisCommandIsQuadraticBezier) {
// do nothing
}
else {
// clear last controll point
lastControlX = null;
lastControlY = null;
}
lastCommandIsCubicBezier = thisCommandIsCubicBezier;
lastCommandIsQuadraticBezier = thisCommandIsQuadraticBezier;
}
return newPathSegList;
};
SVGPathNormalizer.getReflectionPoint = function(lastControlX, lastControlY, curX, curY) {
return {
x: curX + (curX - lastControlX),
y: curY + (curY - lastControlY)
};
};
|
/**
*
* Tests for Example
*
* @see https://github.com/react-boilerplate/react-boilerplate/tree/master/docs/testing
*
*/
import React from 'react';
import { render } from 'react-testing-library';
import { IntlProvider } from 'react-intl';
// import 'jest-dom/extend-expect'; // add some helpful assertions
import { Example } from '../index';
import { DEFAULT_LOCALE } from '../../../i18n';
describe('<Example />', () => {
it('Expect to not log errors in console', () => {
const spy = jest.spyOn(global.console, 'error');
const dispatch = jest.fn();
render(
<IntlProvider locale={DEFAULT_LOCALE}>
<Example dispatch={dispatch} />
</IntlProvider>,
);
expect(spy).not.toHaveBeenCalled();
});
it('Expect to have additional unit tests specified', () => {
expect(true).toEqual(false);
});
/**
* Unskip this test to use it
*
* @see {@link https://jestjs.io/docs/en/api#testskipname-fn}
*/
it.skip('Should render and match the snapshot', () => {
const {
container: { firstChild },
} = render(
<IntlProvider locale={DEFAULT_LOCALE}>
<Example />
</IntlProvider>,
);
expect(firstChild).toMatchSnapshot();
});
});
|
module.exports = require('./dist/Calendar');
|
eventsApp.factory('$exceptionHandler', function() {
return function (exception) {
console.log("exception handled: " + exception.message);
};
})
|
define([
'core/events',
'core/g-attrs',
'core/vars/html-tags',
'core/vars/regex'
], function ($events, GAttrs, HTMLTags, Regex) {
var TEMPLATE_ID = 1;
function Template (tree, nodes) {
var $this = this;
$this.id = TEMPLATE_ID++;
var tree = tree;
var nodelist = nodes;
if (nodelist) {
for (var i in nodelist) {
if (nodelist[i].component) {
nodelist[i].component.template = $this;
}
}
}
this.renderIn = function (element) {
for (var i in tree) {
var node = tree[i].node;
element.appendChild(node);
}
for (var i in nodelist) {
var nodedata = nodelist[i];
if (nodedata.node.nodeType == Node.TEXT_NODE)
continue;
if (HTMLTags.indexOf(nodedata.tag.toLowerCase()) == -1) {
var el = document.createElement('ul'); /* TODO: dynamic tagName */
if (nodedata.node.innerHTML != null)
el.innerHTML = nodedata.node.innerHTML;
for (var i = 0, atts = nodedata.node.attributes, n = atts.length; i < n; i++){
el.setAttribute(atts[i].nodeName, atts[i].nodeValue);
}
nodedata.node.parentNode.appendChild(el);
nodedata.node.parentNode.removeChild(nodedata.node);
nodedata.node = el;
nodedata.tag = 'UL'; /* TODO: dynamic tagName */
nodedata.component.el = el;
}
}
}
this.component = function (id) {
if (id.match(/\{.+\}/))
id = id.replace(/\{.+\}/, "").trim();
for (var i in nodelist) {
var byId = nodelist[i].id && nodelist[i].id == id;
var byTag = nodelist[i].tag === id.toUpperCase();
var byClass = nodelist[i].className && nodelist[i].className.indexOf(id) > -1;
if ((byId || byTag || byClass) && nodelist[i].component)
return nodelist[i].component;
}
return null;
}
this.node = function (id) {
if (id.match(/\{.+\}/))
id = id.replace(/\{.+\}/, "").trim();
for (var i in nodelist) {
var byId = nodelist[i].id && nodelist[i].id == id;
var byTag = nodelist[i].tag === id.toUpperCase();
var byClass = nodelist[i].className && nodelist[i].className.indexOf(id) > -1;
if ((byId || byTag || byClass))
return nodelist[i];
}
return null;
}
/**
* If g-watch is present, register watches to run gAttrs.
*/
var addWatches = function (source) {
if (nodelist) {
for (var i in nodelist) {
var watchTo = nodelist[i]['g-watch'];
if (watchTo == null)
continue;
var watches = watchTo.split(',');
for (var j in watches) {
$this.watch(watches[j], source);
var listenChange = 't-' + $this.id + '-change-' + watches[j];
$events.listenFor(listenChange, $this, function (nodedata) {
runGAttributes(nodedata, source);
}, [nodelist[i]]);
}
runGAttributes(nodelist[i], source);
}
}
}
var runGAttributes = function (node, source) {
if (node['g-attrs'] == null)
return;
var gAttributes = node['g-attrs'];
for (var gAttrName in gAttributes) {
var gAttrDef = GAttrs[gAttrName];
if (gAttrDef.exec)
gAttrDef.exec.call(null, node, source, gAttributes[gAttrName]);
}
}
var $changeSource = null;
this.bind = function ($source, nodes) {
addWatches($source);
var bindInNodes = nodes || nodelist;
for (var i in bindInNodes) {
var nodedata = bindInNodes[i];
for (var j in nodedata.bindings) {
var bindData = nodedata.bindings[j];
var node = bindData.node;
var properties = bindData.properties.concat();
for (var i in properties) {
var bind = properties[i].name;
var isFunc = false;
var funcWatch = null;
if (bind.match(Regex.clean_func)) {
isFunc = true;
if ((funcWatch = nodedata['g-watch']) == null)
continue;
funcWatch = funcWatch.split(',');
bind = bind.replace(Regex.clean_func, "");
}
var replace_regex = Regex.bind_property(bind);
var $this = this;
if ($this.getNestedProperty($source, bind) == undefined)
continue;
if (isFunc) {
for (var k in funcWatch) {
var bind = funcWatch[i];
this.watch(bind, $source);
var listenForEvent = 't-' + $this.id + '-bind-' + bind;
$events.listenFor(listenForEvent, $source, function (node, source) {
if ($changeSource != node.component)
$this.doBind(node, source);
$changeSource = null;
}, [nodedata, $source]);
}
} else {
this.watch(bind, $source);
var listenForEvent = 't-' + $this.id + '-bind-' + bind;
$events.listenFor(listenForEvent, $source, function (node, source) {
if ($changeSource != node.component)
$this.doBind(node, source);
$changeSource = null;
}, [nodedata, $source])
var listenEvent = 't-' + $this.id + '-update-' + bind;
$events.listen(listenEvent, function (value, origin, bind, node, source) {
$changeSource = origin;
$this.setValue(source, bind, value);
}, [bind, nodedata, $source])
}
this.doBind(nodedata, $source);
}
}
}
}
var htmlEncode = function(value) {
var el = document.createElement('div');
if (value) {
el.innerText = el.textContent = value;
return el.innerHTML;
}
return value;
}
function htmlDecode(str) {
var d = document.createElement("div");
d.innerHTML = str;
return typeof d.innerText !== 'undefined' ? d.innerText : d.textContent;
}
this.updateSource = function (bind, value, origin) {
var broadcastEvent = 't-'+$this.id+'-update-' + bind;
$events.broadcast(broadcastEvent, [value, origin]);
}
this.doBind = function (nodedata, $source) {
for (var j in nodedata.bindings) {
var bindData = nodedata.bindings[j];
var component = nodedata.component;
var source = bindData.source.concat();
var properties = bindData.properties.concat();
if (component && component.bind) {
component.bind(properties, $source);
} else {
for (var i in properties) {
var property = properties[i];
var bind = property.name;
var bindText = bind;
var isFunc = false;
var isInput = property.node.tagName && property.node.tagName == 'INPUT';
var inputType = isInput ? nodedata.type.toLowerCase() : null;
if (bind.match(Regex.clean_func)) {
isFunc = true;
bind = bind.replace(Regex.clean_func, "");
bindText = bindText.replace(Regex.clean_func, "\\(\\)");
}
var replace_regex = Regex.bind_property(bindText);
var val = $this.getValue($source, bind) || "";
var bindValue = isFunc && typeof val == 'function' ? val.call($source) : val;
if (!property.html)
bindValue = htmlEncode(bindValue);
if (property.isAttr) {
source = bindValue;
} else {
source = source.replace(replace_regex, bindValue);
}
if (isInput) {
if (['checkbox', 'radio'].indexOf(inputType) > -1) {
if (inputType == 'checkbox' && property.node.checked != source) {
property.node.checked = source;
} else {
property.node.checked = property.node.value == source;
}
} else {
property.node.value = source;
}
} else {
if (property.html && property.node.innerHTML != source || bindData.html) {
property.node.innerHTML = source;
} else {
if (property.node.nodeType == Node.ELEMENT_NODE && property.node.textContent != source) {
property.node.textContent = source;
} else if (property.node.nodeValue != source) {
property.node.nodeValue = source;
}
}
}
}
}
}
}
}
var $notifiers = {};
var addNotifier = function (template, sourceObj, property, id) {
var broadcastChange = 't-' + id + '-change-' + property;
var broadcastBind = 't-' + id + '-bind-' + property;
if ($notifiers[property] == null)
$notifiers[property] = [];
$notifiers[property].push({
template : template,
source : sourceObj,
events : [
{
name : broadcastBind,
args : [],
by : sourceObj
},
{
name : broadcastChange,
args : [],
by : template
}
]
})
}
var triggerNotifier = function (target, sourceObj, property, func) {
var isArray = Object.prototype.toString.call(target) == "[object Array]";
var prevState = isArray ? Array.prototype.slice.call(target) : Template.prototype.getValue.call(null, target, property);
var res = func.call(target);
if (res != undefined)
target = res;
var actualState = isArray ? Array.prototype.slice.call(target) : Template.prototype.getValue.call(null, target, property);
var eq = false;
if (isArray) {
eq = prevState.length == actualState.length;
if (eq && prevState.length == actualState.length) {
for (var i in prevState) {
if (prevState[i] != actualState[i]) {
eq = false;
break;
}
}
}
}
if (eq) {
return target;
}
var propertyNotifiers = $notifiers[property];
for (var i=0; i < propertyNotifiers.length; i++) {
var notifier = propertyNotifiers[i];
if (notifier.source != sourceObj)
continue;
var events = notifier.events;
for (var j=0; j < events.length; j++) {
var ev = events[j];
$events.broadcastBy(ev.name, ev.args, ev.by);
}
}
}
Template.prototype = {
watch : function(prop, source){
var nesteds = prop.split("."); // Path
var property = nesteds.pop(); // Final var
var $source = source;
var $target = source;
var $this = this;
if (nesteds.length > 0) {
$target = this.getNestedProperty($source, prop); // If prop is a nested property, search his parent object
} else {
property = prop;
}
var type = Object.prototype.toString.call($target[property]);
if (type == "[object Array]") {
[
"push", "pop", "slice",
"reduce", "reduceRight", "reverse",
"shift", "unshift", "splice",
"concat", "sort"
].forEach(function(method){
eval([
"Object.defineProperty($target[property], '"+method+"', {",
"value : function () {",
"var args = Array.prototype.slice.call(arguments);",
"triggerNotifier(this, $source, prop, function () {",
"Array.prototype."+method+".apply(this, args);",
"});",
"},",
"enumerable: true,",
"configurable: true",
"});"
].join('\n'));
})
Object.defineProperty($target[property], 'get', {
value : function (index) {
return this[index] != null ? this[index] : undefined;
},
enumerable: true,
configurable: true
});
Object.defineProperty($target[property], 'set', {
value : function (index, el) {
triggerNotifier(this, $source, prop, function () {
this[index] = el;
});
},
enumerable: true,
configurable: true
});
Object.defineProperty($target[property], 'remove', {
value : function (index) {
triggerNotifier(this, $source, prop, function () {
delete this[index];
return this.filter(function (el) {
return el != null;
})
});
},
enumerable: true,
configurable: true
});
}
var val = $target[property]; // Final value to get/retrieve
addNotifier($this, $source, prop, $this.id);
Object.defineProperty($target, property, {
get: function(){
return val;
},
set: function(newVal){
triggerNotifier(this, $source, prop, function () {
var oldVal = val;
val = newVal;
});
},
enumerable: true,
configurable: true
});
if( $source != $target )
this.setNestedProperty($source, prop, $target);
},
getNestedProperty:function(source, s) {
var o = source;
s = s.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
s = s.replace(/^\./, ''); // strip a leading dot
var a = s.split('.');
while (a.length) {
var n = a.shift();
if (n in o) {
if( a.length == 0 ){
return o;
}
o = o[n];
} else {
return null;
}
}
return o;
},
setNestedProperty:function(target, s, v) {
var schema = target; // a moving reference to internal objects within obj
var pList = s.split('.');
pList.pop();
var len = pList.length;
for(var i = 0; i < len-1; i++) {
var elem = pList[i];
if( !schema[elem] ) schema[elem] = {}
schema = schema[elem];
}
schema[pList[len-1]] = v;
},
getValue:function(source, s) {
var o = source;
s = s.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
s = s.replace(/^\./, ''); // strip a leading dot
var a = s.split('.');
while (a.length) {
var n = a.shift();
if (n in o) {
o = o[n];
} else {
return null;
}
}
return (o && typeof o == "function" ? o.call(source) : o);
},
setValue:function(target, s, v) {
var schema = target; // a moving reference to internal objects within obj
var pList = s.split('.');
var len = pList.length;
for(var i = 0; i < len-1; i++) {
var elem = pList[i];
if( !schema[elem] ) schema[elem] = {}
schema = schema[elem];
}
schema[pList[len-1]] = v;
}
}
return Template;
})
|
import React from 'react';
import ReactDOM from 'react-dom';
import Grid from './Grid';
ReactDOM.render(<Grid rows={10} cols={5}/>, document.getElementById('grid'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.