├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .postcssrc.js ├── README.md ├── build ├── build.js ├── check-versions.js ├── dev-client.js ├── dev-server.js ├── utils.js ├── vue-loader.conf.js ├── webpack.base.conf.js ├── webpack.dev.conf.js └── webpack.prod.conf.js ├── config ├── dev.env.js ├── index.js └── prod.env.js ├── index.html ├── package.json ├── src ├── App.vue ├── components │ ├── About.vue │ ├── Address.vue │ ├── History.vue │ ├── Home.vue │ ├── InvalidAddress.vue │ ├── NewAddress.vue │ ├── Web3Unavailable.vue │ └── partials │ │ ├── HistoryTr.vue │ │ └── TransferForm.vue ├── helpers │ ├── currency.js │ ├── util.js │ └── web3.js ├── main.js ├── router │ └── index.js └── store │ ├── actions.js │ ├── getters.js │ ├── index.js │ ├── modules │ ├── currency.js │ └── history.js │ └── mutation-types.js └── static ├── .gitkeep ├── fonts ├── Roboto_300_normal.ttf ├── Roboto_300_normal.woff ├── Roboto_400_italic.ttf ├── Roboto_400_italic.woff ├── Roboto_400_normal.svg ├── Roboto_400_normal.ttf ├── Roboto_400_normal.woff ├── Roboto_700_normal.ttf ├── Roboto_700_normal.woff └── fonts.css ├── icons ├── android-chrome-192x192.png ├── android-chrome-256x256.png ├── apple-touch-icon.png ├── browserconfig.xml ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico ├── icon.png ├── manifest.json ├── mstile-150x150.png └── safari-pinned-tab.svg └── style └── app.css /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-2" 5 | ], 6 | "plugins": ["transform-runtime"], 7 | "comments": false, 8 | "env": { 9 | "test": { 10 | "presets": ["env", "stage-2"], 11 | "plugins": [ "istanbul" ] 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | // http://eslint.org/docs/user-guide/configuring 2 | 3 | module.exports = { 4 | root: true, 5 | parser: 'babel-eslint', 6 | parserOptions: { 7 | sourceType: 'module' 8 | }, 9 | env: { 10 | browser: true 11 | }, 12 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 13 | extends: 'standard', 14 | // required to lint *.vue files 15 | plugins: [ 16 | 'html' 17 | ], 18 | // add your custom rules here 19 | 'rules': { 20 | // allow paren-less arrow functions 21 | 'arrow-parens': 0, 22 | // allow async-await 23 | 'generator-star-spacing': 0, 24 | // allow debugger during development 25 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserlist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tipeth 2 | 3 | > An Ethereum dapp 4 | 5 | ## Run your own local server 6 | 7 | ``` bash 8 | 9 | npm install # install dependencies 10 | 11 | npm run dev # serve at localhost:8010 12 | 13 | ``` 14 | 15 | ### Build 16 | 17 | ``` bash 18 | 19 | # build for production 20 | npm run build 21 | 22 | # build for production with bundle analyzer report 23 | npm run build --report 24 | 25 | ``` 26 | -------------------------------------------------------------------------------- /build/build.js: -------------------------------------------------------------------------------- 1 | require('./check-versions')() 2 | 3 | process.env.NODE_ENV = 'production' 4 | 5 | var ora = require('ora') 6 | var rm = require('rimraf') 7 | var path = require('path') 8 | var chalk = require('chalk') 9 | var webpack = require('webpack') 10 | var config = require('../config') 11 | var webpackConfig = require('./webpack.prod.conf') 12 | 13 | var spinner = ora('building for production...') 14 | spinner.start() 15 | 16 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 17 | if (err) throw err 18 | webpack(webpackConfig, function (err, stats) { 19 | spinner.stop() 20 | if (err) throw err 21 | process.stdout.write(stats.toString({ 22 | colors: true, 23 | modules: false, 24 | children: false, 25 | chunks: false, 26 | chunkModules: false 27 | }) + '\n\n') 28 | 29 | console.log(chalk.cyan(' Build complete.\n')) 30 | console.log(chalk.yellow( 31 | ' Tip: built files are meant to be served over an HTTP server.\n' + 32 | ' Opening index.html over file:// won\'t work.\n' 33 | )) 34 | }) 35 | }) 36 | -------------------------------------------------------------------------------- /build/check-versions.js: -------------------------------------------------------------------------------- 1 | var chalk = require('chalk') 2 | var semver = require('semver') 3 | var packageConfig = require('../package.json') 4 | var shell = require('shelljs') 5 | function exec (cmd) { 6 | return require('child_process').execSync(cmd).toString().trim() 7 | } 8 | 9 | var versionRequirements = [ 10 | { 11 | name: 'node', 12 | currentVersion: semver.clean(process.version), 13 | versionRequirement: packageConfig.engines.node 14 | }, 15 | ] 16 | 17 | if (shell.which('npm')) { 18 | versionRequirements.push({ 19 | name: 'npm', 20 | currentVersion: exec('npm --version'), 21 | versionRequirement: packageConfig.engines.npm 22 | }) 23 | } 24 | 25 | module.exports = function () { 26 | var warnings = [] 27 | for (var i = 0; i < versionRequirements.length; i++) { 28 | var mod = versionRequirements[i] 29 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 30 | warnings.push(mod.name + ': ' + 31 | chalk.red(mod.currentVersion) + ' should be ' + 32 | chalk.green(mod.versionRequirement) 33 | ) 34 | } 35 | } 36 | 37 | if (warnings.length) { 38 | console.log('') 39 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 40 | console.log() 41 | for (var i = 0; i < warnings.length; i++) { 42 | var warning = warnings[i] 43 | console.log(' ' + warning) 44 | } 45 | console.log() 46 | process.exit(1) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /build/dev-client.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | require('eventsource-polyfill') 3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') 4 | 5 | hotClient.subscribe(function (event) { 6 | if (event.action === 'reload') { 7 | window.location.reload() 8 | } 9 | }) 10 | -------------------------------------------------------------------------------- /build/dev-server.js: -------------------------------------------------------------------------------- 1 | require('./check-versions')() 2 | 3 | var config = require('../config') 4 | if (!process.env.NODE_ENV) { 5 | process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) 6 | } 7 | 8 | var opn = require('opn') 9 | var path = require('path') 10 | var express = require('express') 11 | var webpack = require('webpack') 12 | var proxyMiddleware = require('http-proxy-middleware') 13 | var webpackConfig = require('./webpack.dev.conf') 14 | 15 | // default port where dev server listens for incoming traffic 16 | var port = process.env.PORT || config.dev.port 17 | // automatically open browser, if not set will be false 18 | var autoOpenBrowser = !!config.dev.autoOpenBrowser 19 | // Define HTTP proxies to your custom API backend 20 | // https://github.com/chimurai/http-proxy-middleware 21 | var proxyTable = config.dev.proxyTable 22 | 23 | var app = express() 24 | var compiler = webpack(webpackConfig) 25 | 26 | var devMiddleware = require('webpack-dev-middleware')(compiler, { 27 | publicPath: webpackConfig.output.publicPath, 28 | quiet: true 29 | }) 30 | 31 | var hotMiddleware = require('webpack-hot-middleware')(compiler, { 32 | log: () => {} 33 | }) 34 | // force page reload when html-webpack-plugin template changes 35 | compiler.plugin('compilation', function (compilation) { 36 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { 37 | hotMiddleware.publish({ action: 'reload' }) 38 | cb() 39 | }) 40 | }) 41 | 42 | // proxy api requests 43 | Object.keys(proxyTable).forEach(function (context) { 44 | var options = proxyTable[context] 45 | if (typeof options === 'string') { 46 | options = { target: options } 47 | } 48 | app.use(proxyMiddleware(options.filter || context, options)) 49 | }) 50 | 51 | // handle fallback for HTML5 history API 52 | app.use(require('connect-history-api-fallback')()) 53 | 54 | // serve webpack bundle output 55 | app.use(devMiddleware) 56 | 57 | // enable hot-reload and state-preserving 58 | // compilation error display 59 | app.use(hotMiddleware) 60 | 61 | // serve pure static assets 62 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) 63 | app.use(staticPath, express.static('./static')) 64 | 65 | var uri = 'http://localhost:' + port 66 | 67 | var _resolve 68 | var readyPromise = new Promise(resolve => { 69 | _resolve = resolve 70 | }) 71 | 72 | console.log('> Starting dev server...') 73 | devMiddleware.waitUntilValid(() => { 74 | console.log('> Listening at ' + uri + '\n') 75 | // when env is testing, don't need open it 76 | if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') { 77 | opn(uri) 78 | } 79 | _resolve() 80 | }) 81 | 82 | var server = app.listen(port) 83 | 84 | module.exports = { 85 | ready: readyPromise, 86 | close: () => { 87 | server.close() 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /build/utils.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var config = require('../config') 3 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 4 | 5 | exports.assetsPath = function (_path) { 6 | var assetsSubDirectory = process.env.NODE_ENV === 'production' 7 | ? config.build.assetsSubDirectory 8 | : config.dev.assetsSubDirectory 9 | return path.posix.join(assetsSubDirectory, _path) 10 | } 11 | 12 | exports.cssLoaders = function (options) { 13 | options = options || {} 14 | 15 | var cssLoader = { 16 | loader: 'css-loader', 17 | options: { 18 | minimize: process.env.NODE_ENV === 'production', 19 | sourceMap: options.sourceMap 20 | } 21 | } 22 | 23 | // generate loader string to be used with extract text plugin 24 | function generateLoaders (loader, loaderOptions) { 25 | var loaders = [cssLoader] 26 | if (loader) { 27 | loaders.push({ 28 | loader: loader + '-loader', 29 | options: Object.assign({}, loaderOptions, { 30 | sourceMap: options.sourceMap 31 | }) 32 | }) 33 | } 34 | 35 | // Extract CSS when that option is specified 36 | // (which is the case during production build) 37 | if (options.extract) { 38 | return ExtractTextPlugin.extract({ 39 | use: loaders, 40 | fallback: 'vue-style-loader' 41 | }) 42 | } else { 43 | return ['vue-style-loader'].concat(loaders) 44 | } 45 | } 46 | 47 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html 48 | return { 49 | css: generateLoaders(), 50 | postcss: generateLoaders(), 51 | less: generateLoaders('less'), 52 | sass: generateLoaders('sass', { indentedSyntax: true }), 53 | scss: generateLoaders('sass'), 54 | stylus: generateLoaders('stylus'), 55 | styl: generateLoaders('stylus') 56 | } 57 | } 58 | 59 | // Generate loaders for standalone style files (outside of .vue) 60 | exports.styleLoaders = function (options) { 61 | var output = [] 62 | var loaders = exports.cssLoaders(options) 63 | for (var extension in loaders) { 64 | var loader = loaders[extension] 65 | output.push({ 66 | test: new RegExp('\\.' + extension + '$'), 67 | use: loader 68 | }) 69 | } 70 | return output 71 | } 72 | -------------------------------------------------------------------------------- /build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var config = require('../config') 3 | var isProduction = process.env.NODE_ENV === 'production' 4 | 5 | module.exports = { 6 | loaders: utils.cssLoaders({ 7 | sourceMap: isProduction 8 | ? config.build.productionSourceMap 9 | : config.dev.cssSourceMap, 10 | extract: isProduction 11 | }) 12 | } 13 | -------------------------------------------------------------------------------- /build/webpack.base.conf.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var utils = require('./utils') 3 | var config = require('../config') 4 | var vueLoaderConfig = require('./vue-loader.conf') 5 | 6 | function resolve (dir) { 7 | return path.join(__dirname, '..', dir) 8 | } 9 | 10 | module.exports = { 11 | entry: { 12 | app: './src/main.js' 13 | }, 14 | output: { 15 | path: config.build.assetsRoot, 16 | filename: '[name].js', 17 | publicPath: process.env.NODE_ENV === 'production' 18 | ? config.build.assetsPublicPath 19 | : config.dev.assetsPublicPath 20 | }, 21 | resolve: { 22 | extensions: ['.js', '.vue', '.json'], 23 | alias: { 24 | 'vue$': 'vue/dist/vue.esm.js', 25 | '@': resolve('src') 26 | } 27 | }, 28 | module: { 29 | rules: [ 30 | { 31 | test: /\.(js|vue)$/, 32 | loader: 'eslint-loader', 33 | enforce: 'pre', 34 | include: [resolve('src'), resolve('test')], 35 | options: { 36 | formatter: require('eslint-friendly-formatter') 37 | } 38 | }, 39 | { 40 | test: /\.vue$/, 41 | loader: 'vue-loader', 42 | options: vueLoaderConfig 43 | }, 44 | { 45 | test: /\.js$/, 46 | loader: 'babel-loader', 47 | include: [resolve('src'), resolve('test')] 48 | }, 49 | { 50 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 51 | loader: 'url-loader', 52 | options: { 53 | limit: 10000, 54 | name: utils.assetsPath('img/[name].[hash:7].[ext]') 55 | } 56 | }, 57 | { 58 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, 59 | loader: 'url-loader', 60 | options: { 61 | limit: 10000, 62 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') 63 | } 64 | } 65 | ] 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /build/webpack.dev.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var webpack = require('webpack') 3 | var config = require('../config') 4 | var merge = require('webpack-merge') 5 | var baseWebpackConfig = require('./webpack.base.conf') 6 | var HtmlWebpackPlugin = require('html-webpack-plugin') 7 | var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 8 | 9 | // add hot-reload related code to entry chunks 10 | Object.keys(baseWebpackConfig.entry).forEach(function (name) { 11 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) 12 | }) 13 | 14 | module.exports = merge(baseWebpackConfig, { 15 | module: { 16 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) 17 | }, 18 | // cheap-module-eval-source-map is faster for development 19 | devtool: '#cheap-module-eval-source-map', 20 | plugins: [ 21 | new webpack.DefinePlugin({ 22 | 'process.env': config.dev.env 23 | }), 24 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage 25 | new webpack.HotModuleReplacementPlugin(), 26 | new webpack.NoEmitOnErrorsPlugin(), 27 | // https://github.com/ampedandwired/html-webpack-plugin 28 | new HtmlWebpackPlugin({ 29 | filename: 'index.html', 30 | template: 'index.html', 31 | inject: true 32 | }), 33 | new FriendlyErrorsPlugin() 34 | ] 35 | }) 36 | -------------------------------------------------------------------------------- /build/webpack.prod.conf.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var utils = require('./utils') 3 | var webpack = require('webpack') 4 | var config = require('../config') 5 | var merge = require('webpack-merge') 6 | var baseWebpackConfig = require('./webpack.base.conf') 7 | var CopyWebpackPlugin = require('copy-webpack-plugin') 8 | var HtmlWebpackPlugin = require('html-webpack-plugin') 9 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 10 | var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') 11 | 12 | var env = config.build.env 13 | 14 | var webpackConfig = merge(baseWebpackConfig, { 15 | module: { 16 | rules: utils.styleLoaders({ 17 | sourceMap: config.build.productionSourceMap, 18 | extract: true 19 | }) 20 | }, 21 | devtool: config.build.productionSourceMap ? '#source-map' : false, 22 | output: { 23 | path: config.build.assetsRoot, 24 | filename: utils.assetsPath('js/[name].[chunkhash].js'), 25 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 26 | }, 27 | plugins: [ 28 | // http://vuejs.github.io/vue-loader/en/workflow/production.html 29 | new webpack.DefinePlugin({ 30 | 'process.env': env 31 | }), 32 | new webpack.optimize.UglifyJsPlugin({ 33 | compress: { 34 | warnings: false 35 | }, 36 | sourceMap: true 37 | }), 38 | // extract css into its own file 39 | new ExtractTextPlugin({ 40 | filename: utils.assetsPath('css/[name].[contenthash].css') 41 | }), 42 | // Compress extracted CSS. We are using this plugin so that possible 43 | // duplicated CSS from different components can be deduped. 44 | new OptimizeCSSPlugin({ 45 | cssProcessorOptions: { 46 | safe: true 47 | } 48 | }), 49 | // generate dist index.html with correct asset hash for caching. 50 | // you can customize output by editing /index.html 51 | // see https://github.com/ampedandwired/html-webpack-plugin 52 | new HtmlWebpackPlugin({ 53 | filename: config.build.index, 54 | template: 'index.html', 55 | inject: true, 56 | minify: { 57 | removeComments: true, 58 | collapseWhitespace: true, 59 | removeAttributeQuotes: true 60 | // more options: 61 | // https://github.com/kangax/html-minifier#options-quick-reference 62 | }, 63 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin 64 | chunksSortMode: 'dependency' 65 | }), 66 | // split vendor js into its own file 67 | new webpack.optimize.CommonsChunkPlugin({ 68 | name: 'vendor', 69 | minChunks: function (module, count) { 70 | // any required modules inside node_modules are extracted to vendor 71 | return ( 72 | module.resource && 73 | /\.js$/.test(module.resource) && 74 | module.resource.indexOf( 75 | path.join(__dirname, '../node_modules') 76 | ) === 0 77 | ) 78 | } 79 | }), 80 | // extract webpack runtime and module manifest to its own file in order to 81 | // prevent vendor hash from being updated whenever app bundle is updated 82 | new webpack.optimize.CommonsChunkPlugin({ 83 | name: 'manifest', 84 | chunks: ['vendor'] 85 | }), 86 | // copy custom static assets 87 | new CopyWebpackPlugin([ 88 | { 89 | from: path.resolve(__dirname, '../static'), 90 | to: config.build.assetsSubDirectory, 91 | ignore: ['.*'] 92 | } 93 | ]) 94 | ] 95 | }) 96 | 97 | if (config.build.productionGzip) { 98 | var CompressionWebpackPlugin = require('compression-webpack-plugin') 99 | 100 | webpackConfig.plugins.push( 101 | new CompressionWebpackPlugin({ 102 | asset: '[path].gz[query]', 103 | algorithm: 'gzip', 104 | test: new RegExp( 105 | '\\.(' + 106 | config.build.productionGzipExtensions.join('|') + 107 | ')$' 108 | ), 109 | threshold: 10240, 110 | minRatio: 0.8 111 | }) 112 | ) 113 | } 114 | 115 | if (config.build.bundleAnalyzerReport) { 116 | var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin 117 | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) 118 | } 119 | 120 | module.exports = webpackConfig 121 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | // see http://vuejs-templates.github.io/webpack for documentation. 2 | var path = require('path') 3 | 4 | module.exports = { 5 | build: { 6 | env: require('./prod.env'), 7 | index: path.resolve(__dirname, '../dist/index.html'), 8 | assetsRoot: path.resolve(__dirname, '../dist'), 9 | assetsSubDirectory: 'static', 10 | assetsPublicPath: '/', 11 | productionSourceMap: true, 12 | // Gzip off by default as many popular static hosts such as 13 | // Surge or Netlify already gzip all static assets for you. 14 | // Before setting to `true`, make sure to: 15 | // npm install --save-dev compression-webpack-plugin 16 | productionGzip: false, 17 | productionGzipExtensions: ['js', 'css'], 18 | // Run the build command with an extra argument to 19 | // View the bundle analyzer report after build finishes: 20 | // `npm run build --report` 21 | // Set to `true` or `false` to always turn it on or off 22 | bundleAnalyzerReport: process.env.npm_config_report 23 | }, 24 | dev: { 25 | env: require('./dev.env'), 26 | port: 8010, 27 | autoOpenBrowser: true, 28 | assetsSubDirectory: 'static', 29 | assetsPublicPath: '/', 30 | proxyTable: {}, 31 | // CSS Sourcemaps off by default because relative paths are "buggy" 32 | // with this option, according to the CSS-Loader README 33 | // (https://github.com/webpack/css-loader#sourcemaps) 34 | // In our experience, they generally work as expected, 35 | // just be aware of this issue when enabling this option. 36 | cssSourceMap: false 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | tipeth 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 |
45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tipeth", 3 | "version": "1.0.0", 4 | "description": "An Ethereum project", 5 | "author": "Ryan Ghods ", 6 | "private": true, 7 | "scripts": { 8 | "dev": "node build/dev-server.js", 9 | "start": "node build/dev-server.js", 10 | "build": "node build/build.js", 11 | "deploy": "rsync -avz -e 'ssh' dist/ ryan@tipeth.com:/var/www/tipeth.com/", 12 | "lint": "eslint --ext .js,.vue src" 13 | }, 14 | "dependencies": { 15 | "axios": "^0.16.1", 16 | "bulma": "^0.4.1", 17 | "eth-lightwallet": "^2.5.4", 18 | "font-awesome": "^4.7.0", 19 | "vue": "^2.2.6", 20 | "vue-async-computed": "^3.1.3", 21 | "vue-router": "^2.3.1", 22 | "vuex": "^2.3.1" 23 | }, 24 | "devDependencies": { 25 | "autoprefixer": "^6.7.2", 26 | "babel-core": "^6.22.1", 27 | "babel-eslint": "^7.1.1", 28 | "babel-loader": "^6.2.10", 29 | "babel-plugin-transform-runtime": "^6.22.0", 30 | "babel-preset-env": "^1.3.2", 31 | "babel-preset-stage-2": "^6.22.0", 32 | "babel-register": "^6.22.0", 33 | "chalk": "^1.1.3", 34 | "connect-history-api-fallback": "^1.3.0", 35 | "copy-webpack-plugin": "^4.0.1", 36 | "css-loader": "^0.28.0", 37 | "eslint": "^3.19.0", 38 | "eslint-config-standard": "^6.2.1", 39 | "eslint-friendly-formatter": "^2.0.7", 40 | "eslint-loader": "^1.7.1", 41 | "eslint-plugin-html": "^2.0.0", 42 | "eslint-plugin-promise": "^3.4.0", 43 | "eslint-plugin-standard": "^2.0.1", 44 | "eventsource-polyfill": "^0.9.6", 45 | "express": "^4.14.1", 46 | "extract-text-webpack-plugin": "^2.0.0", 47 | "file-loader": "^0.11.1", 48 | "friendly-errors-webpack-plugin": "^1.1.3", 49 | "google-fonts-offline": "^0.1.2", 50 | "html-webpack-plugin": "^2.28.0", 51 | "http-proxy-middleware": "^0.17.3", 52 | "opn": "^4.0.2", 53 | "optimize-css-assets-webpack-plugin": "^1.3.0", 54 | "ora": "^1.2.0", 55 | "rimraf": "^2.6.0", 56 | "semver": "^5.3.0", 57 | "shelljs": "^0.7.6", 58 | "url-loader": "^0.5.8", 59 | "vue-loader": "^11.3.4", 60 | "vue-style-loader": "^2.0.5", 61 | "vue-template-compiler": "^2.2.6", 62 | "webpack": "^2.3.3", 63 | "webpack-bundle-analyzer": "^2.2.1", 64 | "webpack-dev-middleware": "^1.10.0", 65 | "webpack-hot-middleware": "^2.18.0", 66 | "webpack-merge": "^4.1.0" 67 | }, 68 | "engines": { 69 | "node": ">= 7.0.0", 70 | "npm": ">= 3.0.0" 71 | }, 72 | "browserslist": [ 73 | "> 1%", 74 | "last 2 versions", 75 | "not ie <= 8" 76 | ] 77 | } 78 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 40 | 41 | 66 | -------------------------------------------------------------------------------- /src/components/About.vue: -------------------------------------------------------------------------------- 1 | 32 | 33 | 38 | 39 | 46 | -------------------------------------------------------------------------------- /src/components/Address.vue: -------------------------------------------------------------------------------- 1 | 62 | 63 | 145 | 146 | 167 | -------------------------------------------------------------------------------- /src/components/History.vue: -------------------------------------------------------------------------------- 1 | 61 | 62 | 99 | 100 | 116 | -------------------------------------------------------------------------------- /src/components/Home.vue: -------------------------------------------------------------------------------- 1 | 33 | 34 | 39 | 40 | 86 | -------------------------------------------------------------------------------- /src/components/InvalidAddress.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 34 | 35 | 37 | -------------------------------------------------------------------------------- /src/components/NewAddress.vue: -------------------------------------------------------------------------------- 1 | 54 | 55 | 89 | 90 | 119 | -------------------------------------------------------------------------------- /src/components/Web3Unavailable.vue: -------------------------------------------------------------------------------- 1 | 37 | 38 | 43 | 44 | 47 | -------------------------------------------------------------------------------- /src/components/partials/HistoryTr.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 70 | 71 | 90 | -------------------------------------------------------------------------------- /src/components/partials/TransferForm.vue: -------------------------------------------------------------------------------- 1 | 76 | 77 | 399 | 400 | 436 | -------------------------------------------------------------------------------- /src/helpers/currency.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | 3 | export function getExchangeRate (currencyCode) { 4 | return new Promise((resolve, reject) => { 5 | const currencyAPI = 'https://api.coinmarketcap.com/v1/ticker/ethereum/' 6 | 7 | var params = {} 8 | 9 | if (currencyCode !== 'USD') { 10 | params['convert'] = currencyCode 11 | } 12 | 13 | axios.get(currencyAPI, { 14 | params: params 15 | }).then(response => { 16 | const conversionRateToEther = response.data[0]['price_' + currencyCode.toLowerCase()] 17 | resolve(conversionRateToEther) 18 | }).catch(error => { 19 | reject(error) 20 | }) 21 | }) 22 | } 23 | 24 | export const currencies = [ 25 | { 26 | label: 'US Dollar (USD)', 27 | code: 'USD' 28 | }, 29 | { 30 | label: 'European Euro (EUR)', 31 | code: 'EUR' 32 | }, 33 | { 34 | label: 'Canadian Dollar (CAD)', 35 | code: 'CAD' 36 | }, 37 | { 38 | label: 'British Pound (GBP)', 39 | code: 'GBP' 40 | }, 41 | { 42 | label: 'Japenese Yen (JPY)', 43 | code: 'JPY' 44 | }, 45 | { 46 | label: 'Chinese Yuan (CNY)', 47 | code: 'CNY' 48 | }, 49 | { 50 | label: 'Swiss Franc (CHF)', 51 | code: 'CHF' 52 | }, 53 | { 54 | label: 'Australian Dollar (AUD)', 55 | code: 'AUD' 56 | }, 57 | { 58 | label: 'Brazilian Real (BRL)', 59 | code: 'BRL' 60 | }, 61 | { 62 | label: 'Hong Kong Dollar (HKD)', 63 | code: 'HKD' 64 | }, 65 | { 66 | label: 'Indonesian Rupiah (IDR)', 67 | code: 'IDR' 68 | }, 69 | { 70 | label: 'Indian Rupee (INR)', 71 | code: 'INR' 72 | }, 73 | { 74 | label: 'South Korean Won (KRW)', 75 | code: 'KRW' 76 | }, 77 | { 78 | label: 'Mexican Peso (MXN)', 79 | code: 'MXN' 80 | }, 81 | { 82 | label: 'Russian Ruble (RUB)', 83 | code: 'RUB' 84 | } 85 | ] 86 | -------------------------------------------------------------------------------- /src/helpers/util.js: -------------------------------------------------------------------------------- 1 | const mixin = { 2 | filters: { 3 | permalink: function (privateKey) { 4 | return 'https://tipeth.com/' + privateKey 5 | } 6 | }, 7 | methods: { 8 | inputSelectAll: function (input) { 9 | return input.target.setSelectionRange(0, input.target.value.length) 10 | } 11 | } 12 | } 13 | 14 | export default { 15 | install (Vue, options) { 16 | Vue.mixin(mixin) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/helpers/web3.js: -------------------------------------------------------------------------------- 1 | import lightwallet from 'eth-lightwallet' 2 | import ethereumjs from 'ethereumjs-util' 3 | import EthereumTx from 'ethereumjs-tx' 4 | 5 | export function generateAddress () { 6 | return new Promise((resolve, reject) => { 7 | const password = lightwallet.keystore.generateRandomSeed() 8 | 9 | lightwallet.keystore.createVault({ 10 | password: password 11 | }, (error, ks) => { 12 | if (error) { 13 | reject(error) 14 | } 15 | 16 | ks.keyFromPassword(password, (error, pwDerivedKey) => { 17 | if (error) { 18 | reject(error) 19 | } 20 | 21 | ks.generateNewAddress(pwDerivedKey, 1) 22 | 23 | var data = {} 24 | 25 | data.privateKey = ks.exportPrivateKey(ks.getAddresses()[0], pwDerivedKey) 26 | data.address = ks.getAddresses()[0] 27 | 28 | resolve(data) 29 | }) 30 | }) 31 | }) 32 | } 33 | 34 | export function privateKeyToAddress (privateKey) { 35 | var address = ethereumjs.bufferToHex(ethereumjs.privateToAddress(ethereumjs.addHexPrefix(privateKey))) 36 | 37 | // remove hex prefix 38 | address = address.substring(2) 39 | 40 | return address 41 | } 42 | 43 | export function addHexPrefix (string) { 44 | if (string.substring(0, 2) !== '0x') { 45 | return '0x' + string 46 | } 47 | 48 | return string 49 | } 50 | 51 | export function signRawTransactionData (transactionData, privateKey) { 52 | // format transactionData 53 | Object.keys(transactionData).forEach((key, index) => { 54 | if (key === 'gasPrice' || key === 'gas' || key === 'value') { 55 | transactionData[key] = window.web3.toHex(transactionData[key]) 56 | } else if (key === 'from' || key === 'to') { 57 | transactionData[key] = addHexPrefix(transactionData[key]) 58 | } 59 | }) 60 | 61 | const transaction = new EthereumTx(transactionData) 62 | const privateKeyBuffer = new Buffer(privateKey, 'hex') 63 | 64 | transaction.sign(privateKeyBuffer) 65 | 66 | const serializedTransaction = transaction.serialize() 67 | const transactionDataHex = '0x' + serializedTransaction.toString('hex') 68 | 69 | return transactionDataHex 70 | } 71 | 72 | const mixin = { 73 | methods: { 74 | waitForWeb3: function () { 75 | return new Promise((resolve) => { 76 | if (typeof window.web3 !== 'undefined') { 77 | resolve() 78 | return 79 | } 80 | 81 | // wait to see if web3 loads 82 | setTimeout(() => { 83 | if (typeof window.web3 !== 'undefined') { 84 | resolve() 85 | return 86 | } 87 | 88 | this.$router.history.updateRoute(this.$router.match('/web3-unavailable')) 89 | }, 1250) 90 | }) 91 | } 92 | } 93 | } 94 | 95 | export default { 96 | install (Vue, options) { 97 | Vue.mixin(mixin) 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | import Vue from 'vue' 4 | import App from './App' 5 | import store from './store' 6 | import router from './router' 7 | import AsyncComputed from 'vue-async-computed' 8 | 9 | Vue.use(AsyncComputed) 10 | 11 | // Mixins 12 | import utilHelper from './helpers/util' 13 | import web3Helper from './helpers/web3' 14 | 15 | Vue.use(utilHelper) 16 | Vue.use(web3Helper) 17 | 18 | // Config 19 | Vue.config.productionTip = false 20 | 21 | // CSS 22 | import '../node_modules/bulma/css/bulma.css' 23 | import '../node_modules/font-awesome/css/font-awesome.css' 24 | import '../static/fonts/fonts.css' 25 | import '../static/style/app.css' 26 | 27 | /* eslint-disable no-new */ 28 | new Vue({ 29 | el: '#app', 30 | store, 31 | router, 32 | template: '', 33 | components: { App } 34 | }) 35 | -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Home from '@/components/Home' 4 | import Web3Unavailable from '@/components/Web3Unavailable' 5 | import Address from '@/components/Address' 6 | import NewAddress from '@/components/NewAddress' 7 | import InvalidAddress from '@/components/InvalidAddress' 8 | import History from '@/components/History' 9 | import About from '@/components/About' 10 | 11 | Vue.use(Router) 12 | 13 | export default new Router({ 14 | mode: 'history', 15 | routes: [ 16 | { 17 | path: '/', 18 | name: 'Home', 19 | component: Home 20 | }, 21 | { 22 | path: '/web3-unavailable', 23 | name: 'Web3Unavailable', 24 | component: Web3Unavailable 25 | }, 26 | { 27 | path: '/new', 28 | name: 'NewAddress', 29 | component: NewAddress 30 | }, 31 | { 32 | path: '/history', 33 | name: 'History', 34 | component: History 35 | }, 36 | { 37 | path: '/about', 38 | name: 'About', 39 | component: About 40 | }, 41 | { 42 | path: '/invalid', 43 | name: 'InvalidAddress', 44 | component: InvalidAddress 45 | }, 46 | { 47 | path: '/:privateKey', 48 | name: 'Address', 49 | component: Address 50 | } 51 | ] 52 | }) 53 | -------------------------------------------------------------------------------- /src/store/actions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/src/store/actions.js -------------------------------------------------------------------------------- /src/store/getters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/src/store/getters.js -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | import * as actions from './actions' 4 | import * as getters from './getters' 5 | import currency from './modules/currency' 6 | import history from './modules/history' 7 | 8 | Vue.use(Vuex) 9 | 10 | const debug = process.env.NODE_ENV !== 'production' 11 | 12 | export default new Vuex.Store({ 13 | actions, 14 | getters, 15 | modules: { 16 | currency, 17 | history 18 | }, 19 | strict: debug 20 | }) 21 | -------------------------------------------------------------------------------- /src/store/modules/currency.js: -------------------------------------------------------------------------------- 1 | import * as types from '../mutation-types' 2 | import { getExchangeRate } from '../../helpers/currency.js' 3 | 4 | const currencyFromLocalStorage = window.localStorage.getItem('currencyCode') 5 | 6 | // initial state 7 | const state = { 8 | code: currencyFromLocalStorage || 'USD', 9 | exchangeRate: null 10 | } 11 | 12 | // getters 13 | const getters = { 14 | } 15 | 16 | // actions 17 | const actions = { 18 | updateCurrency (store, { currencyCode }) { 19 | store.commit(types.SET_CURRENCY_CODE, { currencyCode }) 20 | 21 | store.commit(types.RESET_CURRENCY_EXCHANGE_RATE) 22 | store.dispatch('updateExchangeRate') 23 | }, 24 | updateExchangeRate ({ commit, state }) { 25 | getExchangeRate(state.code).then(exchangeRate => { 26 | commit(types.SET_CURRENCY_EXCHANGE_RATE, { exchangeRate }) 27 | }) 28 | } 29 | } 30 | 31 | // mutations 32 | const mutations = { 33 | [types.SET_CURRENCY_CODE] (state, { currencyCode }) { 34 | state.code = currencyCode 35 | window.localStorage.setItem('currencyCode', currencyCode) 36 | }, 37 | [types.SET_CURRENCY_EXCHANGE_RATE] (state, { exchangeRate }) { 38 | state.exchangeRate = exchangeRate 39 | }, 40 | [types.RESET_CURRENCY_EXCHANGE_RATE] (state) { 41 | state.exchangeRate = null 42 | } 43 | } 44 | 45 | export default { 46 | state, 47 | getters, 48 | actions, 49 | mutations 50 | } 51 | -------------------------------------------------------------------------------- /src/store/modules/history.js: -------------------------------------------------------------------------------- 1 | import * as types from '../mutation-types' 2 | 3 | // initial state 4 | const state = { 5 | history: JSON.parse(window.localStorage.getItem('history')) || [] 6 | } 7 | 8 | // getters 9 | const getters = { 10 | } 11 | 12 | // actions 13 | const actions = { 14 | } 15 | 16 | // mutations 17 | const mutations = { 18 | [types.ADD_TO_HISTORY] (state, { privateKey }) { 19 | if (state.history.indexOf(privateKey) === -1) { 20 | // don't record duplicate 21 | state.history.unshift(privateKey) 22 | window.localStorage.setItem('history', JSON.stringify(state.history)) 23 | } 24 | }, 25 | [types.REMOVE_FROM_HISTORY] (state, { privateKey }) { 26 | const index = state.history.indexOf(privateKey) 27 | if (index > -1) { 28 | state.history.splice(index, 1) 29 | window.localStorage.setItem('history', JSON.stringify(state.history)) 30 | } 31 | }, 32 | [types.CLEAR_HISTORY] (state) { 33 | state.history = [] 34 | window.localStorage.setItem('history', JSON.stringify(state.history)) 35 | } 36 | } 37 | 38 | export default { 39 | state, 40 | getters, 41 | actions, 42 | mutations 43 | } 44 | -------------------------------------------------------------------------------- /src/store/mutation-types.js: -------------------------------------------------------------------------------- 1 | export const SET_CURRENCY_CODE = 'SET_CURRENCY_CODE' 2 | export const SET_CURRENCY_EXCHANGE_RATE = 'SET_CURRENCY_EXCHANGE_RATE' 3 | export const RESET_CURRENCY_EXCHANGE_RATE = 'RESET_CURRENCY_EXCHANGE_RATE' 4 | export const ADD_TO_HISTORY = 'ADD_TO_HISTORY' 5 | export const REMOVE_FROM_HISTORY = 'REMOVE_FROM_HISTORY' 6 | export const CLEAR_HISTORY = 'CLEAR_HISTORY' 7 | -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/.gitkeep -------------------------------------------------------------------------------- /static/fonts/Roboto_300_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_300_normal.ttf -------------------------------------------------------------------------------- /static/fonts/Roboto_300_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_300_normal.woff -------------------------------------------------------------------------------- /static/fonts/Roboto_400_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_400_italic.ttf -------------------------------------------------------------------------------- /static/fonts/Roboto_400_italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_400_italic.woff -------------------------------------------------------------------------------- /static/fonts/Roboto_400_normal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 18 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | 39 | 40 | 42 | 44 | 45 | 47 | 49 | 50 | 51 | 52 | 53 | 54 | 56 | 59 | 60 | 62 | 64 | 65 | 66 | 67 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 78 | 79 | 81 | 82 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 99 | 100 | 102 | 103 | 105 | 106 | 108 | 109 | 110 | 111 | 112 | 113 | 115 | 116 | 118 | 120 | 122 | 123 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 140 | 142 | 144 | 145 | 146 | 149 | 150 | 153 | 155 | 156 | 157 | 158 | 161 | 162 | 164 | 165 | 166 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 176 | 177 | 178 | 180 | 183 | 185 | 186 | 187 | 188 | 190 | 192 | 194 | 195 | 197 | 198 | 199 | 200 | 202 | 203 | 204 | 205 | 206 | 207 | 209 | 211 | 213 | 215 | 218 | 221 | 222 | 224 | 225 | 226 | 228 | 230 | 231 | 232 | 234 | 236 | 238 | 240 | 243 | 246 | 249 | 252 | 254 | 256 | 258 | 260 | 262 | 263 | 264 | 265 | 266 | 268 | 270 | 272 | 274 | 276 | 279 | 281 | 283 | 285 | 286 | 287 | 288 | 290 | 291 | 293 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | -------------------------------------------------------------------------------- /static/fonts/Roboto_400_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_400_normal.ttf -------------------------------------------------------------------------------- /static/fonts/Roboto_400_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_400_normal.woff -------------------------------------------------------------------------------- /static/fonts/Roboto_700_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_700_normal.ttf -------------------------------------------------------------------------------- /static/fonts/Roboto_700_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/fonts/Roboto_700_normal.woff -------------------------------------------------------------------------------- /static/fonts/fonts.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Roboto'; 3 | font-style: normal; 4 | font-weight: 300; 5 | src: url(/static/fonts/Roboto_300_normal.eot); /* {{embedded-opentype-gf-url}} */ 6 | src: local('☺'), 7 | url(/static/fonts/Roboto_300_normal.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 8 | url(/static/fonts/Roboto_300_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/roboto/v16/Hgo13k-tfSpn0qi1SFdUfT8E0i7KZn-EPnyo3HZu7kw.woff */ 9 | url(/static/fonts/Roboto_300_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/roboto/v16/Hgo13k-tfSpn0qi1SFdUfSZ2oysoEQEeKwjgmXLRnTc.ttf */ 10 | url(/static/fonts/Roboto_300_normal.svg#Roboto_300_normal) format('svg'); /* {{svg-gf-url}} */ 11 | } 12 | @font-face { 13 | font-family: 'Roboto'; 14 | font-style: normal; 15 | font-weight: 400; 16 | src: url(/static/fonts/Roboto_400_normal.eot); /* {{embedded-opentype-gf-url}} */ 17 | src: local('☺'), 18 | url(/static/fonts/Roboto_400_normal.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 19 | url(/static/fonts/Roboto_400_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/roboto/v16/2UX7WLTfW3W8TclTUvlFyQ.woff */ 20 | url(/static/fonts/Roboto_400_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/roboto/v16/QHD8zigcbDB8aPfIoaupKOvvDin1pK8aKteLpeZ5c0A.ttf */ 21 | url(/static/fonts/Roboto_400_normal.svg#Roboto_400_normal) format('svg'); /* http://fonts.gstatic.com/l/font?kit=_YZOZaQ9UBZzaxiLBLcgZg&skey=a0a0114a1dcab3ac&v=v16#Roboto */ 22 | } 23 | @font-face { 24 | font-family: 'Roboto'; 25 | font-style: normal; 26 | font-weight: 700; 27 | src: url(/static/fonts/Roboto_700_normal.eot); /* {{embedded-opentype-gf-url}} */ 28 | src: local('☺'), 29 | url(/static/fonts/Roboto_700_normal.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 30 | url(/static/fonts/Roboto_700_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/roboto/v16/d-6IYplOFocCacKzxwXSOD8E0i7KZn-EPnyo3HZu7kw.woff */ 31 | url(/static/fonts/Roboto_700_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/roboto/v16/d-6IYplOFocCacKzxwXSOCZ2oysoEQEeKwjgmXLRnTc.ttf */ 32 | url(/static/fonts/Roboto_700_normal.svg#Roboto_700_normal) format('svg'); /* {{svg-gf-url}} */ 33 | } 34 | @font-face { 35 | font-family: 'Roboto'; 36 | font-style: italic; 37 | font-weight: 400; 38 | src: url(/static/fonts/Roboto_400_italic.eot); /* {{embedded-opentype-gf-url}} */ 39 | src: local('☺'), 40 | url(/static/fonts/Roboto_400_italic.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 41 | url(/static/fonts/Roboto_400_italic.woff) format('woff'), /* http://fonts.gstatic.com/s/roboto/v16/1pO9eUAp8pSF8VnRTP3xnvesZW2xOQ-xsNqO47m55DA.woff */ 42 | url(/static/fonts/Roboto_400_italic.ttf) format('truetype'), /* http://fonts.gstatic.com/s/roboto/v16/W4wDsBUluyw0tK3tykhXEXYhjbSpvc47ee6xR_80Hnw.ttf */ 43 | url(/static/fonts/Roboto_400_italic.svg#Roboto_400_italic) format('svg'); /* {{svg-gf-url}} */ 44 | } 45 | -------------------------------------------------------------------------------- /static/icons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/android-chrome-192x192.png -------------------------------------------------------------------------------- /static/icons/android-chrome-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/android-chrome-256x256.png -------------------------------------------------------------------------------- /static/icons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/apple-touch-icon.png -------------------------------------------------------------------------------- /static/icons/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #000000 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /static/icons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/favicon-16x16.png -------------------------------------------------------------------------------- /static/icons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/favicon-32x32.png -------------------------------------------------------------------------------- /static/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/favicon.ico -------------------------------------------------------------------------------- /static/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/icon.png -------------------------------------------------------------------------------- /static/icons/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "", 3 | "icons": [ 4 | { 5 | "src": "/static/icons/android-chrome-192x192.png", 6 | "sizes": "192x192", 7 | "type": "image/png" 8 | }, 9 | { 10 | "src": "/static/icons/android-chrome-256x256.png", 11 | "sizes": "256x256", 12 | "type": "image/png" 13 | } 14 | ], 15 | "theme_color": "#ffffff", 16 | "background_color": "#ffffff", 17 | "display": "standalone" 18 | } -------------------------------------------------------------------------------- /static/icons/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanio/tipeth/d6dfe965b92aafc72510e922961bcbd51e7ae884/static/icons/mstile-150x150.png -------------------------------------------------------------------------------- /static/icons/safari-pinned-tab.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | Created by potrace 1.11, written by Peter Selinger 2001-2013 9 | 10 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /static/style/app.css: -------------------------------------------------------------------------------- 1 | /* ========================================== 2 | Global styles 3 | ======================================== */ 4 | 5 | #app { 6 | font-family: 'Roboto', Helvetica, Arial, sans-serif; 7 | } 8 | 9 | .has-text-italic { 10 | font-style: italic; 11 | } 12 | 13 | .button.is-primary { 14 | font-weight: 600; 15 | } 16 | 17 | .fa { 18 | vertical-align: middle; 19 | } 20 | 21 | .button .fa { 22 | margin-left: -0.1em; 23 | margin-right: 0.4em; 24 | } 25 | 26 | .title.address { 27 | overflow-wrap: break-word; 28 | } 29 | 30 | .title-decorator { 31 | font-size: 0.9rem; 32 | border-bottom: 1px dotted rgba(0, 0, 0, 0.2); 33 | display: inline-block; 34 | margin-bottom: 0.2em; 35 | font-style: italic; 36 | font-weight: normal; 37 | } 38 | 39 | abbr { 40 | text-decoration: none; 41 | border-bottom: 1px dotted #ddd; 42 | } 43 | 44 | ::selection { 45 | background: #ddd; /* WebKit/Blink Browsers */ 46 | } 47 | 48 | ::-moz-selection { 49 | background: #ddd; /* Gecko Browsers */ 50 | } 51 | --------------------------------------------------------------------------------