),\n use: loader\n })\n }\n\n return output\n}\n\nexports.createNotifierCallback = () =\u003E {\n const notifier = require('node-notifier')\n\n return (severity, errors) =\u003E {\n if (severity !== 'error') return\n\n const error = errors[0]\n const filename = error.file && error.file.split('!').pop()\n\n notifier.notify({\n title: packageConfig.name,\n message: severity + ': ' + error.name,\n subtitle: filename || '',\n icon: path.join(__dirname, 'logo.png')\n })\n }\n}\n","id":"bdf79c39-2647-4b8a-8079-4455de2f4b0e","is_binary":false,"title":"utils.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"Skh6AJVtJ2","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"HJaCyNKJn"},{"code":"'use strict'\nconst utils = require('.\u002Futils')\nconst config = require('..\u002Fconfig')\nconst isProduction = process.env.NODE_ENV === 'production'\nconst sourceMapEnabled = isProduction\n ? config.build.productionSourceMap\n : config.dev.cssSourceMap\n\nmodule.exports = {\n loaders: utils.cssLoaders({\n sourceMap: sourceMapEnabled,\n extract: isProduction\n }),\n cssSourceMap: sourceMapEnabled,\n cacheBusting: config.dev.cacheBusting,\n transformToRequire: {\n video: ['src', 'poster'],\n source: 'src',\n img: 'src',\n image: 'xlink:href'\n }\n}\n","id":"c3b096ed-ff70-43fd-a051-010b17bee7cf","is_binary":false,"title":"vue-loader.conf.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"SJaaCk4tkn","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"HJaCyNKJn"},{"code":"'use strict'\nconst path = require('path')\nconst utils = require('.\u002Futils')\nconst config = require('..\u002Fconfig')\nconst vueLoaderConfig = require('.\u002Fvue-loader.conf')\n\nfunction resolve (dir) {\n return path.join(__dirname, '..', dir)\n}\n\nconst createLintingRule = () =\u003E ({\n test: \u002F\\.(js|vue)$\u002F,\n loader: 'eslint-loader',\n enforce: 'pre',\n include: [resolve('src'), resolve('test')],\n options: {\n formatter: require('eslint-friendly-formatter'),\n emitWarning: !config.dev.showEslintErrorsInOverlay\n }\n})\n\nmodule.exports = {\n context: path.resolve(__dirname, '..\u002F'),\n entry: {\n app: '.\u002Fsrc\u002Fmain.js'\n },\n output: {\n path: config.build.assetsRoot,\n filename: '[name].js',\n publicPath: process.env.NODE_ENV === 'production'\n ? config.build.assetsPublicPath\n : config.dev.assetsPublicPath\n },\n resolve: {\n extensions: ['.js', '.vue', '.json'],\n alias: {\n 'vue
: 'vue\u002Fdist\u002Fvue.esm.js',\n '@': resolve('src'),\n }\n },\n module: {\n rules: [\n ...(config.dev.useEslint ? [createLintingRule()] : []),\n {\n test: \u002F\\.vue$\u002F,\n loader: 'vue-loader',\n options: vueLoaderConfig\n },\n {\n test: \u002F\\.js$\u002F,\n loader: 'babel-loader',\n include: [resolve('src'), resolve('test'), resolve('node_modules\u002Fwebpack-dev-server\u002Fclient')]\n },\n {\n test: \u002F\\.(png|jpe?g|gif|svg)(\\?.*)?$\u002F,\n loader: 'url-loader',\n options: {\n limit: 10000,\n name: utils.assetsPath('img\u002F[name].[hash:7].[ext]')\n }\n },\n {\n test: \u002F\\.(mp4|webm|ogg|mp3|wav|flac|aac)(\\?.*)?$\u002F,\n loader: 'url-loader',\n options: {\n limit: 10000,\n name: utils.assetsPath('media\u002F[name].[hash:7].[ext]')\n }\n },\n {\n test: \u002F\\.(woff2?|eot|ttf|otf)(\\?.*)?$\u002F,\n loader: 'url-loader',\n options: {\n limit: 10000,\n name: utils.assetsPath('fonts\u002F[name].[hash:7].[ext]')\n }\n }\n ]\n },\n node: {\n \u002F\u002F prevent webpack from injecting useless setImmediate polyfill because Vue\n \u002F\u002F source contains it (although only uses it if it's native).\n setImmediate: false,\n \u002F\u002F prevent webpack from injecting mocks to Node native modules\n \u002F\u002F that does not make sense for the client\n dgram: 'empty',\n fs: 'empty',\n net: 'empty',\n tls: 'empty',\n child_process: 'empty'\n }\n}\n","id":"f1ee4ec5-02d0-4c14-8455-6bc67fe22501","is_binary":false,"title":"webpack.base.conf.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"HyCpR1EFk3","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"HJaCyNKJn"},{"code":"'use strict'\nconst utils = require('.\u002Futils')\nconst webpack = require('webpack')\nconst config = require('..\u002Fconfig')\nconst merge = require('webpack-merge')\nconst path = require('path')\nconst baseWebpackConfig = require('.\u002Fwebpack.base.conf')\nconst CopyWebpackPlugin = require('copy-webpack-plugin')\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\nconst FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')\nconst portfinder = require('portfinder')\n\nconst HOST = process.env.HOST\nconst PORT = process.env.PORT && Number(process.env.PORT)\n\nconst devWebpackConfig = merge(baseWebpackConfig, {\n module: {\n rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })\n },\n \u002F\u002F cheap-module-eval-source-map is faster for development\n devtool: config.dev.devtool,\n\n \u002F\u002F these devServer options should be customized in \u002Fconfig\u002Findex.js\n devServer: {\n clientLogLevel: 'warning',\n historyApiFallback: {\n rewrites: [\n { from: \u002F.*\u002F, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },\n ],\n },\n hot: true,\n contentBase: false, \u002F\u002F since we use CopyWebpackPlugin.\n compress: true,\n host: HOST || config.dev.host,\n port: PORT || config.dev.port,\n open: config.dev.autoOpenBrowser,\n overlay: config.dev.errorOverlay\n ? { warnings: false, errors: true }\n : false,\n publicPath: config.dev.assetsPublicPath,\n proxy: config.dev.proxyTable,\n quiet: true, \u002F\u002F necessary for FriendlyErrorsPlugin\n watchOptions: {\n poll: config.dev.poll,\n }\n },\n plugins: [\n new webpack.DefinePlugin({\n 'process.env': require('..\u002Fconfig\u002Fdev.env')\n }),\n new webpack.HotModuleReplacementPlugin(),\n new webpack.NamedModulesPlugin(), \u002F\u002F HMR shows correct file names in console on update.\n new webpack.NoEmitOnErrorsPlugin(),\n \u002F\u002F https:\u002F\u002Fgithub.com\u002Fampedandwired\u002Fhtml-webpack-plugin\n new HtmlWebpackPlugin({\n filename: 'index.html',\n template: 'index.html',\n inject: true\n }),\n \u002F\u002F copy custom static assets\n new CopyWebpackPlugin([\n {\n from: path.resolve(__dirname, '..\u002Fstatic'),\n to: config.dev.assetsSubDirectory,\n ignore: ['.*']\n }\n ])\n ]\n})\n\nmodule.exports = new Promise((resolve, reject) =\u003E {\n portfinder.basePort = process.env.PORT || config.dev.port\n portfinder.getPort((err, port) =\u003E {\n if (err) {\n reject(err)\n } else {\n \u002F\u002F publish the new Port, necessary for e2e tests\n process.env.PORT = port\n \u002F\u002F add port to devServer config\n devWebpackConfig.devServer.port = port\n\n \u002F\u002F Add FriendlyErrorsPlugin\n devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({\n compilationSuccessInfo: {\n messages: [`Your application is running here: http:\u002F\u002F${devWebpackConfig.devServer.host}:${port}`],\n },\n onErrors: config.dev.notifyOnErrors\n ? utils.createNotifierCallback()\n : undefined\n }))\n\n resolve(devWebpackConfig)\n }\n })\n})\n","id":"2a8146f9-6cd0-4916-b7e9-a363f88629e1","is_binary":false,"title":"webpack.dev.conf.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"ryJlaCJ4tyn","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"HJaCyNKJn"},{"code":"'use strict'\nconst path = require('path')\nconst utils = require('.\u002Futils')\nconst webpack = require('webpack')\nconst config = require('..\u002Fconfig')\nconst merge = require('webpack-merge')\nconst baseWebpackConfig = require('.\u002Fwebpack.base.conf')\nconst CopyWebpackPlugin = require('copy-webpack-plugin')\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\nconst ExtractTextPlugin = require('extract-text-webpack-plugin')\nconst OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')\nconst UglifyJsPlugin = require('uglifyjs-webpack-plugin')\n\nconst env = process.env.NODE_ENV === 'testing'\n ? require('..\u002Fconfig\u002Ftest.env')\n : require('..\u002Fconfig\u002Fprod.env')\n\nconst webpackConfig = merge(baseWebpackConfig, {\n module: {\n rules: utils.styleLoaders({\n sourceMap: config.build.productionSourceMap,\n extract: true,\n usePostCSS: true\n })\n },\n devtool: config.build.productionSourceMap ? config.build.devtool : false,\n output: {\n path: config.build.assetsRoot,\n filename: utils.assetsPath('js\u002F[name].[chunkhash].js'),\n chunkFilename: utils.assetsPath('js\u002F[id].[chunkhash].js')\n },\n plugins: [\n \u002F\u002F http:\u002F\u002Fvuejs.github.io\u002Fvue-loader\u002Fen\u002Fworkflow\u002Fproduction.html\n new webpack.DefinePlugin({\n 'process.env': env\n }),\n new UglifyJsPlugin({\n uglifyOptions: {\n compress: {\n warnings: false\n }\n },\n sourceMap: config.build.productionSourceMap,\n parallel: true\n }),\n \u002F\u002F extract css into its own file\n new ExtractTextPlugin({\n filename: utils.assetsPath('css\u002F[name].[contenthash].css'),\n \u002F\u002F Setting the following option to `false` will not extract CSS from codesplit chunks.\n \u002F\u002F Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.\n \u002F\u002F It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, \n \u002F\u002F increasing file size: https:\u002F\u002Fgithub.com\u002Fvuejs-templates\u002Fwebpack\u002Fissues\u002F1110\n allChunks: true,\n }),\n \u002F\u002F Compress extracted CSS. We are using this plugin so that possible\n \u002F\u002F duplicated CSS from different components can be deduped.\n new OptimizeCSSPlugin({\n cssProcessorOptions: config.build.productionSourceMap\n ? { safe: true, map: { inline: false } }\n : { safe: true }\n }),\n \u002F\u002F generate dist index.html with correct asset hash for caching.\n \u002F\u002F you can customize output by editing \u002Findex.html\n \u002F\u002F see https:\u002F\u002Fgithub.com\u002Fampedandwired\u002Fhtml-webpack-plugin\n new HtmlWebpackPlugin({\n filename: process.env.NODE_ENV === 'testing'\n ? 'index.html'\n : config.build.index,\n template: 'index.html',\n inject: true,\n minify: {\n removeComments: true,\n collapseWhitespace: true,\n removeAttributeQuotes: true\n \u002F\u002F more options:\n \u002F\u002F https:\u002F\u002Fgithub.com\u002Fkangax\u002Fhtml-minifier#options-quick-reference\n },\n \u002F\u002F necessary to consistently work with multiple chunks via CommonsChunkPlugin\n chunksSortMode: 'dependency'\n }),\n \u002F\u002F keep module.id stable when vendor modules does not change\n new webpack.HashedModuleIdsPlugin(),\n \u002F\u002F enable scope hoisting\n new webpack.optimize.ModuleConcatenationPlugin(),\n \u002F\u002F split vendor js into its own file\n new webpack.optimize.CommonsChunkPlugin({\n name: 'vendor',\n minChunks (module) {\n \u002F\u002F any required modules inside node_modules are extracted to vendor\n return (\n module.resource &&\n \u002F\\.js$\u002F.test(module.resource) &&\n module.resource.indexOf(\n path.join(__dirname, '..\u002Fnode_modules')\n ) === 0\n )\n }\n }),\n \u002F\u002F extract webpack runtime and module manifest to its own file in order to\n \u002F\u002F prevent vendor hash from being updated whenever app bundle is updated\n new webpack.optimize.CommonsChunkPlugin({\n name: 'manifest',\n minChunks: Infinity\n }),\n \u002F\u002F This instance extracts shared chunks from code splitted chunks and bundles them\n \u002F\u002F in a separate chunk, similar to the vendor chunk\n \u002F\u002F see: https:\u002F\u002Fwebpack.js.org\u002Fplugins\u002Fcommons-chunk-plugin\u002F#extra-async-commons-chunk\n new webpack.optimize.CommonsChunkPlugin({\n name: 'app',\n async: 'vendor-async',\n children: true,\n minChunks: 3\n }),\n\n \u002F\u002F copy custom static assets\n new CopyWebpackPlugin([\n {\n from: path.resolve(__dirname, '..\u002Fstatic'),\n to: config.build.assetsSubDirectory,\n ignore: ['.*']\n }\n ])\n ]\n})\n\nif (config.build.productionGzip) {\n const CompressionWebpackPlugin = require('compression-webpack-plugin')\n\n webpackConfig.plugins.push(\n new CompressionWebpackPlugin({\n asset: '[path].gz[query]',\n algorithm: 'gzip',\n test: new RegExp(\n '\\\\.(' +\n config.build.productionGzipExtensions.join('|') +\n ')
\n ),\n threshold: 10240,\n minRatio: 0.8\n })\n )\n}\n\nif (config.build.bundleAnalyzerReport) {\n const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin\n webpackConfig.plugins.push(new BundleAnalyzerPlugin())\n}\n\nmodule.exports = webpackConfig\n","id":"191be738-37c6-45fe-b4db-38f3bcb44cdb","is_binary":false,"title":"webpack.prod.conf.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"r1gl6RJNK1n","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"HJaCyNKJn"},{"code":"'use strict'\nconst merge = require('webpack-merge')\nconst prodEnv = require('.\u002Fprod.env')\n\nmodule.exports = merge(prodEnv, {\n NODE_ENV: '\"development\"'\n})\n","id":"09288790-0ba1-47fb-aae6-93527e32c66b","is_binary":false,"title":"dev.env.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"Bkbg6CJNKk2","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"BkxpR1EtJh"},{"code":"'use strict'\n\u002F\u002F Template version: 1.3.1\n\u002F\u002F see http:\u002F\u002Fvuejs-templates.github.io\u002Fwebpack for documentation.\n\nconst path = require('path')\n\nmodule.exports = {\n dev: {\n\n \u002F\u002F Paths\n assetsSubDirectory: 'static',\n assetsPublicPath: '\u002F',\n proxyTable: {},\n\n \u002F\u002F Various Dev Server settings\n host: 'localhost', \u002F\u002F can be overwritten by process.env.HOST\n port: 8080, \u002F\u002F can be overwritten by process.env.PORT, if port is in use, a free one will be determined\n autoOpenBrowser: false,\n errorOverlay: true,\n notifyOnErrors: true,\n poll: false, \u002F\u002F https:\u002F\u002Fwebpack.js.org\u002Fconfiguration\u002Fdev-server\u002F#devserver-watchoptions-\n\n \u002F\u002F Use Eslint Loader?\n \u002F\u002F If true, your code will be linted during bundling and\n \u002F\u002F linting errors and warnings will be shown in the console.\n useEslint: true,\n \u002F\u002F If true, eslint errors and warnings will also be shown in the error overlay\n \u002F\u002F in the browser.\n showEslintErrorsInOverlay: false,\n\n \u002F**\n * Source Maps\n *\u002F\n\n \u002F\u002F https:\u002F\u002Fwebpack.js.org\u002Fconfiguration\u002Fdevtool\u002F#development\n devtool: 'cheap-module-eval-source-map',\n\n \u002F\u002F If you have problems debugging vue-files in devtools,\n \u002F\u002F set this to false - it *may* help\n \u002F\u002F https:\u002F\u002Fvue-loader.vuejs.org\u002Fen\u002Foptions.html#cachebusting\n cacheBusting: true,\n\n cssSourceMap: true\n },\n\n build: {\n \u002F\u002F Template for index.html\n index: path.resolve(__dirname, '..\u002Fdist\u002Findex.html'),\n\n \u002F\u002F Paths\n assetsRoot: path.resolve(__dirname, '..\u002Fdist'),\n assetsSubDirectory: 'static',\n assetsPublicPath: '\u002F',\n\n \u002F**\n * Source Maps\n *\u002F\n\n productionSourceMap: true,\n \u002F\u002F https:\u002F\u002Fwebpack.js.org\u002Fconfiguration\u002Fdevtool\u002F#production\n devtool: '#source-map',\n\n \u002F\u002F Gzip off by default as many popular static hosts such as\n \u002F\u002F Surge or Netlify already gzip all static assets for you.\n \u002F\u002F Before setting to `true`, make sure to:\n \u002F\u002F npm install --save-dev compression-webpack-plugin\n productionGzip: false,\n productionGzipExtensions: ['js', 'css'],\n\n \u002F\u002F Run the build command with an extra argument to\n \u002F\u002F View the bundle analyzer report after build finishes:\n \u002F\u002F `npm run build --report`\n \u002F\u002F Set to `true` or `false` to always turn it on or off\n bundleAnalyzerReport: process.env.npm_config_report\n }\n}\n","id":"5b53c9b2-067e-427c-9296-003480c7ff5d","is_binary":false,"title":"index.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"rJGeaAy4Fy2","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"BkxpR1EtJh"},{"code":"'use strict'\nmodule.exports = {\n NODE_ENV: '\"production\"'\n}\n","id":"1a550c27-bea3-4bb8-9021-616a2079c2cd","is_binary":false,"title":"prod.env.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"rJQl6014tk2","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"BkxpR1EtJh"},{"code":"'use strict'\nconst merge = require('webpack-merge')\nconst devEnv = require('.\u002Fdev.env')\n\nmodule.exports = merge(devEnv, {\n NODE_ENV: '\"testing\"'\n})\n","id":"16175f10-7f3c-4bd6-8d28-5275564baf57","is_binary":false,"title":"test.env.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"SkElT01NF1n","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"BkxpR1EtJh"},{"code":"\u003C!DOCTYPE html\u003E\n\u003Chtml\u003E\n\n\u003Chead\u003E\n\t\u003Cmeta charset=\"utf-8\"\u003E\n\t\u003Cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\"\u003E\n\t\u003Ctitle\u003ECodeSandbox Vue\u003C\u002Ftitle\u003E\n\u003C\u002Fhead\u003E\n\n\u003Cbody\u003E\n\t\u003Cdiv id=\"app\"\u003E\u003C\u002Fdiv\u003E\n\t\u003C!-- built files will be auto injected --\u003E\n\u003C\u002Fbody\u003E\n\n\u003C\u002Fhtml\u003E","id":"8f018db2-97f6-4e91-9a0d-218227879637","is_binary":false,"title":"index.html","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"H1Sxa0J4tk2","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":null},{"code":"{\n \"name\": \"event-bus\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"src\u002Fmain.js\",\n \"private\": true,\n \"scripts\": {\n \"dev\":\n \"webpack-dev-server --inline --progress --config build\u002Fwebpack.dev.conf.js\",\n \"start\": \"npm run dev\",\n \"unit\": \"jest --config test\u002Funit\u002Fjest.conf.js --coverage\",\n \"test\": \"npm run unit\",\n \"lint\": \"eslint --ext .js,.vue src test\u002Funit\",\n \"build\": \"node build\u002Fbuild.js\"\n },\n \"dependencies\": {\n \"vue\": \"^2.5.2\"\n },\n \"devDependencies\": {\n \"autoprefixer\": \"^7.1.2\",\n \"babel-core\": \"^6.22.1\",\n \"babel-eslint\": \"^8.2.1\",\n \"babel-helper-vue-jsx-merge-props\": \"^2.0.3\",\n \"babel-jest\": \"^21.0.2\",\n \"babel-loader\": \"^7.1.1\",\n \"babel-plugin-dynamic-import-node\": \"^1.2.0\",\n \"babel-plugin-syntax-jsx\": \"^6.18.0\",\n \"babel-plugin-transform-es2015-modules-commonjs\": \"^6.26.0\",\n \"babel-plugin-transform-runtime\": \"^6.22.0\",\n \"babel-plugin-transform-vue-jsx\": \"^3.5.0\",\n \"babel-preset-env\": \"^1.3.2\",\n \"babel-preset-stage-2\": \"^6.22.0\",\n \"chalk\": \"^2.0.1\",\n \"copy-webpack-plugin\": \"^4.0.1\",\n \"css-loader\": \"^0.28.0\",\n \"eslint\": \"^4.15.0\",\n \"eslint-config-airbnb-base\": \"^11.3.0\",\n \"eslint-friendly-formatter\": \"^3.0.0\",\n \"eslint-import-resolver-webpack\": \"^0.8.3\",\n \"eslint-loader\": \"^1.7.1\",\n \"eslint-plugin-import\": \"^2.7.0\",\n \"eslint-plugin-vue\": \"^4.0.0\",\n \"extract-text-webpack-plugin\": \"^3.0.0\",\n \"file-loader\": \"^1.1.4\",\n \"friendly-errors-webpack-plugin\": \"^1.6.1\",\n \"html-webpack-plugin\": \"^2.30.1\",\n \"jest\": \"^22.0.4\",\n \"jest-serializer-vue\": \"^0.3.0\",\n \"node-notifier\": \"^5.1.2\",\n \"optimize-css-assets-webpack-plugin\": \"^3.2.0\",\n \"ora\": \"^1.2.0\",\n \"portfinder\": \"^1.0.13\",\n \"postcss-import\": \"^11.0.0\",\n \"postcss-loader\": \"^2.0.8\",\n \"postcss-url\": \"^7.2.1\",\n \"rimraf\": \"^2.6.0\",\n \"semver\": \"^5.3.0\",\n \"shelljs\": \"^0.7.6\",\n \"uglifyjs-webpack-plugin\": \"^1.1.1\",\n \"url-loader\": \"^0.5.8\",\n \"vue-jest\": \"^1.0.2\",\n \"vue-loader\": \"^13.3.0\",\n \"vue-style-loader\": \"^3.0.1\",\n \"vue-template-compiler\": \"^2.5.2\",\n \"webpack\": \"^3.6.0\",\n \"webpack-bundle-analyzer\": \"^2.9.0\",\n \"webpack-dev-server\": \"^2.9.1\",\n \"webpack-merge\": \"^4.1.0\"\n },\n \"engines\": {\n \"node\": \"\u003E= 6.0.0\",\n \"npm\": \"\u003E= 3.0.0\"\n },\n \"browserslist\": [\"\u003E 1%\", \"last 2 versions\", \"not ie \u003C= 8\"],\n \"keywords\": []\n}\n","id":"af38822b-3e32-4750-98de-a02f29a881e4","is_binary":false,"title":"package.json","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"HyUepAyVtkh","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":null},{"code":"\u003Ctemplate\u003E\n \u003Cdiv id=\"app\"\u003E\n \u003CNumberDisplay \u002F\u003E\n \u003CNumberSubmit \u002F\u003E\n \u003C\u002Fdiv\u003E\n\u003C\u002Ftemplate\u003E\n\n\u003Cscript\u003E\nimport NumberDisplay from \".\u002Fcomponents\u002FNumberDisplay\";\nimport NumberSubmit from \".\u002Fcomponents\u002FNumberSubmit\";\n\nexport default {\n name: \"App\",\n components: {\n NumberDisplay,\n NumberSubmit\n }\n};\n\u003C\u002Fscript\u003E\n\n\u003Cstyle\u003E\n#app {\n font-family: \"Avenir\", Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n\u003C\u002Fstyle\u003E\n","id":"e94ed7d3-aa4f-4d14-b1e9-276a860f06c8","is_binary":false,"title":"App.vue","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"H1wxpRy4K1h","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"SyWT0kNYJ3"},{"code":"\u003Ctemplate\u003E\n \u003Cdiv\u003E\n \u003Ch2\u003E{{ numbers }}\u003C\u002Fh2\u003E\n \u003C\u002Fdiv\u003E\n\u003C\u002Ftemplate\u003E\n\u003Cscript\u003E\nimport { EventBus } from \"..\u002Fevent-bus.js\";\n\nexport default {\n name: \"NumberDisplay\",\n data() {\n return {\n numbers: [1, 2, 3]\n };\n },\n created() {\n EventBus.$on(\"number-added\", number =\u003E {\n this.numbers.push(number);\n });\n }\n};\n\u003C\u002Fscript\u003E\n","id":"00733fc5-9465-4a5d-9165-4f1634321f9f","is_binary":false,"title":"NumberDisplay.vue","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"S1_lpC1NYJh","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"r1faRyVKk2"},{"code":"\u003Ctemplate\u003E\n \u003Cdiv\u003E\n \u003Cinput v-model=\"number\" type=\"number\" \u002F\u003E\n \u003Cbutton @click=\"addNumber\"\u003E\n Add new number\n \u003C\u002Fbutton\u003E\n \u003C\u002Fdiv\u003E\n\u003C\u002Ftemplate\u003E\n\u003Cscript\u003E\nimport { EventBus } from \"..\u002Fevent-bus.js\";\n\nexport default {\n name: \"NumberSubmit\",\n data() {\n return {\n number: 0\n };\n },\n methods: {\n addNumber(newNumber) {\n EventBus.$emit(\"number-added\", Number(this.number));\n }\n }\n};\n\u003C\u002Fscript\u003E\n","id":"76b08f25-eb97-447d-a93c-ca71b5a656b1","is_binary":false,"title":"NumberSubmit.vue","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"SkKxpRk4Kyn","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"r1faRyVKk2"},{"code":"import Vue from \"vue\";\nexport const EventBus = new Vue();\n","id":"074c2ba1-011f-48a4-8c60-ce6c58c8b5f5","is_binary":false,"title":"event-bus.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"SJqeTC1EFk3","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"SyWT0kNYJ3"},{"code":"\u002F\u002F The Vue build version to load with the `import` command\n\u002F\u002F (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from \"vue\";\nimport App from \".\u002FApp\";\n\nVue.config.productionTip = false;\n\n\u002F* eslint-disable no-new *\u002F\nnew Vue({\n el: \"#app\",\n components: { App },\n template: \"\u003CApp\u002F\u003E\"\n});\n","id":"03a734b0-14d2-4e5e-9ce5-c2dc5481f7b9","is_binary":false,"title":"main.js","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"H1jgaRJNFJh","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"SyWT0kNYJ3"},{"code":"https:\u002F\u002Frawcdn.githack.com\u002Ffullstackio\u002Fawesome-fullstack-tutorials\u002Fmaster\u002Fvue\u002Fmanaging_state_01\u002Fevent-bus\u002Fbuild\u002Flogo.png","id":"91cb6b24-ea30-4963-8670-3bc5407d6c47","is_binary":true,"title":"logo.png","sha":null,"inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","upload_id":null,"shortid":"Hy2gpCkVtyn","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"HJaCyNKJn"}],"authorization":"read","npm_dependencies":{},"original_git":null,"directories":[{"id":"6de13ac3-1ec6-4a26-824e-2d488efe7573","title":"build","inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","shortid":"HJaCyNKJn","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":null},{"id":"d7831927-8dee-4669-a92c-c8f58d757b16","title":"config","inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","shortid":"BkxpR1EtJh","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":null},{"id":"775c902a-4954-4f49-a4eb-a085f85c84ab","title":"src","inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","shortid":"SyWT0kNYJ3","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":null},{"id":"197021a2-6d47-4e27-a11a-b4bd44de56ce","title":"components","inserted_at":"2023-03-10T22:31:48","updated_at":"2023-03-10T22:31:48","shortid":"r1faRyVKk2","source_id":"e139069c-165b-4d4f-9515-0baa944077bf","directory_shortid":"SyWT0kNYJ3"}],"is_frozen":false,"privacy":0,"updated_at":"2023-03-10T22:31:48","forked_template_sandbox":null,"template":"vue-cli","owned":false,"tags":[],"user_liked":false,"title":"event-bus","room_id":null,"forked_from_sandbox":null,"draft":true,"like_count":0,"forked_template":null,"source_id":"e139069c-165b-4d4f-9515-0baa944077bf","original_git_commit_sha":null,"view_count":5318,"collection":false,"external_resources":[],"v2":false,"description":null};