├── fastweb ├── command │ ├── __init__.py │ └── service │ │ └── __init__.py ├── setting │ ├── __init__.py │ ├── default_component.py │ ├── default_errcode.py │ └── default_connection_component.py ├── spec │ ├── __init__.py │ └── req.py ├── test │ ├── __init__.py │ ├── test_mongo.py │ ├── some_tasks │ │ ├── __init__.py │ │ └── add.py │ ├── service_handlers │ │ ├── __init__.py │ │ └── hello.py │ ├── fastweb_thrift_async │ │ ├── __init__.py │ │ └── HelloService │ │ │ ├── __init__.py │ │ │ ├── constants.py │ │ │ └── ttypes.py │ ├── fastweb_thrift_sync │ │ ├── __init__.py │ │ └── HelloService │ │ │ ├── __init__.py │ │ │ ├── constants.py │ │ │ └── ttypes.py │ ├── config │ │ ├── config.ini │ │ ├── task.ini │ │ ├── worker.ini │ │ ├── component.ini │ │ └── service.ini │ ├── idls │ │ └── HelloService.thrift │ ├── service_server.py │ ├── worker.py │ ├── configuration.py │ ├── process.py │ ├── tormysql.py │ ├── web.py │ ├── tool.py │ ├── test_manager.py │ ├── test_loader.py │ ├── interactive.py │ └── test_redis.py ├── util │ ├── __init__.py │ └── option.py ├── component │ ├── db │ │ └── __init__.py │ └── rpc │ │ └── __init__.py ├── script.py ├── __init__.py └── compat.py ├── examples ├── web │ ├── handlers │ │ └── __init__.py │ ├── some_tasks │ │ ├── __init__.py │ │ └── add.py │ ├── fastweb_thrift_async │ │ ├── __init__.py │ │ └── HelloService │ │ │ ├── __init__.py │ │ │ ├── constants.py │ │ │ └── ttypes.py │ ├── task.ini │ └── config.ini ├── task │ ├── some_tasks │ │ ├── __init__.py │ │ └── add.py │ ├── task_worker.py │ └── task.ini └── service │ ├── fastweb_thrift_sync │ ├── __init__.py │ └── HelloService │ │ ├── __init__.py │ │ ├── constants.py │ │ └── ttypes.py │ ├── service_handlers │ ├── __init__.py │ └── hello.py │ ├── fastweb_thrift_async │ ├── __init__.py │ └── HelloService │ │ ├── __init__.py │ │ ├── constants.py │ │ └── ttypes.py │ ├── handlers │ ├── __init__.py │ └── HelloService.py │ ├── idls │ └── HelloService.thrift │ ├── call_service.ini │ ├── component.ini │ ├── tservice.ini │ ├── service.ini │ └── server.py ├── fastweb-docs-1 ├── node_modules │ ├── nopt │ │ └── .npmignore │ ├── .bin │ │ ├── he │ │ ├── rc │ │ ├── csso │ │ ├── errno │ │ ├── is-ci │ │ ├── mime │ │ ├── svgo │ │ ├── uuid │ │ ├── acorn │ │ ├── atob │ │ ├── hulk │ │ ├── jsesc │ │ ├── json5 │ │ ├── nopt │ │ ├── rimraf │ │ ├── sha.js │ │ ├── which │ │ ├── cssesc │ │ ├── envify │ │ ├── mkdirp │ │ ├── semver │ │ ├── stylus │ │ ├── babylon │ │ ├── browserslist │ │ ├── esparse │ │ ├── js-yaml │ │ ├── loose-envify │ │ ├── prettier │ │ ├── uglifyjs │ │ ├── vuepress │ │ ├── webpack │ │ ├── esvalidate │ │ ├── html-minifier │ │ ├── regjsparser │ │ ├── webpack-serve │ │ ├── autoprefixer │ │ ├── markdown-it │ │ ├── miller-rabin │ │ └── import-local-fixture │ ├── prr │ │ ├── .npmignore │ │ └── .travis.yml │ ├── url │ │ ├── .npmignore │ │ ├── .zuul.yml │ │ ├── util.js │ │ └── .travis.yml │ ├── toml │ │ ├── .npmignore │ │ ├── index.d.ts │ │ ├── test │ │ │ ├── bad.toml │ │ │ ├── multiline_strings.toml │ │ │ ├── table_arrays_easy.toml │ │ │ ├── multiline_literal_strings.toml │ │ │ ├── literal_strings.toml │ │ │ ├── multiline_eat_whitespace.toml │ │ │ ├── inline_tables.toml │ │ │ ├── table_arrays_hard.toml │ │ │ ├── smoke.js │ │ │ └── example.toml │ │ ├── .travis.yml │ │ ├── index.js │ │ ├── benchmark.js │ │ └── .jshintrc │ ├── topo │ │ ├── .npmignore │ │ └── README.md │ ├── hoek │ │ └── .npmignore │ ├── coa │ │ ├── .nyc_output │ │ │ └── 1f2a0db5a6d6559149db56d397f47cfc.json │ │ ├── test │ │ │ └── mocha.opts │ │ ├── index.js │ │ ├── .npmignore │ │ ├── coverage │ │ │ ├── sort-arrow-sprite.png │ │ │ └── prettify.css │ │ ├── .travis.yml │ │ ├── tests │ │ │ ├── h.js │ │ │ └── api-h.js │ │ ├── src │ │ │ ├── index.coffee │ │ │ ├── shell.coffee │ │ │ └── color.coffee │ │ ├── lib │ │ │ ├── index.js │ │ │ ├── shell.js │ │ │ └── color.js │ │ ├── qq.js │ │ └── GNUmakefile │ ├── svgo │ │ ├── node_modules │ │ │ ├── .bin │ │ │ │ └── js-yaml │ │ │ └── js-yaml │ │ │ │ ├── index.js │ │ │ │ └── lib │ │ │ │ └── js-yaml │ │ │ │ ├── type │ │ │ │ ├── str.js │ │ │ │ ├── map.js │ │ │ │ ├── seq.js │ │ │ │ ├── merge.js │ │ │ │ ├── set.js │ │ │ │ ├── js │ │ │ │ │ └── undefined.js │ │ │ │ └── null.js │ │ │ │ └── schema │ │ │ │ ├── failsafe.js │ │ │ │ ├── core.js │ │ │ │ ├── json.js │ │ │ │ ├── default_full.js │ │ │ │ └── default_safe.js │ │ ├── bin │ │ │ └── svgo │ │ ├── .npmignore │ │ ├── plugins │ │ │ ├── removeMetadata.js │ │ │ ├── removeStyleElement.js │ │ │ ├── removeTitle.js │ │ │ ├── removeXMLProcInst.js │ │ │ ├── removeComments.js │ │ │ ├── removeEmptyAttrs.js │ │ │ ├── removeRasterImages.js │ │ │ ├── removeXMLNS.js │ │ │ ├── removeDimensions.js │ │ │ ├── removeEmptyContainers.js │ │ │ └── removeDesc.js │ │ └── Makefile │ ├── only │ │ ├── .npmignore │ │ ├── History.md │ │ ├── Makefile │ │ └── index.js │ ├── @xtuc │ │ └── long │ │ │ └── index.js │ ├── koa │ │ └── node_modules │ │ │ └── debug │ │ │ ├── node.js │ │ │ ├── .coveralls.yml │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── .eslintrc │ │ │ └── src │ │ │ └── index.js │ ├── d │ │ ├── .npmignore │ │ ├── .lint │ │ ├── test │ │ │ └── auto-bind.js │ │ ├── .travis.yml │ │ └── CHANGES │ ├── nan │ │ ├── include_dirs.js │ │ └── tools │ │ │ ├── README.md │ │ │ └── package.json │ ├── vue │ │ ├── src │ │ │ ├── platforms │ │ │ │ ├── weex │ │ │ │ │ ├── runtime │ │ │ │ │ │ ├── directives │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── text-node.js │ │ │ │ │ │ ├── components │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── transition.js │ │ │ │ │ │ ├── modules │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── patch.js │ │ │ │ │ ├── entry-compiler.js │ │ │ │ │ ├── compiler │ │ │ │ │ │ ├── directives │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── modules │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── recycle-list │ │ │ │ │ │ │ ├── component-root.js │ │ │ │ │ │ │ ├── v-once.js │ │ │ │ │ │ │ ├── component.js │ │ │ │ │ │ │ ├── text.js │ │ │ │ │ │ │ ├── v-bind.js │ │ │ │ │ │ │ ├── v-on.js │ │ │ │ │ │ │ └── v-for.js │ │ │ │ │ │ │ ├── append.js │ │ │ │ │ │ │ └── props.js │ │ │ │ │ └── entry-runtime-factory.js │ │ │ │ └── web │ │ │ │ │ ├── entry-runtime.js │ │ │ │ │ ├── runtime │ │ │ │ │ ├── directives │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── components │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── modules │ │ │ │ │ │ └── index.js │ │ │ │ │ └── patch.js │ │ │ │ │ ├── server │ │ │ │ │ ├── directives │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── show.js │ │ │ │ │ ├── modules │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── class.js │ │ │ │ │ │ └── style.js │ │ │ │ │ └── compiler.js │ │ │ │ │ ├── compiler │ │ │ │ │ ├── directives │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── html.js │ │ │ │ │ │ └── text.js │ │ │ │ │ ├── modules │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── options.js │ │ │ │ │ ├── entry-compiler.js │ │ │ │ │ ├── entry-server-basic-renderer.js │ │ │ │ │ └── util │ │ │ │ │ ├── index.js │ │ │ │ │ └── compat.js │ │ │ ├── core │ │ │ │ ├── components │ │ │ │ │ └── index.js │ │ │ │ ├── vdom │ │ │ │ │ ├── modules │ │ │ │ │ │ └── index.js │ │ │ │ │ └── helpers │ │ │ │ │ │ ├── is-async-placeholder.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── get-first-component-child.js │ │ │ │ ├── global-api │ │ │ │ │ ├── mixin.js │ │ │ │ │ └── use.js │ │ │ │ ├── util │ │ │ │ │ ├── index.js │ │ │ │ │ ├── perf.js │ │ │ │ │ └── lang.js │ │ │ │ ├── instance │ │ │ │ │ ├── render-helpers │ │ │ │ │ │ ├── resolve-filter.js │ │ │ │ │ │ └── bind-object-listeners.js │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ ├── compiler │ │ │ │ ├── directives │ │ │ │ │ ├── index.js │ │ │ │ │ ├── bind.js │ │ │ │ │ └── on.js │ │ │ │ ├── parser │ │ │ │ │ └── entity-decoder.js │ │ │ │ └── index.js │ │ │ ├── shared │ │ │ │ └── constants.js │ │ │ └── server │ │ │ │ ├── util.js │ │ │ │ ├── optimizing-compiler │ │ │ │ └── index.js │ │ │ │ └── webpack-plugin │ │ │ │ └── util.js │ │ └── types │ │ │ ├── plugin.d.ts │ │ │ └── index.d.ts │ ├── acorn │ │ └── bin │ │ │ ├── acorn │ │ │ └── run_test262.js │ ├── mime │ │ ├── .travis.yml │ │ ├── lite.js │ │ ├── index.js │ │ ├── cli.js │ │ ├── CONTRIBUTING.md │ │ └── .github │ │ │ ├── ISSUE_TEMPLATE.md │ │ │ └── PULL_REQUEST_TEMPLATE.md │ ├── pump │ │ └── .travis.yml │ ├── ajv │ │ ├── lib │ │ │ ├── compile │ │ │ │ ├── equal.js │ │ │ │ ├── schema_obj.js │ │ │ │ ├── ucs2length.js │ │ │ │ └── error_classes.js │ │ │ ├── dotjs │ │ │ │ ├── README.md │ │ │ │ └── comment.js │ │ │ ├── dot │ │ │ │ ├── const.jst │ │ │ │ ├── comment.jst │ │ │ │ ├── _limitItems.jst │ │ │ │ ├── _limitLength.jst │ │ │ │ ├── _limitProperties.jst │ │ │ │ ├── pattern.jst │ │ │ │ ├── enum.jst │ │ │ │ ├── multipleOf.jst │ │ │ │ ├── allOf.jst │ │ │ │ └── defaults.def │ │ │ ├── cache.js │ │ │ └── refs │ │ │ │ └── data.json │ │ ├── scripts │ │ │ ├── .eslintrc.yml │ │ │ ├── prepare-tests │ │ │ ├── info │ │ │ ├── travis-gh-pages │ │ │ └── publish-built-version │ │ └── .tonic_example.js │ ├── util │ │ ├── support │ │ │ ├── isBuffer.js │ │ │ └── isBufferBrowser.js │ │ └── README.md │ ├── @vue │ │ ├── component-compiler-utils │ │ │ ├── .prettierrc.js │ │ │ ├── lib │ │ │ │ ├── stylePlugins │ │ │ │ │ └── trim.ts │ │ │ │ ├── templateCompilerModules │ │ │ │ │ └── utils.ts │ │ │ │ └── index.ts │ │ │ └── .circleci │ │ │ │ └── config.yml │ │ └── babel-preset-app │ │ │ └── polyfillsPlugin.js │ ├── rc │ │ ├── node_modules │ │ │ └── minimist │ │ │ │ ├── example │ │ │ │ └── parse.js │ │ │ │ ├── .travis.yml │ │ │ │ └── test │ │ │ │ ├── whitespace.js │ │ │ │ ├── parse_modified.js │ │ │ │ ├── stop_early.js │ │ │ │ ├── kv_short.js │ │ │ │ ├── dotted.js │ │ │ │ ├── all_bool.js │ │ │ │ ├── long.js │ │ │ │ └── default_bool.js │ │ ├── cli.js │ │ ├── browser.js │ │ ├── test │ │ │ └── ini.js │ │ └── LICENSE.APACHE2 │ ├── uuid │ │ ├── v3.js │ │ ├── v5.js │ │ ├── index.js │ │ ├── AUTHORS │ │ ├── lib │ │ │ ├── rng.js │ │ │ ├── md5.js │ │ │ ├── sha1.js │ │ │ └── bytesToUuid.js │ │ └── v4.js │ ├── csso │ │ ├── lib │ │ │ ├── compressor │ │ │ │ ├── clean │ │ │ │ │ ├── Comment.js │ │ │ │ │ ├── Declaration.js │ │ │ │ │ ├── Identifier.js │ │ │ │ │ ├── Space.js │ │ │ │ │ └── index.js │ │ │ │ ├── compress │ │ │ │ │ ├── String.js │ │ │ │ │ ├── Atrule.js │ │ │ │ │ ├── Value.js │ │ │ │ │ ├── Number.js │ │ │ │ │ ├── property │ │ │ │ │ │ └── font-weight.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── atrule │ │ │ │ │ │ └── keyframes.js │ │ │ │ └── restructure │ │ │ │ │ └── prepare │ │ │ │ │ └── createDeclarationIndexer.js │ │ │ └── utils │ │ │ │ └── clone.js │ │ └── bin │ │ │ └── csso │ ├── base │ │ └── node_modules │ │ │ ├── isobject │ │ │ ├── index.d.ts │ │ │ └── index.js │ │ │ ├── is-descriptor │ │ │ └── index.js │ │ │ └── define-property │ │ │ └── index.js │ ├── atob │ │ ├── bin │ │ │ └── atob.js │ │ ├── node-atob.js │ │ ├── test.js │ │ └── bower.json │ ├── has │ │ ├── src │ │ │ └── index.js │ │ ├── README.md │ │ └── test │ │ │ └── index.js │ ├── mz │ │ ├── child_process.js │ │ ├── crypto.js │ │ ├── index.js │ │ ├── zlib.js │ │ └── dns.js │ ├── uniq │ │ ├── .npmignore │ │ └── test │ │ │ └── test.js │ ├── when │ │ ├── monitor │ │ │ ├── README.md │ │ │ └── console.js │ │ ├── es6-shim │ │ │ ├── README.md │ │ │ └── Promise.browserify-es6.js │ │ ├── node │ │ │ └── function.js │ │ ├── unfold.js │ │ ├── lib │ │ │ ├── Promise.js │ │ │ ├── decorators │ │ │ │ ├── inspect.js │ │ │ │ ├── progress.js │ │ │ │ └── fold.js │ │ │ ├── TimeoutError.js │ │ │ ├── liftAll.js │ │ │ └── state.js │ │ ├── monitor.js │ │ ├── delay.js │ │ └── timeout.js │ ├── ret │ │ └── lib │ │ │ ├── types.js │ │ │ └── positions.js │ ├── ws │ │ ├── index.js │ │ └── lib │ │ │ ├── constants.js │ │ │ └── validation.js │ ├── joi │ │ ├── CHANGELOG.md │ │ └── lib │ │ │ └── schemas.js │ ├── urix │ │ ├── index.js │ │ ├── .jshintrc │ │ └── readme.md │ ├── pako │ │ └── index.js │ ├── depd │ │ └── lib │ │ │ └── compat │ │ │ └── event-listener-count.js │ ├── ylru │ │ └── History.md │ ├── clap │ │ ├── README.md │ │ └── node_modules │ │ │ └── supports-color │ │ │ └── readme.md │ ├── y18n │ │ ├── LICENSE │ │ └── CHANGELOG.md │ ├── glob │ │ └── LICENSE │ ├── ini │ │ └── LICENSE │ ├── once │ │ └── LICENSE │ ├── ssri │ │ └── LICENSE.md │ └── vary │ │ └── HISTORY.md └── docs │ ├── .vuepress │ └── config.js │ └── README.md ├── assets ├── logo │ ├── logo.png │ ├── logo.psd │ └── favicon.psb └── features │ └── features.png ├── .gitmodules ├── .gitignore ├── .travis.yml ├── requirements.txt ├── maint └── run_autopep8.sh └── ROADMAP.md /fastweb/command/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/setting/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/spec/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/test/test_mongo.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/web/handlers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/component/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/component/rpc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/task/some_tasks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/web/some_tasks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/command/service/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/test/some_tasks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/nopt/.npmignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/test/service_handlers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_sync/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/service/service_handlers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/web/fastweb_thrift_async/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/he: -------------------------------------------------------------------------------- 1 | ../he/bin/he -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/rc: -------------------------------------------------------------------------------- 1 | ../rc/cli.js -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_async/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_sync/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_async/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/csso: -------------------------------------------------------------------------------- 1 | ../csso/bin/csso -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/errno: -------------------------------------------------------------------------------- 1 | ../errno/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/is-ci: -------------------------------------------------------------------------------- 1 | ../is-ci/bin.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/mime: -------------------------------------------------------------------------------- 1 | ../mime/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/svgo: -------------------------------------------------------------------------------- 1 | ../svgo/bin/svgo -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/uuid: -------------------------------------------------------------------------------- 1 | ../uuid/bin/uuid -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/acorn: -------------------------------------------------------------------------------- 1 | ../acorn/bin/acorn -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/atob: -------------------------------------------------------------------------------- 1 | ../atob/bin/atob.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/hulk: -------------------------------------------------------------------------------- 1 | ../hogan.js/bin/hulk -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/jsesc: -------------------------------------------------------------------------------- 1 | ../jsesc/bin/jsesc -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/json5: -------------------------------------------------------------------------------- 1 | ../json5/lib/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/nopt: -------------------------------------------------------------------------------- 1 | ../nopt/bin/nopt.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../rimraf/bin.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/sha.js: -------------------------------------------------------------------------------- 1 | ../sha.js/bin.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/which: -------------------------------------------------------------------------------- 1 | ../which/bin/which -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/prr/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/url/.npmignore: -------------------------------------------------------------------------------- 1 | test-url.js 2 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/cssesc: -------------------------------------------------------------------------------- 1 | ../cssesc/bin/cssesc -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/envify: -------------------------------------------------------------------------------- 1 | ../envify/bin/envify -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/stylus: -------------------------------------------------------------------------------- 1 | ../stylus/bin/stylus -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/topo/.npmignore: -------------------------------------------------------------------------------- 1 | * 2 | !lib/** 3 | -------------------------------------------------------------------------------- /examples/service/handlers/__init__.py: -------------------------------------------------------------------------------- 1 | """generate from fasthrift""" -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/babylon: -------------------------------------------------------------------------------- 1 | ../babylon/bin/babylon.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/browserslist: -------------------------------------------------------------------------------- 1 | ../browserslist/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/esparse: -------------------------------------------------------------------------------- 1 | ../esprima/bin/esparse.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/js-yaml: -------------------------------------------------------------------------------- 1 | ../js-yaml/bin/js-yaml.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/loose-envify: -------------------------------------------------------------------------------- 1 | ../loose-envify/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/prettier: -------------------------------------------------------------------------------- 1 | ../prettier/bin-prettier.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/uglifyjs: -------------------------------------------------------------------------------- 1 | ../uglify-js/bin/uglifyjs -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/vuepress: -------------------------------------------------------------------------------- 1 | ../vuepress/bin/vuepress.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/webpack: -------------------------------------------------------------------------------- 1 | ../webpack/bin/webpack.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/esvalidate: -------------------------------------------------------------------------------- 1 | ../esprima/bin/esvalidate.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/html-minifier: -------------------------------------------------------------------------------- 1 | ../html-minifier/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/regjsparser: -------------------------------------------------------------------------------- 1 | ../regjsparser/bin/parser -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/webpack-serve: -------------------------------------------------------------------------------- 1 | ../webpack-serve/cli.js -------------------------------------------------------------------------------- /fastweb/util/option.py: -------------------------------------------------------------------------------- 1 | from fastweb.accesspoint import options, define -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/autoprefixer: -------------------------------------------------------------------------------- 1 | ../autoprefixer/bin/autoprefixer -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/markdown-it: -------------------------------------------------------------------------------- 1 | ../markdown-it/bin/markdown-it.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/miller-rabin: -------------------------------------------------------------------------------- 1 | ../miller-rabin/bin/miller-rabin -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/hoek/.npmignore: -------------------------------------------------------------------------------- 1 | * 2 | !lib/** 3 | !.npmignore 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/.nyc_output/1f2a0db5a6d6559149db56d397f47cfc.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/.bin/js-yaml: -------------------------------------------------------------------------------- 1 | ../js-yaml/bin/js-yaml.js -------------------------------------------------------------------------------- /fastweb/test/config/config.ini: -------------------------------------------------------------------------------- 1 | [default_config] 2 | name=xxxxx 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/.bin/import-local-fixture: -------------------------------------------------------------------------------- 1 | ../import-local/fixtures/cli.js -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --reporter spec 2 | --timeout 20 3 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/only/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /assets/logo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CYang828/fastweb/HEAD/assets/logo/logo.png -------------------------------------------------------------------------------- /assets/logo/logo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CYang828/fastweb/HEAD/assets/logo/logo.psd -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/@xtuc/long/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./src/long"); 2 | -------------------------------------------------------------------------------- /assets/logo/favicon.psb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CYang828/fastweb/HEAD/assets/logo/favicon.psb -------------------------------------------------------------------------------- /fastweb/test/idls/HelloService.thrift: -------------------------------------------------------------------------------- 1 | service HelloService { 2 | void sayHello() 3 | } 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/koa/node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /assets/features/features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CYang828/fastweb/HEAD/assets/features/features.png -------------------------------------------------------------------------------- /examples/service/idls/HelloService.thrift: -------------------------------------------------------------------------------- 1 | service HelloService { 2 | string sayHello() 3 | } 4 | 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/d/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /node_modules 3 | /npm-debug.log 4 | /.lintcache 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/nan/include_dirs.js: -------------------------------------------------------------------------------- 1 | console.log(require('path').relative('.', __dirname)); 2 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/bin/svgo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('../lib/svgo/coa').run(); 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/runtime/directives/index.js: -------------------------------------------------------------------------------- 1 | export default { 2 | } 3 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require(process.env.COVER? './lib-cov' : './lib'); 2 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_async/HelloService/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['ttypes', 'constants', 'HelloService'] 2 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_sync/HelloService/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['ttypes', 'constants', 'HelloService'] 2 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_async/HelloService/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['ttypes', 'constants', 'HelloService'] 2 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_sync/HelloService/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['ttypes', 'constants', 'HelloService'] 2 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/acorn/bin/acorn: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | require('./_acorn.js'); 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/koa/node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/entry-compiler.js: -------------------------------------------------------------------------------- 1 | export { compile } from 'weex/compiler/index' 2 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "fastweb-docs"] 2 | path = fastweb-docs 3 | url = https://github.com/BSlience/fastweb-docs.git 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "6" 5 | - "8" 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/only/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2010-01-03 3 | ================== 4 | 5 | * Initial release 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/pump/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | script: "npm test" 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/compile/equal.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('fast-deep-equal'); 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/scripts/.eslintrc.yml: -------------------------------------------------------------------------------- 1 | rules: 2 | no-console: 0 3 | no-empty: [2, allowEmptyCatch: true] 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'toml' { 2 | export function parse(input: string): any; 3 | } 4 | -------------------------------------------------------------------------------- /examples/web/fastweb_thrift_async/HelloService/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['ttypes', 'constants', 'HelloService', 'HelloService1'] 2 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | node_modules/ 4 | !node_modules/coa*.js 5 | lib-cov/ 6 | html-report/ 7 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/bad.toml: -------------------------------------------------------------------------------- 1 | [something] 2 | awesome = "this is" 3 | 4 | [something.awesome] 5 | this = "isn't" 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/util/support/isBuffer.js: -------------------------------------------------------------------------------- 1 | module.exports = function isBuffer(arg) { 2 | return arg instanceof Buffer; 3 | } 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/@vue/component-compiler-utils/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | semi: false, 3 | singleQuote: true 4 | } 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/d/.lint: -------------------------------------------------------------------------------- 1 | @root 2 | 3 | module 4 | 5 | tabs 6 | indent 2 7 | maxlen 100 8 | 9 | ass 10 | nomen 11 | plusplus 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - "4.1" 5 | - "4.0" 6 | - "0.12" 7 | - "0.10" 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/components/index.js: -------------------------------------------------------------------------------- 1 | import KeepAlive from './keep-alive' 2 | 3 | export default { 4 | KeepAlive 5 | } 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/entry-runtime.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import Vue from './runtime/index' 4 | 5 | export default Vue 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/lite.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Mime = require('./Mime'); 4 | module.exports = new Mime(require('./types/standard')); 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/only/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uuid/v3.js: -------------------------------------------------------------------------------- 1 | var v35 = require('./lib/v35.js'); 2 | var md5 = require('./lib/md5'); 3 | 4 | module.exports = v35('v3', 0x30, md5); -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/compiler/directives/index.js: -------------------------------------------------------------------------------- 1 | import model from './model' 2 | 3 | export default { 4 | model 5 | } 6 | -------------------------------------------------------------------------------- /examples/service/call_service.ini: -------------------------------------------------------------------------------- 1 | [tftrpc:test_service] 2 | host = localhost 3 | port = 7777 4 | thrift_module = fastweb_thrift_sync.HelloService.HelloService 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/lib/compressor/clean/Comment.js: -------------------------------------------------------------------------------- 1 | module.exports = function cleanComment(data, item, list) { 2 | list.remove(item); 3 | }; 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/cli.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var rc = require('./index') 3 | 4 | console.log(JSON.stringify(rc(process.argv[2]), false, 2)) 5 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uuid/v5.js: -------------------------------------------------------------------------------- 1 | var v35 = require('./lib/v35.js'); 2 | var sha1 = require('./lib/sha1'); 3 | module.exports = v35('v5', 0x50, sha1); 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var yaml = require('./lib/js-yaml.js'); 5 | 6 | 7 | module.exports = yaml; 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/coverage/sort-arrow-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CYang828/fastweb/HEAD/fastweb-docs-1/node_modules/coa/coverage/sort-arrow-sprite.png -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/base/node_modules/isobject/index.d.ts: -------------------------------------------------------------------------------- 1 | export = isObject; 2 | 3 | declare function isObject(val: any): boolean; 4 | 5 | declare namespace isObject {} 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/koa/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | yarn.lock 8 | coverage 9 | bower.json 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - "0.10" 5 | - "0.11" 6 | 7 | matrix: 8 | allow_failures: 9 | - node_js: 0.11 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Mime = require('./Mime'); 4 | module.exports = new Mime(require('./types/standard'), require('./types/other')); 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | build/ 3 | dist/ 4 | fastweb.egg-info/ 5 | *.log* 6 | *.swp 7 | *.un~ 8 | .eggs/ 9 | .idea/ 10 | *.rdb 11 | docs/_build 12 | .cache 13 | *.bak 14 | clean.sh 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/atob/bin/atob.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var atob = require('../node-atob'); 5 | var str = process.argv[2]; 6 | console.log(atob(str)); 7 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/has/src/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var bind = require('function-bind'); 4 | 5 | module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mz/child_process.js: -------------------------------------------------------------------------------- 1 | 2 | require('thenify-all').withCallback( 3 | require('child_process'), 4 | exports, [ 5 | 'exec', 6 | 'execFile', 7 | ] 8 | ) 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uuid/index.js: -------------------------------------------------------------------------------- 1 | var v1 = require('./v1'); 2 | var v4 = require('./v4'); 3 | 4 | var uuid = v4; 5 | uuid.v1 = v1; 6 | uuid.v4 = v4; 7 | 8 | module.exports = uuid; 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/vdom/modules/index.js: -------------------------------------------------------------------------------- 1 | import directives from './directives' 2 | import ref from './ref' 3 | 4 | export default [ 5 | ref, 6 | directives 7 | ] 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/runtime/directives/index.js: -------------------------------------------------------------------------------- 1 | import model from './model' 2 | import show from './show' 3 | 4 | export default { 5 | model, 6 | show 7 | } 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/server/directives/index.js: -------------------------------------------------------------------------------- 1 | import show from './show' 2 | import model from './model' 3 | 4 | export default { 5 | show, 6 | model 7 | } 8 | -------------------------------------------------------------------------------- /fastweb/test/service_handlers/hello.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | 4 | class HelloServiceHandler(object): 5 | 6 | def sayHello(self): 7 | print('sayHello') 8 | return 'hello' 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/atob/node-atob.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | function atob(str) { 4 | return Buffer.from(str, 'base64').toString('binary'); 5 | } 6 | 7 | module.exports = atob.atob = atob; 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/multiline_strings.toml: -------------------------------------------------------------------------------- 1 | # The following strings are byte-for-byte equivalent: 2 | key1 = "One\nTwo" 3 | key2 = """One\nTwo""" 4 | key3 = """ 5 | One 6 | Two""" 7 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/prr/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" 5 | branches: 6 | only: 7 | - master 8 | notifications: 9 | email: 10 | - rod@vagg.org -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/browser.js: -------------------------------------------------------------------------------- 1 | 2 | // when this is loaded into the browser, 3 | // just use the defaults... 4 | 5 | module.exports = function (name, defaults) { 6 | return defaults 7 | } 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/.npmignore: -------------------------------------------------------------------------------- 1 | docs 2 | examples 3 | test 4 | lib-cov 5 | .editorconfig 6 | .jshintignore 7 | .jshintrc 8 | .travis.yml 9 | lcov.info 10 | logo.svg 11 | CHANGELOG.MD 12 | -------------------------------------------------------------------------------- /fastweb/script.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | """脚本层模块""" 4 | 5 | from fastweb.components import SyncComponents 6 | 7 | 8 | class Script(SyncComponents): 9 | """脚本操作基类""" 10 | 11 | pass 12 | -------------------------------------------------------------------------------- /examples/service/component.ini: -------------------------------------------------------------------------------- 1 | [mysql:test_mysql] 2 | host = localhost 3 | port = 3306 4 | user = root 5 | password = 1a2s3dqwe 6 | db = mysql 7 | timeout = 5 8 | charset=utf8 9 | size=5 10 | awake = 300 -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dotjs/README.md: -------------------------------------------------------------------------------- 1 | These files are compiled dot templates from dot folder. 2 | 3 | Do NOT edit them directly, edit the templates and run `npm run build` from main ajv folder. 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uniq/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules/* -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/tests/h.js: -------------------------------------------------------------------------------- 1 | var argv = process.argv.slice(2); 2 | require('..').Cmd() 3 | .name('bla') 4 | .title('Bla bla bla') 5 | .helpful() 6 | .run(argv.length? argv : ['-h']); 7 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/vdom/helpers/is-async-placeholder.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export function isAsyncPlaceholder (node: VNode): boolean { 4 | return node.isComment && node.asyncFactory 5 | } 6 | -------------------------------------------------------------------------------- /examples/service/tservice.ini: -------------------------------------------------------------------------------- 1 | ; fastthrift gen template 2 | 3 | [service:service_name] 4 | port = 5 | thrift_module = fastweb_thrift_async.HelloService.HelloService 6 | handlers = 7 | active = yes 8 | 9 | 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mz/crypto.js: -------------------------------------------------------------------------------- 1 | 2 | require('thenify-all').withCallback( 3 | require('crypto'), 4 | exports, [ 5 | 'pbkdf2', 6 | 'pseudoRandomBytes', 7 | 'randomBytes' 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/lib/compressor/clean/Declaration.js: -------------------------------------------------------------------------------- 1 | module.exports = function cleanDeclartion(node, item, list) { 2 | if (node.value.sequence.isEmpty()) { 3 | list.remove(item); 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/table_arrays_easy.toml: -------------------------------------------------------------------------------- 1 | [[products]] 2 | name = "Hammer" 3 | sku = 738594937 4 | 5 | [[products]] 6 | 7 | [[products]] 8 | name = "Nail" 9 | sku = 284758393 10 | color = "gray" 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uuid/AUTHORS: -------------------------------------------------------------------------------- 1 | Robert Kieffer 2 | Christoph Tavan 3 | AJ ONeal 4 | Vincent Voyer 5 | Roman Shtylman 6 | -------------------------------------------------------------------------------- /examples/web/some_tasks/add.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | 4 | class Add(object): 5 | 6 | def run(self, x, y): 7 | print('web') 8 | print(self) 9 | print((x+y)) 10 | return(x+y) 11 | 12 | 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/compile/schema_obj.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var util = require('./util'); 4 | 5 | module.exports = SchemaObject; 6 | 7 | function SchemaObject(obj) { 8 | util.copy(obj, this); 9 | } 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/src/index.coffee: -------------------------------------------------------------------------------- 1 | exports.Cmd = require('./cmd').Cmd 2 | exports.Opt = require('./cmd').Opt 3 | exports.Arg = require('./cmd').Arg 4 | exports.shell = require('./shell') 5 | exports.require = require; 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/multiline_literal_strings.toml: -------------------------------------------------------------------------------- 1 | regex2 = '''I [dw]on't need \d{2} apples''' 2 | lines = ''' 3 | The first newline is 4 | trimmed in raw strings. 5 | All other whitespace 6 | is preserved. 7 | ''' 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/when/monitor/README.md: -------------------------------------------------------------------------------- 1 | # Promise monitoring and debugging 2 | 3 | This dir contains experimental new promise monitoring and debugging utilities for when.js. See [the docs](../docs/api.md#debugging-promises). 4 | -------------------------------------------------------------------------------- /examples/service/service.ini: -------------------------------------------------------------------------------- 1 | [service:test_service] 2 | name = test_service 3 | port = 7777 4 | thrift_module = fastweb_thrift_sync.HelloService.HelloService 5 | handlers = service_handlers.hello.HelloServiceHandler 6 | active = yes 7 | 8 | 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | var mime = require('.'); 6 | var file = process.argv[2]; 7 | var type = mime.getType(file); 8 | 9 | process.stdout.write(type + '\n'); 10 | 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/compiler/directives/index.js: -------------------------------------------------------------------------------- 1 | import model from './model' 2 | import text from './text' 3 | import html from './html' 4 | 5 | export default { 6 | model, 7 | text, 8 | html 9 | } 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/runtime/components/index.js: -------------------------------------------------------------------------------- 1 | import Transition from './transition' 2 | import TransitionGroup from './transition-group' 3 | 4 | export default { 5 | Transition, 6 | TransitionGroup 7 | } 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/literal_strings.toml: -------------------------------------------------------------------------------- 1 | # What you see is what you get. 2 | winpath = 'C:\Users\nodejs\templates' 3 | winpath2 = '\\ServerX\admin$\system32\' 4 | quoted = 'Tom "Dubs" Preston-Werner' 5 | regex = '<\i\c*\s*>' 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/compiler/modules/index.js: -------------------------------------------------------------------------------- 1 | import klass from './class' 2 | import style from './style' 3 | import model from './model' 4 | 5 | export default [ 6 | klass, 7 | style, 8 | model 9 | ] 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/docs/.vuepress/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | themeConfig: { 3 | nav: [ 4 | { text: 'Home', link: '/' }, 5 | { text: 'Guide', link: '/guide/' }, 6 | { text: 'External', link: 'https://google.com' }, 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ret/lib/types.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | ROOT : 0, 3 | GROUP : 1, 4 | POSITION : 2, 5 | SET : 3, 6 | RANGE : 4, 7 | REPETITION : 5, 8 | REFERENCE : 6, 9 | CHAR : 7, 10 | }; 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/compiler/directives/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import on from './on' 4 | import bind from './bind' 5 | import { noop } from 'shared/util' 6 | 7 | export default { 8 | on, 9 | bind, 10 | cloak: noop 11 | } 12 | -------------------------------------------------------------------------------- /fastweb/test/config/task.ini: -------------------------------------------------------------------------------- 1 | [task:test_task] 2 | broker = amqp://guest:guest@localhost:5672// 3 | backend = redis://localhost/0 4 | task_class = some_tasks.add.Add 5 | queue = test_task_queue 6 | exchange = test_task_exchange 7 | routing_key = test_task_routing_key 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mz/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | fs: require('./fs'), 3 | dns: require('./dns'), 4 | zlib: require('./zlib'), 5 | crypto: require('./crypto'), 6 | readline: require('./readline'), 7 | child_process: require('./child_process') 8 | } 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/entry-compiler.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export { parseComponent } from 'sfc/parser' 4 | export { compile, compileToFunctions } from './compiler/index' 5 | export { ssrCompile, ssrCompileToFunctions } from './server/compiler' 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/entry-runtime-factory.js: -------------------------------------------------------------------------------- 1 | // this entry is built and wrapped with a factory function 2 | // used to generate a fresh copy of Vue for every Weex instance. 3 | 4 | import Vue from './runtime/index' 5 | 6 | exports.Vue = Vue 7 | -------------------------------------------------------------------------------- /fastweb/test/config/worker.ini: -------------------------------------------------------------------------------- 1 | [worker:test_task] 2 | broker = amqp://guest:guest@localhost:5672// 3 | backend = redis://localhost/0 4 | task_class = some_tasks.add.Add 5 | queue = test_task_queue 6 | exchange = test_task_exchange 7 | routing_key = test_task_routing_key 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/tests/api-h.js: -------------------------------------------------------------------------------- 1 | require('..').Cmd() 2 | .name('bla') 3 | .title('Bla bla bla') 4 | .helpful() 5 | .invoke({ help: true }) 6 | .then(function(res) { 7 | console.log(res); 8 | }) 9 | .done(); // Q.done() 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/util/support/isBufferBrowser.js: -------------------------------------------------------------------------------- 1 | module.exports = function isBuffer(arg) { 2 | return arg && typeof arg === 'object' 3 | && typeof arg.copy === 'function' 4 | && typeof arg.fill === 'function' 5 | && typeof arg.readUInt8 === 'function'; 6 | } -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/types/plugin.d.ts: -------------------------------------------------------------------------------- 1 | import { Vue as _Vue } from "./vue"; 2 | 3 | export type PluginFunction = (Vue: typeof _Vue, options?: T) => void; 4 | 5 | export interface PluginObject { 6 | install: PluginFunction; 7 | [key: string]: any; 8 | } 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mz/zlib.js: -------------------------------------------------------------------------------- 1 | 2 | require('thenify-all').withCallback( 3 | require('zlib'), 4 | exports, [ 5 | 'deflate', 6 | 'deflateRaw', 7 | 'gzip', 8 | 'gunzip', 9 | 'inflate', 10 | 'inflateRaw', 11 | 'unzip', 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/str.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | module.exports = new Type('tag:yaml.org,2002:str', { 6 | kind: 'scalar', 7 | construct: function (data) { return data !== null ? data : ''; } 8 | }); 9 | -------------------------------------------------------------------------------- /examples/web/task.ini: -------------------------------------------------------------------------------- 1 | [task:test_task] 2 | broker = amqp://guest:guest@localhost:5672// 3 | backend = redis://localhost/0 4 | amqp://guest:guest@localhost:5672// 5 | task_class = some_tasks.add.Add 6 | queue = test_task_queue 7 | exchange = test_task_exchange 8 | routing_key = test_task_routing_key 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/map.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | module.exports = new Type('tag:yaml.org,2002:map', { 6 | kind: 'mapping', 7 | construct: function (data) { return data !== null ? data : {}; } 8 | }); 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/seq.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | module.exports = new Type('tag:yaml.org,2002:seq', { 6 | kind: 'sequence', 7 | construct: function (data) { return data !== null ? data : []; } 8 | }); 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/runtime/text-node.js: -------------------------------------------------------------------------------- 1 | let latestNodeId = 1 2 | 3 | export default function TextNode (text) { 4 | this.instanceId = '' 5 | this.nodeId = latestNodeId++ 6 | this.parentNode = null 7 | this.nodeType = 3 8 | this.text = text 9 | } 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/lib/index.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.6.3 2 | exports.Cmd = require('./cmd').Cmd; 3 | 4 | exports.Opt = require('./cmd').Opt; 5 | 6 | exports.Arg = require('./cmd').Arg; 7 | 8 | exports.shell = require('./shell'); 9 | 10 | exports.require = require; 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/index.js: -------------------------------------------------------------------------------- 1 | var parser = require('./lib/parser'); 2 | var compiler = require('./lib/compiler'); 3 | 4 | module.exports = { 5 | parse: function(input) { 6 | var nodes = parser.parse(input.toString()); 7 | return compiler.compile(nodes); 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/server/modules/index.js: -------------------------------------------------------------------------------- 1 | import attrs from './attrs' 2 | import domProps from './dom-props' 3 | import klass from './class' 4 | import style from './style' 5 | 6 | export default [ 7 | attrs, 8 | domProps, 9 | klass, 10 | style 11 | ] 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/compiler/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { baseOptions } from './options' 4 | import { createCompiler } from 'compiler/index' 5 | 6 | const { compile, compileToFunctions } = createCompiler(baseOptions) 7 | 8 | export { compile, compileToFunctions } 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/runtime/components/index.js: -------------------------------------------------------------------------------- 1 | import Richtext from './richtext' 2 | import Transition from './transition' 3 | import TransitionGroup from './transition-group' 4 | 5 | export default { 6 | Richtext, 7 | Transition, 8 | TransitionGroup 9 | } 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/when/es6-shim/README.md: -------------------------------------------------------------------------------- 1 | # ES6 Promise shim 2 | 3 | Promise.js in this dir contains a complete ES6 Promise shim built on when.js that adds a global `Promise` in browser, AMD, Node, and other CommonJS environments. 4 | 5 | [Go to the full documentation](../docs/es6-promise-shim.md) -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/scripts/prepare-tests: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | set -e 4 | 5 | mkdir -p .browser 6 | 7 | find spec -type f -name '*.spec.js' | \ 8 | xargs -I {} sh -c \ 9 | 'export f="{}"; browserify $f -t require-globify -t brfs -x ajv -u buffer -o $(echo $f | sed -e "s/spec/.browser/");' 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uuid/lib/rng.js: -------------------------------------------------------------------------------- 1 | // Unique ID creation requires a high quality random # generator. In node.js 2 | // this is pretty straight-forward - we use the crypto API. 3 | 4 | var crypto = require('crypto'); 5 | 6 | module.exports = function nodeRNG() { 7 | return crypto.randomBytes(16); 8 | }; 9 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/compiler/parser/entity-decoder.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | let decoder 4 | 5 | export default { 6 | decode (html: string): string { 7 | decoder = decoder || document.createElement('div') 8 | decoder.innerHTML = html 9 | return decoder.textContent 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/compiler/directives/html.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { addProp } from 'compiler/helpers' 4 | 5 | export default function html (el: ASTElement, dir: ASTDirective) { 6 | if (dir.value) { 7 | addProp(el, 'innerHTML', `_s(${dir.value})`) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/compiler/directives/text.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { addProp } from 'compiler/helpers' 4 | 5 | export default function text (el: ASTElement, dir: ASTDirective) { 6 | if (dir.value) { 7 | addProp(el, 'textContent', `_s(${dir.value})`) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ws/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const WebSocket = require('./lib/websocket'); 4 | 5 | WebSocket.Server = require('./lib/websocket-server'); 6 | WebSocket.Receiver = require('./lib/receiver'); 7 | WebSocket.Sender = require('./lib/sender'); 8 | 9 | module.exports = WebSocket; 10 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | services: 2 | - mysql 3 | - mongodb 4 | - redis-server 5 | - rabbitmq 6 | language: python 7 | sudo: required 8 | cache: pip 9 | python: 10 | - '2.7' 11 | os: 12 | - 'linux' 13 | script: 14 | - python setup.py install 15 | - python fastweb/test/service_server.py & 16 | - pytest 17 | 18 | -------------------------------------------------------------------------------- /fastweb/test/some_tasks/add.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | import time 4 | 5 | 6 | class Add(object): 7 | 8 | def run(self, x, y): 9 | print('worker') 10 | print('啊啊啊啊啊啊啊啊') 11 | print(self) 12 | print((x+y)) 13 | time.sleep(3) 14 | return(x+y) 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/global-api/mixin.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { mergeOptions } from '../util/index' 4 | 5 | export function initMixin (Vue: GlobalAPI) { 6 | Vue.mixin = function (mixin: Object) { 7 | this.options = mergeOptions(this.options, mixin) 8 | return this 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/only/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(obj, keys){ 3 | obj = obj || {}; 4 | if ('string' == typeof keys) keys = keys.split(/ +/); 5 | return keys.reduce(function(ret, key){ 6 | if (null == obj[key]) return ret; 7 | ret[key] = obj[key]; 8 | return ret; 9 | }, {}); 10 | }; 11 | -------------------------------------------------------------------------------- /examples/task/task_worker.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | from fastweb.loader import app 4 | from fastweb.task import start_task_worker 5 | 6 | 7 | if __name__ == '__main__': 8 | app.load_recorder('task.log', system_level='DEBUG') 9 | app.load_component(layout='task', backend='ini', path='task.ini') 10 | start_task_worker() 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/koa/node_modules/debug/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: node_js 4 | 5 | node_js: 6 | - "4" 7 | - "6" 8 | - "8" 9 | 10 | install: 11 | - make install 12 | 13 | script: 14 | - make lint 15 | - make test 16 | 17 | matrix: 18 | include: 19 | - node_js: '8' 20 | env: BROWSER=1 21 | -------------------------------------------------------------------------------- /examples/service/handlers/HelloService.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | """generate by fasthrift""" 4 | 5 | 6 | from fastweb.service import ABLogic 7 | 8 | 9 | class HelloServiceHandler(ABLogic): 10 | 11 | def sayHello(self): 12 | import pdb; pdb.set_trace() 13 | print('hello') 14 | pass 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/koa/node_modules/debug/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true 5 | }, 6 | "globals": { 7 | "chrome": true 8 | }, 9 | "rules": { 10 | "no-console": 0, 11 | "no-empty": [1, { "allowEmptyCatch": true }] 12 | }, 13 | "extends": "eslint:recommended" 14 | } 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mz/dns.js: -------------------------------------------------------------------------------- 1 | 2 | require('thenify-all').withCallback( 3 | require('dns'), 4 | exports, [ 5 | 'lookup', 6 | 'resolve', 7 | 'resolve4', 8 | 'resolve6', 9 | 'resolveCname', 10 | 'resolveMx', 11 | 'resolveNs', 12 | 'resolveSrv', 13 | 'resolveTxt', 14 | 'reverse' 15 | ] 16 | ) 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: [123] }); 9 | }); 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/runtime/components/transition.js: -------------------------------------------------------------------------------- 1 | // reuse same transition component logic from web 2 | export { 3 | transitionProps, 4 | extractTransitionData 5 | } from 'web/runtime/components/transition' 6 | 7 | import Transition from 'web/runtime/components/transition' 8 | 9 | export default Transition 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/runtime/modules/index.js: -------------------------------------------------------------------------------- 1 | import attrs from './attrs' 2 | import klass from './class' 3 | import events from './events' 4 | import style from './style' 5 | import transition from './transition' 6 | 7 | export default [ 8 | attrs, 9 | klass, 10 | events, 11 | style, 12 | transition 13 | ] 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/d/test/auto-bind.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var d = require('../'); 4 | 5 | module.exports = function (t, a) { 6 | var o = Object.defineProperties({}, t({ 7 | bar: d(function () { return this === o; }), 8 | bar2: d(function () { return this; }) 9 | })); 10 | 11 | a.deep([(o.bar)(), (o.bar2)()], [true, o]); 12 | }; 13 | -------------------------------------------------------------------------------- /fastweb/__init__.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | """FastWeb is a Python fast-building web frame refered by Tornado,Celery,Thrift""" 4 | 5 | # :copyright: (c) 2016-2017 Bslience. All rights reserved. 6 | 7 | 8 | 9 | from fastweb.loader import app 10 | from fastweb.accesspoint import options 11 | 12 | 13 | __all__ = ['options', 'app'] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/lib/compressor/compress/String.js: -------------------------------------------------------------------------------- 1 | module.exports = function(node) { 2 | var value = node.value; 3 | 4 | // remove escaped \n, i.e. 5 | // .a { content: "foo\ 6 | // bar"} 7 | // -> 8 | // .a { content: "foobar" } 9 | value = value.replace(/\\\n/g, ''); 10 | 11 | node.value = value; 12 | }; 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/has/README.md: -------------------------------------------------------------------------------- 1 | # has 2 | 3 | > Object.prototype.hasOwnProperty.call shortcut 4 | 5 | ## Installation 6 | 7 | ```sh 8 | npm install --save has 9 | ``` 10 | 11 | ## Usage 12 | 13 | ```js 14 | var has = require('has'); 15 | 16 | has({}, 'hasOwnProperty'); // false 17 | has(Object.prototype, 'hasOwnProperty'); // true 18 | ``` 19 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/merge.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | function resolveYamlMerge(data) { 6 | return data === '<<' || data === null; 7 | } 8 | 9 | module.exports = new Type('tag:yaml.org,2002:merge', { 10 | kind: 'scalar', 11 | resolve: resolveYamlMerge 12 | }); 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/util/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from 'shared/util' 4 | export * from './lang' 5 | export * from './env' 6 | export * from './options' 7 | export * from './debug' 8 | export * from './props' 9 | export * from './error' 10 | export * from './next-tick' 11 | export { defineReactive } from '../observer/index' 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/koa/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process === 'undefined' || process.type === 'renderer') { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/compiler/modules/index.js: -------------------------------------------------------------------------------- 1 | import klass from './class' 2 | import style from './style' 3 | import props from './props' 4 | import append from './append' 5 | import recycleList from './recycle-list/index' 6 | 7 | export default [ 8 | recycleList, 9 | klass, 10 | style, 11 | props, 12 | append 13 | ] 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/instance/render-helpers/resolve-filter.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { identity, resolveAsset } from 'core/util/index' 4 | 5 | /** 6 | * Runtime helper for resolving filters 7 | */ 8 | export function resolveFilter (id: string): Function { 9 | return resolveAsset(this.$options, 'filters', id, true) || identity 10 | } 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/vdom/helpers/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from './merge-hook' 4 | export * from './extract-props' 5 | export * from './update-listeners' 6 | export * from './normalize-children' 7 | export * from './resolve-async-component' 8 | export * from './get-first-component-child' 9 | export * from './is-async-placeholder' 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ws/lib/constants.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const safeBuffer = require('safe-buffer'); 4 | 5 | const Buffer = safeBuffer.Buffer; 6 | 7 | exports.BINARY_TYPES = ['nodebuffer', 'arraybuffer', 'fragments']; 8 | exports.GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'; 9 | exports.EMPTY_BUFFER = Buffer.alloc(0); 10 | exports.NOOP = () => {}; 11 | -------------------------------------------------------------------------------- /fastweb/test/config/component.ini: -------------------------------------------------------------------------------- 1 | [mysql:test_mysql] 2 | host = localhost 3 | port = 3306 4 | user = root 5 | password = 6 | db = mysql 7 | timeout = 5 8 | charset=utf8 9 | size=5 10 | awake = 300 11 | 12 | [redis:test_redis] 13 | host = localhost 14 | port = 6379 15 | db = 1 16 | 17 | [mongo:test_mongo] 18 | host = localhost 19 | port = 27017 20 | timeout = 10 21 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dot/const.jst: -------------------------------------------------------------------------------- 1 | {{# def.definitions }} 2 | {{# def.errors }} 3 | {{# def.setupKeyword }} 4 | {{# def.$data }} 5 | 6 | {{? !$isData }} 7 | var schema{{=$lvl}} = validate.schema{{=$schemaPath}}; 8 | {{?}} 9 | var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}}); 10 | {{# def.checkError:'const' }} 11 | {{? $breakOnError }} else { {{?}} 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/scripts/info: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | var fs = require('fs'); 6 | var name = process.argv[2] || '.'; 7 | var property = process.argv[3] || 'version'; 8 | if (name != '.') name = 'node_modules/' + name; 9 | var json = JSON.parse(fs.readFileSync(name + '/package.json', 'utf8')); 10 | console.log(json[property]); 11 | -------------------------------------------------------------------------------- /fastweb/test/service_server.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | from fastweb.loader import app 4 | from fastweb.service import start_service_server 5 | 6 | 7 | if __name__ == '__main__': 8 | app.load_recorder('service.log', system_level='DEBUG') 9 | app.load_component(layout='service', backend='ini', path='fastweb/test/config/service.ini') 10 | start_service_server() 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/src/shell.coffee: -------------------------------------------------------------------------------- 1 | exports.unescape = (w) -> 2 | w = if w.charAt(0) is '"' 3 | w.replace(/^"|([^\\])"$/g, '$1') 4 | else 5 | w.replace(/\\ /g, ' ') 6 | w.replace(/\\("|'|\$|`|\\)/g, '$1') 7 | 8 | exports.escape = (w) -> 9 | w = w.replace(/(["'$`\\])/g,'\\$1') 10 | if w.match(/\s+/) then '"' + w + '"' else w 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/@vue/component-compiler-utils/lib/stylePlugins/trim.ts: -------------------------------------------------------------------------------- 1 | import { Root } from 'postcss' 2 | import * as postcss from 'postcss' 3 | 4 | export default postcss.plugin('trim', () => (css: Root) => { 5 | css.walk(({ type, raws }) => { 6 | if (type === 'rule' || type === 'atrule') { 7 | raws.before = raws.after = '\n' 8 | } 9 | }) 10 | }) 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/lib/compressor/compress/Atrule.js: -------------------------------------------------------------------------------- 1 | var resolveKeyword = require('../../utils/names.js').keyword; 2 | var compressKeyframes = require('./atrule/keyframes.js'); 3 | 4 | module.exports = function(node) { 5 | // compress @keyframe selectors 6 | if (resolveKeyword(node.name).name === 'keyframes') { 7 | compressKeyframes(node); 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/d/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/ 2 | language: node_js 3 | node_js: 4 | - 0.12 5 | - 4 6 | - 5 7 | 8 | before_install: 9 | - mkdir node_modules; ln -s ../ node_modules/d 10 | 11 | notifications: 12 | email: 13 | - medikoo+d@medikoo.com 14 | 15 | script: "npm test && npm run lint" 16 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/joi/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Breaking changes are documented using GitHub issues, see [issues labeled "release notes"](https://github.com/hapijs/joi/issues?q=is%3Aissue+label%3A%22release+notes%22). 2 | 3 | If you want changes of a specific minor or patch release, you can browse the [GitHub milestones](https://github.com/hapijs/joi/milestones?state=closed&direction=asc&sort=due_date). 4 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/server/compiler.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { baseOptions } from '../compiler/options' 4 | import { createCompiler } from 'server/optimizing-compiler/index' 5 | 6 | const { compile, compileToFunctions } = createCompiler(baseOptions) 7 | 8 | export { 9 | compile as ssrCompile, 10 | compileToFunctions as ssrCompileToFunctions 11 | } 12 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | six 2 | tornado==5.0.2 3 | celery==5.2.2 4 | thrift==0.11.0 5 | requests>=2.20.0 6 | redis==2.10.6 7 | pymysql==0.8.1 8 | pymongo==3.6.1 9 | termcolor==1.1.0 10 | configparser==3.5.0 11 | tornado_mysql==0.5.1 12 | autopep8==1.3.5 13 | docopt==0.6.2 14 | ply==3.11 15 | pytest==3.6.2 16 | kombu==4.2.1 17 | zeep==3.0.0 18 | tornadis==0.8.1 19 | motor==1.2.2 20 | flower==0.9.2 21 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/base/node_modules/isobject/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * isobject 3 | * 4 | * Copyright (c) 2014-2017, Jon Schlinkert. 5 | * Released under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | module.exports = function isObject(val) { 11 | return val != null && typeof val === 'object' && Array.isArray(val) === false; 12 | }; 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/server/modules/class.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { escape } from '../util' 4 | import { genClassForVnode } from 'web/util/index' 5 | 6 | export default function renderClass (node: VNodeWithData): ?string { 7 | const classList = genClassForVnode(node) 8 | if (classList !== '') { 9 | return ` class="${escape(classList)}"` 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/bin/csso: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var cli = require('../lib/cli.js'); 4 | 5 | try { 6 | cli.run(); 7 | } catch (e) { 8 | // output user frendly message if cli error 9 | if (cli.isCliError(e)) { 10 | console.error(e.message || e); 11 | process.exit(2); 12 | } 13 | 14 | // otherwise re-throw exception 15 | throw e; 16 | } 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/benchmark.js: -------------------------------------------------------------------------------- 1 | var toml = require('./index'); 2 | var fs = require('fs'); 3 | var data = fs.readFileSync('./test/example.toml', 'utf8'); 4 | 5 | var iterations = 1000; 6 | 7 | var start = new Date(); 8 | for(var i = 0; i < iterations; i++) { 9 | toml.parse(data); 10 | } 11 | var end = new Date(); 12 | console.log("%s iterations in %sms", iterations, end - start); 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/multiline_eat_whitespace.toml: -------------------------------------------------------------------------------- 1 | # The following strings are byte-for-byte equivalent: 2 | key1 = "The quick brown fox jumps over the lazy dog." 3 | 4 | key2 = """ 5 | The quick brown \ 6 | 7 | 8 | fox jumps over \ 9 | the lazy dog.""" 10 | 11 | key3 = """\ 12 | The quick brown \ 13 | fox jumps over \ 14 | the lazy dog.\ 15 | """ 16 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/urix/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Simon Lydell 2 | // X11 (“MIT”) Licensed. (See LICENSE.) 3 | 4 | var path = require("path") 5 | 6 | "use strict" 7 | 8 | function urix(aPath) { 9 | if (path.sep === "\\") { 10 | return aPath 11 | .replace(/\\/g, "/") 12 | .replace(/^[a-z]:\/?/i, "/") 13 | } 14 | return aPath 15 | } 16 | 17 | module.exports = urix 18 | -------------------------------------------------------------------------------- /examples/task/some_tasks/add.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | import time 4 | 5 | 6 | class Add(object): 7 | 8 | def run(self, x, y): 9 | print('worker') 10 | print('啊啊啊啊啊啊啊啊') 11 | print(self) 12 | print((x+y)) 13 | print((self.test)) 14 | print((self.test.query('select * from mysql.user;'))) 15 | time.sleep(3) 16 | return x+y 17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/task/task.ini: -------------------------------------------------------------------------------- 1 | [worker:test_task] 2 | broker = amqp://guest:guest@localhost:5672// 3 | backend = redis://localhost/0 4 | task_class = some_tasks.add.Add 5 | queue = test_task_queue 6 | exchange = test_task_exchange 7 | routing_key = test_task_routing_key 8 | 9 | [mysql:test] 10 | host = localhost 11 | port = 3306 12 | user = root 13 | password = 1a2s3dqwe 14 | db = mysql 15 | timeout = 5 16 | size = 1 -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dot/comment.jst: -------------------------------------------------------------------------------- 1 | {{# def.definitions }} 2 | {{# def.setupKeyword }} 3 | 4 | {{ var $comment = it.util.toQuotedString($schema); }} 5 | {{? it.opts.$comment === true }} 6 | console.log({{=$comment}}); 7 | {{?? typeof it.opts.$comment == 'function' }} 8 | self._opts.$comment({{=$comment}}, {{=it.util.toQuotedString($errSchemaPath)}}, validate.root.schema); 9 | {{?}} 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/inline_tables.toml: -------------------------------------------------------------------------------- 1 | name = { first = "Tom", last = "Preston-Werner" } 2 | point = { x = 1, y = 2 } 3 | nested = { x = { a = { b = 3 } } } 4 | 5 | points = [ { x = 1, y = 2, z = 3 }, 6 | { x = 7, y = 8, z = 9 }, 7 | { x = 2, y = 4, z = 8 } ] 8 | 9 | arrays = [ { x = [1, 2, 3], y = [4, 5, 6] }, 10 | { x = [7, 8, 9], y = [0, 1, 2] } ] 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/runtime/modules/index.js: -------------------------------------------------------------------------------- 1 | import attrs from './attrs' 2 | import klass from './class' 3 | import events from './events' 4 | import domProps from './dom-props' 5 | import style from './style' 6 | import transition from './transition' 7 | 8 | export default [ 9 | attrs, 10 | klass, 11 | events, 12 | domProps, 13 | style, 14 | transition 15 | ] 16 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/has/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var has = require('../'); 5 | 6 | test('has', function (t) { 7 | t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"'); 8 | t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"'); 9 | t.end(); 10 | }); 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/uniq/test/test.js: -------------------------------------------------------------------------------- 1 | var unique = require("../uniq.js") 2 | 3 | require("tape")("unique", function(t) { 4 | 5 | t.equals(unique([1,1,2,3,5,5,7]).join(), [1,2,3,5,7].join()) 6 | t.equals(unique([]).join(), [].join()) 7 | t.equals(unique([1,1,1]).join(), [1].join()) 8 | t.equals(unique([1,1,1,2,2,2], function(a,b) { return (a^b)&1 }).join(), [2,1].join()) 9 | 10 | t.end() 11 | }) -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/compiler/directives/bind.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export default function bind (el: ASTElement, dir: ASTDirective) { 4 | el.wrapData = (code: string) => { 5 | return `_b(${code},'${el.tag}',${dir.value},${ 6 | dir.modifiers && dir.modifiers.prop ? 'true' : 'false' 7 | }${ 8 | dir.modifiers && dir.modifiers.sync ? ',true' : '' 9 | })` 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/compiler/directives/on.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { warn } from 'core/util/index' 4 | 5 | export default function on (el: ASTElement, dir: ASTDirective) { 6 | if (process.env.NODE_ENV !== 'production' && dir.modifiers) { 7 | warn(`v-on without argument does not support modifiers.`) 8 | } 9 | el.wrapListeners = (code: string) => `_g(${code},${dir.value})` 10 | } 11 | -------------------------------------------------------------------------------- /examples/service/service_handlers/hello.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | 4 | from fastweb.service import ABLogic 5 | 6 | 7 | class HelloServiceHandler(ABLogic): 8 | def sayHello(self): 9 | # self.test_mysql.query('select * from entity_question limit 20;') 10 | # print self.test_mysql.fetch() 11 | # import pdb; pdb.Pdb().set_trace() 12 | print('sayHello') 13 | return 'hello' 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dot/_limitItems.jst: -------------------------------------------------------------------------------- 1 | {{# def.definitions }} 2 | {{# def.errors }} 3 | {{# def.setupKeyword }} 4 | {{# def.$data }} 5 | 6 | {{ var $op = $keyword == 'maxItems' ? '>' : '<'; }} 7 | if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) { 8 | {{ var $errorKeyword = $keyword; }} 9 | {{# def.error:'_limitItems' }} 10 | } {{? $breakOnError }} else { {{?}} 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/url/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-tdd 2 | browsers: 3 | - name: chrome 4 | version: latest 5 | - name: firefox 6 | version: 24..latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 9..latest 11 | - name: iphone 12 | version: oldest..latest 13 | - name: ipad 14 | version: oldest..latest 15 | - name: android 16 | version: oldest..latest 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/server/directives/show.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export default function show (node: VNodeWithData, dir: VNodeDirective) { 4 | if (!dir.value) { 5 | const style: any = node.data.style || (node.data.style = {}) 6 | if (Array.isArray(style)) { 7 | style.push({ display: 'none' }) 8 | } else { 9 | style.display = 'none' 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /fastweb/setting/default_component.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | from fastweb.task import Worker 4 | from fastweb.service import Service 5 | from fastweb.component.task import AsynTask, SyncTask 6 | 7 | 8 | # 不区分同步异步的组件 9 | COMPONENTS = [('worker', Worker), 10 | ('service', Service)] 11 | # 同步组件 12 | SYNC_COMPONENTS = [('task', SyncTask)] 13 | # 异步组件 14 | ASYN_COMPONENTS = [('task', AsynTask)] 15 | 16 | 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/test/ini.js: -------------------------------------------------------------------------------- 1 | var cc =require('../lib/utils') 2 | var INI = require('ini') 3 | var assert = require('assert') 4 | 5 | function test(obj) { 6 | 7 | var _json, _ini 8 | var json = cc.parse (_json = JSON.stringify(obj)) 9 | var ini = cc.parse (_ini = INI.stringify(obj)) 10 | console.log(_ini, _json) 11 | assert.deepEqual(json, ini) 12 | } 13 | 14 | 15 | test({hello: true}) 16 | 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "browser": true, 4 | "browserify": true, 5 | "curly": true, 6 | "eqeqeq": true, 7 | "eqnull": false, 8 | "latedef": "nofunc", 9 | "newcap": true, 10 | "noarg": true, 11 | "undef": true, 12 | "strict": true, 13 | "trailing": true, 14 | "smarttabs": true, 15 | "indent": 2, 16 | "quotmark": true, 17 | "laxbreak": true 18 | } 19 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/url/util.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | isString: function(arg) { 5 | return typeof(arg) === 'string'; 6 | }, 7 | isObject: function(arg) { 8 | return typeof(arg) === 'object' && arg !== null; 9 | }, 10 | isNull: function(arg) { 11 | return arg === null; 12 | }, 13 | isNullOrUndefined: function(arg) { 14 | return arg == null; 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /fastweb/test/worker.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | 4 | from fastweb import app 5 | from fastweb.task import start_task_worker 6 | 7 | 8 | class TestWorker(object): 9 | @staticmethod 10 | def test_start_worker(): 11 | app.load_component(layout='task', backend='ini', path='config/worker.ini') 12 | start_task_worker() 13 | 14 | if __name__ == '__main__': 15 | TestWorker.test_start_worker() 16 | 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dot/_limitLength.jst: -------------------------------------------------------------------------------- 1 | {{# def.definitions }} 2 | {{# def.errors }} 3 | {{# def.setupKeyword }} 4 | {{# def.$data }} 5 | 6 | {{ var $op = $keyword == 'maxLength' ? '>' : '<'; }} 7 | if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) { 8 | {{ var $errorKeyword = $keyword; }} 9 | {{# def.error:'_limitLength' }} 10 | } {{? $breakOnError }} else { {{?}} 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/lib/compressor/clean/Identifier.js: -------------------------------------------------------------------------------- 1 | module.exports = function cleanIdentifier(node, item, list) { 2 | // remove useless universal selector 3 | if (this.selector !== null && node.name === '*') { 4 | // remove when universal selector isn't last 5 | if (item.next && item.next.data.type !== 'Combinator') { 6 | list.remove(item); 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 1. Commit messages should have a [Conventional Commit](https://conventionalcommits.org/) prefix. 2 | 2. If you're editing the `types/*` files, just stop. These are auto-generated from [mime-db](https://github.com/jshttp/mime-db). Go talk to those folks. 3 | 3. README edits should be made to [src/README_md.js](src/README_md.js). 4 | 5 | Thanks for helping out with this project. You rock! 6 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js: -------------------------------------------------------------------------------- 1 | // Standard YAML's Failsafe schema. 2 | // http://www.yaml.org/spec/1.2/spec.html#id2802346 3 | 4 | 5 | 'use strict'; 6 | 7 | 8 | var Schema = require('../schema'); 9 | 10 | 11 | module.exports = new Schema({ 12 | explicit: [ 13 | require('../type/str'), 14 | require('../type/seq'), 15 | require('../type/map') 16 | ] 17 | }); 18 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_sync/HelloService/constants.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | from .ttypes import * 13 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_sync/HelloService/constants.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | from .ttypes import * 13 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_async/HelloService/constants.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py:tornado 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | from .ttypes import * 13 | -------------------------------------------------------------------------------- /examples/service/server.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | 4 | from fastweb.loader import app 5 | from fastweb.service import start_service_server 6 | 7 | 8 | if __name__ == '__main__': 9 | app.load_recorder('service.log', system_level='DEBUG') 10 | app.load_component(layout='service', backend='ini', path='service.ini') 11 | app.load_component(layout='service', backend='ini', path='component.ini') 12 | start_service_server() 13 | 14 | -------------------------------------------------------------------------------- /examples/web/fastweb_thrift_async/HelloService/constants.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py:tornado 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | from .ttypes import * 13 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_async/HelloService/constants.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py:tornado 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | from .ttypes import * 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dot/_limitProperties.jst: -------------------------------------------------------------------------------- 1 | {{# def.definitions }} 2 | {{# def.errors }} 3 | {{# def.setupKeyword }} 4 | {{# def.$data }} 5 | 6 | {{ var $op = $keyword == 'maxProperties' ? '>' : '<'; }} 7 | if ({{# def.$dataNotType:'number' }} Object.keys({{=$data}}).length {{=$op}} {{=$schemaValue}}) { 8 | {{ var $errorKeyword = $keyword; }} 9 | {{# def.error:'_limitProperties' }} 10 | } {{? $breakOnError }} else { {{?}} 11 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/pako/index.js: -------------------------------------------------------------------------------- 1 | // Top level file is just a mixin of submodules & constants 2 | 'use strict'; 3 | 4 | var assign = require('./lib/utils/common').assign; 5 | 6 | var deflate = require('./lib/deflate'); 7 | var inflate = require('./lib/inflate'); 8 | var constants = require('./lib/zlib/constants'); 9 | 10 | var pako = {}; 11 | 12 | assign(pako, deflate, inflate, constants); 13 | 14 | module.exports = pako; 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### If you have an issue with a specific extension or type 2 | 3 | Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right? 4 | 5 | [ ] No. [File a `mime-db` issue](https://github.com/jshttp/mime-db/issues/new). 6 | [ ] Yes: Go ahead and submit your issue/PR here and I'll look into it. 7 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_sync/HelloService/ttypes.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | 13 | from thrift.transport import TTransport 14 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_sync/HelloService/ttypes.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | 13 | from thrift.transport import TTransport 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/dot/pattern.jst: -------------------------------------------------------------------------------- 1 | {{# def.definitions }} 2 | {{# def.errors }} 3 | {{# def.setupKeyword }} 4 | {{# def.$data }} 5 | 6 | {{ 7 | var $regexp = $isData 8 | ? '(new RegExp(' + $schemaValue + '))' 9 | : it.usePattern($schema); 10 | }} 11 | 12 | if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) { 13 | {{# def.error:'pattern' }} 14 | } {{? $breakOnError }} else { {{?}} 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/lib/shell.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.6.3 2 | exports.unescape = function(w) { 3 | w = w.charAt(0) === '"' ? w.replace(/^"|([^\\])"$/g, '$1') : w.replace(/\\ /g, ' '); 4 | return w.replace(/\\("|'|\$|`|\\)/g, '$1'); 5 | }; 6 | 7 | exports.escape = function(w) { 8 | w = w.replace(/(["'$`\\])/g, '\\$1'); 9 | if (w.match(/\s+/)) { 10 | return '"' + w + '"'; 11 | } else { 12 | return w; 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/when/node/function.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2013 original author or authors */ 2 | 3 | /** 4 | * @author Brian Cavalier 5 | */ 6 | (function(define) { 'use strict'; 7 | define(function(require) { 8 | 9 | // DEPRECATED: Use when/node instead 10 | return require('../node'); 11 | 12 | }); 13 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); 14 | -------------------------------------------------------------------------------- /examples/web/fastweb_thrift_async/HelloService/ttypes.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py:tornado 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | 13 | from thrift.transport import TTransport 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/mime/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### If you have an issue with a specific extension or type 2 | 3 | Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right? 4 | 5 | [ ] No. [File a `mime-db` issue](https://github.com/jshttp/mime-db/issues/new). 6 | [ ] Yes: Go ahead and submit your issue/PR here and I'll look into it. 7 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/node_modules/minimist/test/stop_early.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('stops parsing on the first non-option when stopEarly is set', function (t) { 5 | var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], { 6 | stopEarly: true 7 | }); 8 | 9 | t.deepEqual(argv, { 10 | aaa: 'bbb', 11 | _: ['ccc', '--ddd'] 12 | }); 13 | 14 | t.end(); 15 | }); 16 | -------------------------------------------------------------------------------- /fastweb/test/fastweb_thrift_async/HelloService/ttypes.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py:tornado 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | 13 | from thrift.transport import TTransport 14 | -------------------------------------------------------------------------------- /examples/service/fastweb_thrift_async/HelloService/ttypes.py: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.10.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | # options string: py:tornado 7 | # 8 | 9 | from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException 10 | from thrift.protocol.TProtocol import TProtocolException 11 | import sys 12 | 13 | from thrift.transport import TTransport 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/entry-server-basic-renderer.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import modules from './server/modules/index' 4 | import directives from './server/directives/index' 5 | import { isUnaryTag, canBeLeftOpenTag } from './compiler/util' 6 | import { createBasicRenderer } from 'server/create-basic-renderer' 7 | 8 | export default createBasicRenderer({ 9 | modules, 10 | directives, 11 | isUnaryTag, 12 | canBeLeftOpenTag 13 | }) 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/atob/test.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | "use strict"; 3 | 4 | var atob = require('.'); 5 | var encoded = "SGVsbG8sIFdvcmxkIQ==" 6 | var unencoded = "Hello, World!"; 7 | /* 8 | , encoded = "SGVsbG8sIBZM" 9 | , unencoded = "Hello, 世界" 10 | */ 11 | 12 | if (unencoded !== atob(encoded)) { 13 | console.log('[FAIL]', unencoded, atob(encoded)); 14 | return; 15 | } 16 | 17 | console.log('[PASS] all tests pass'); 18 | }()); 19 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/shared/constants.js: -------------------------------------------------------------------------------- 1 | export const SSR_ATTR = 'data-server-rendered' 2 | 3 | export const ASSET_TYPES = [ 4 | 'component', 5 | 'directive', 6 | 'filter' 7 | ] 8 | 9 | export const LIFECYCLE_HOOKS = [ 10 | 'beforeCreate', 11 | 'created', 12 | 'beforeMount', 13 | 'mounted', 14 | 'beforeUpdate', 15 | 'updated', 16 | 'beforeDestroy', 17 | 'destroyed', 18 | 'activated', 19 | 'deactivated', 20 | 'errorCaptured' 21 | ] 22 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/url/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | env: 5 | global: 6 | - secure: OgPRLCzHFh5WbjHEKlghHFW1oOreSF2JVUr3CMaFDi03ngTS2WONSw8mRn8SA6FTldiGGBx1n8orDzUw6cdkB7+tkU3G5B0M0V3vl823NaUFKgxsCM3UGDYfJb3yfAG5cj72rVZoX/ABd1fVuG4vBIlDLxsSlKQFMzUCFoyttr8= 7 | - secure: AiZP8GHbyx83ZBhOvOxxtpNcgNHoP+vo5G1a1OYU78EHCgHg8NRyHKyCdrBnPvw6mV2BI/8frZaXAEicsHMtHMofBYn7nibNlaajBPI8AkHtYfNSc+zO+71Kwv7VOTOKKnkMEIkqhHlc6njFoH3QaBNHsgNlzzplPxaIt8vdUVk= 8 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/when/unfold.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright B Cavalier & J Hann */ 2 | 3 | /** 4 | * unfold 5 | * @author: brian@hovercraftstudios.com 6 | */ 7 | (function(define) { 8 | define(function(require) { 9 | 10 | /** 11 | * @deprecated Use when.unfold 12 | */ 13 | return require('./when').unfold; 14 | 15 | }); 16 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } ); 17 | 18 | -------------------------------------------------------------------------------- /fastweb/compat.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | """兼容模块""" 4 | 5 | import os 6 | import sys 7 | 8 | 9 | if sys.version_info < (3, 0): 10 | import configparser as cParser 11 | from urllib import urlencode, unquote 12 | else: 13 | import configparser as cParser 14 | from urllib.parse import urlencode, unquote 15 | 16 | if os.name == 'posix' and sys.version_info < (3, 0): 17 | import subprocess32 as subprocess 18 | else: 19 | import subprocess 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ret/lib/positions.js: -------------------------------------------------------------------------------- 1 | var types = require('./types'); 2 | 3 | exports.wordBoundary = function() { 4 | return { type: types.POSITION, value: 'b' }; 5 | }; 6 | 7 | exports.nonWordBoundary = function() { 8 | return { type: types.POSITION, value: 'B' }; 9 | }; 10 | 11 | exports.begin = function() { 12 | return { type: types.POSITION, value: '^' }; 13 | }; 14 | 15 | exports.end = function() { 16 | return { type: types.POSITION, value: '$' }; 17 | }; 18 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/depd/lib/compat/event-listener-count.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * depd 3 | * Copyright(c) 2015 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | 'use strict' 8 | 9 | /** 10 | * Module exports. 11 | * @public 12 | */ 13 | 14 | module.exports = eventListenerCount 15 | 16 | /** 17 | * Get the count of listeners on an event emitter of a specific type. 18 | */ 19 | 20 | function eventListenerCount (emitter, type) { 21 | return emitter.listeners(type).length 22 | } 23 | -------------------------------------------------------------------------------- /fastweb/test/configuration.py: -------------------------------------------------------------------------------- 1 | # coding:utf8 2 | 3 | 4 | import unittest 5 | 6 | import init 7 | from fastweb.util.configuration import ConfigurationParser 8 | 9 | 10 | class ConfigurationTest(unittest.TestCase): 11 | 12 | def runTest(self): 13 | configuration = ConfigurationParser('ini', path='config/config.ini') 14 | print((configuration.configs)) 15 | print((configuration.get_components('mysql'))) 16 | 17 | 18 | if __name__ == '__main__': 19 | unittest.main() 20 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/rc/node_modules/minimist/test/kv_short.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('short -k=v' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b=123' ]); 8 | t.deepEqual(argv, { b: 123, _: [] }); 9 | }); 10 | 11 | test('multi short -k=v' , function (t) { 12 | t.plan(1); 13 | 14 | var argv = parse([ '-a=whatever', '-b=robots' ]); 15 | t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] }); 16 | }); 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/util/README.md: -------------------------------------------------------------------------------- 1 | # util 2 | 3 | [![Build Status](https://travis-ci.org/defunctzombie/node-util.png?branch=master)](https://travis-ci.org/defunctzombie/node-util) 4 | 5 | node.js [util](http://nodejs.org/api/util.html) module as a module 6 | 7 | ## install via [npm](npmjs.org) 8 | 9 | ```shell 10 | npm install util 11 | ``` 12 | 13 | ## browser support 14 | 15 | This module also works in modern browsers. If you need legacy browser support you will need to polyfill ES5 features. 16 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/schema/core.js: -------------------------------------------------------------------------------- 1 | // Standard YAML's Core schema. 2 | // http://www.yaml.org/spec/1.2/spec.html#id2804923 3 | // 4 | // NOTE: JS-YAML does not support schema-specific tag resolution restrictions. 5 | // So, Core schema has no distinctions from JSON schema is JS-YAML. 6 | 7 | 8 | 'use strict'; 9 | 10 | 11 | var Schema = require('../schema'); 12 | 13 | 14 | module.exports = new Schema({ 15 | include: [ 16 | require('./json') 17 | ] 18 | }); 19 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/d/CHANGES: -------------------------------------------------------------------------------- 1 | v1.0.0 -- 2015.12.04 2 | - autoBind changes: 3 | - replace `bindTo` argument with options and `resolveContext` option 4 | - Add support `overwriteDefinition` 5 | - Introduce IE11 bug workaround in `lazy` handler 6 | 7 | v0.1.1 -- 2014.04.24 8 | - Add `autoBind` and `lazy` utilities 9 | - Allow to pass other options to be merged onto created descriptor. 10 | Useful when used with other custom utilties 11 | 12 | v0.1.0 -- 2013.06.20 13 | Initial (derived from es5-ext project) 14 | -------------------------------------------------------------------------------- /fastweb/test/config/service.ini: -------------------------------------------------------------------------------- 1 | [service:test_service] 2 | name = test_service 3 | port = 7777 4 | thrift_module = fastweb.test.fastweb_thrift_sync.HelloService.HelloService 5 | handlers = fastweb.test.service_handlers.hello.HelloServiceHandler 6 | active = yes 7 | 8 | [service:GenerateIdFacadeService] 9 | name = GenerateIdFacadeService 10 | port = 9000 11 | thrift_module = fastweb.test.fastweb_thrift_sync.HelloService.HelloService 12 | handlers = fastweb.test.service_handlers.hello.HelloServiceHandler 13 | active = yes 14 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/weex/compiler/modules/recycle-list/component-root.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { addAttr } from 'compiler/helpers' 4 | 5 | // mark component root nodes as 6 | export function postTransformComponentRoot ( 7 | el: ASTElement, 8 | options: WeexCompilerOptions 9 | ) { 10 | if (!el.parent) { 11 | // component root 12 | addAttr(el, '@isComponentRoot', 'true') 13 | addAttr(el, '@templateId', '_uid') 14 | addAttr(el, '@componentProps', '$props || {}') 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/when/monitor/console.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function(require) { 7 | 8 | var monitor = require('../monitor'); 9 | var Promise = require('../when').Promise; 10 | 11 | return monitor(Promise); 12 | 13 | }); 14 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/csso/lib/compressor/clean/Space.js: -------------------------------------------------------------------------------- 1 | function canCleanWhitespace(node) { 2 | if (node.type !== 'Operator') { 3 | return false; 4 | } 5 | 6 | return node.value !== '+' && node.value !== '-'; 7 | } 8 | 9 | module.exports = function cleanWhitespace(node, item, list) { 10 | var prev = item.prev && item.prev.data; 11 | var next = item.next && item.next.data; 12 | 13 | if (canCleanWhitespace(prev) || canCleanWhitespace(next)) { 14 | list.remove(item); 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/plugins/removeMetadata.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.type = 'perItem'; 4 | 5 | exports.active = true; 6 | 7 | exports.description = 'removes '; 8 | 9 | /** 10 | * Remove . 11 | * 12 | * http://www.w3.org/TR/SVG/metadata.html 13 | * 14 | * @param {Object} item current iteration item 15 | * @return {Boolean} if false, item will be filtered out 16 | * 17 | * @author Kir Belevich 18 | */ 19 | exports.fn = function(item) { 20 | 21 | return !item.isElem('metadata'); 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/core/vdom/helpers/get-first-component-child.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { isDef } from 'shared/util' 4 | import { isAsyncPlaceholder } from './is-async-placeholder' 5 | 6 | export function getFirstComponentChild (children: ?Array): ?VNode { 7 | if (Array.isArray(children)) { 8 | for (let i = 0; i < children.length; i++) { 9 | const c = children[i] 10 | if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) { 11 | return c 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/vue/src/platforms/web/runtime/patch.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import * as nodeOps from 'web/runtime/node-ops' 4 | import { createPatchFunction } from 'core/vdom/patch' 5 | import baseModules from 'core/vdom/modules/index' 6 | import platformModules from 'web/runtime/modules/index' 7 | 8 | // the directive module should be applied last, after all 9 | // built-in modules have been applied. 10 | const modules = platformModules.concat(baseModules) 11 | 12 | export const patch: Function = createPatchFunction({ nodeOps, modules }) 13 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/nan/tools/README.md: -------------------------------------------------------------------------------- 1 | 1to2 naively converts source code files from NAN 1 to NAN 2. There will be erroneous conversions, 2 | false positives and missed opportunities. The input files are rewritten in place. Make sure that 3 | you have backups. You will have to manually review the changes afterwards and do some touchups. 4 | 5 | ```sh 6 | $ tools/1to2.js 7 | 8 | Usage: 1to2 [options] 9 | 10 | Options: 11 | 12 | -h, --help output usage information 13 | -V, --version output the version number 14 | ``` 15 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/.tonic_example.js: -------------------------------------------------------------------------------- 1 | var Ajv = require('ajv'); 2 | var ajv = new Ajv({allErrors: true}); 3 | 4 | var schema = { 5 | "properties": { 6 | "foo": { "type": "string" }, 7 | "bar": { "type": "number", "maximum": 3 } 8 | } 9 | }; 10 | 11 | var validate = ajv.compile(schema); 12 | 13 | test({"foo": "abc", "bar": 2}); 14 | test({"foo": 2, "bar": 4}); 15 | 16 | function test(data) { 17 | var valid = validate(data); 18 | if (valid) console.log('Valid!'); 19 | else console.log('Invalid: ' + ajv.errorsText(validate.errors)); 20 | } -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ajv/lib/cache.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Cache = module.exports = function Cache() { 5 | this._cache = {}; 6 | }; 7 | 8 | 9 | Cache.prototype.put = function Cache_put(key, value) { 10 | this._cache[key] = value; 11 | }; 12 | 13 | 14 | Cache.prototype.get = function Cache_get(key) { 15 | return this._cache[key]; 16 | }; 17 | 18 | 19 | Cache.prototype.del = function Cache_del(key) { 20 | delete this._cache[key]; 21 | }; 22 | 23 | 24 | Cache.prototype.clear = function Cache_clear() { 25 | this._cache = {}; 26 | }; 27 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/coa/lib/color.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.6.3 2 | var colors; 3 | 4 | colors = { 5 | black: '30', 6 | dgray: '1;30', 7 | red: '31', 8 | lred: '1;31', 9 | green: '32', 10 | lgreen: '1;32', 11 | brown: '33', 12 | yellow: '1;33', 13 | blue: '34', 14 | lblue: '1;34', 15 | purple: '35', 16 | lpurple: '1;35', 17 | cyan: '36', 18 | lcyan: '1;36', 19 | lgray: '37', 20 | white: '1;37' 21 | }; 22 | 23 | exports.Color = function(c, str) { 24 | return ['\x1B[', colors[c], 'm', str, '\x1B[m'].join(''); 25 | }; 26 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/nan/tools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "1to2", 3 | "version": "1.0.0", 4 | "description": "NAN 1 -> 2 Migration Script", 5 | "main": "1to2.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/nodejs/nan.git" 9 | }, 10 | "contributors": [ 11 | "Benjamin Byholm (https://github.com/kkoopa/)", 12 | "Mathias Küsel (https://github.com/mathiask88/)" 13 | ], 14 | "dependencies": { 15 | "glob": "~5.0.10", 16 | "commander": "~2.8.1" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/toml/test/table_arrays_hard.toml: -------------------------------------------------------------------------------- 1 | [[fruit]] 2 | name = "durian" 3 | variety = [] 4 | 5 | [[fruit]] 6 | name = "apple" 7 | 8 | [fruit.physical] 9 | color = "red" 10 | shape = "round" 11 | 12 | [[fruit.variety]] 13 | name = "red delicious" 14 | 15 | [[fruit.variety]] 16 | name = "granny smith" 17 | 18 | [[fruit]] 19 | 20 | [[fruit]] 21 | name = "banana" 22 | 23 | [[fruit.variety]] 24 | name = "plantain" 25 | 26 | [[fruit]] 27 | name = "orange" 28 | 29 | [fruit.physical] 30 | color = "orange" 31 | shape = "round" 32 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/ylru/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.2.1 / 2018-07-11 3 | ================== 4 | 5 | **others** 6 | * [[`475abb0`](http://github.com/node-modules/ylru/commit/475abb0e9c787fd65d7c3dd3d2d74d67560b0bec)] - perf: only call Date.now() when necessary (#3) (Yiyu He <>) 7 | 8 | 1.2.0 / 2017-07-18 9 | ================== 10 | 11 | * feat: support lru.keys (#2) 12 | 13 | 1.1.0 / 2017-07-04 14 | ================== 15 | 16 | * feat: support get with maxAge (#1) 17 | 18 | 1.0.0 / 2016-12-29 19 | ================== 20 | 21 | * init version 22 | 23 | -------------------------------------------------------------------------------- /fastweb-docs-1/node_modules/svgo/plugins/removeStyleElement.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.type = 'perItem'; 4 | 5 | exports.active = false; 6 | 7 | exports.description = 'removes