Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pichot committed Apr 16, 2020
0 parents commit 0d6303b
Show file tree
Hide file tree
Showing 38 changed files with 12,232 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended'
],
// add your custom rules here
rules: {
}
}
90 changes: 90 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# urbanized.fyi

> observatory of urban complexity
## Build Setup

```bash
# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate
```

For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
7 changes: 7 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ASSETS

**This directory is not required, you can delete it if you don't want to use it.**

This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).
13 changes: 13 additions & 0 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* purgecss start ignore */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
/* purgecss end ignore */
@import 'tailwindcss/utilities';

h1 {
@apply text-gray-800
}

a {
@apply text-blue-500
}
63 changes: 63 additions & 0 deletions components/BikeshareSearch.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<template>
<div>
<input
v-model="filterString"
class="my-4 w-full border-b-2"
placeholder="Search by system name or location"
>
<table class="table-fixed w-full">
<thead class="text-left">
<tr>
<th class="px-2 py-2 w-2/5">
System Name
</th>
<th class="px-2 py-2 w-2/5">
Location
</th>
<th class="text-right px-2 py-2 w-1/5">
Download
</th>
</tr>
</thead>
<tbody>
<tr
v-for="system in filteredSystems"
:key="system['System ID']"
class="even:bg-gray-200"
>
<td class="px-2">
{{ system.Name }}
</td>
<td class="px-2">
{{ system.Location }}
</td>
<td class="text-right px-2">
Geojson
CSV
</td>
</tr>
</tbody>
</table>
</div>
</template>

<script>
import systemsArray from '~/data/systems.json'
export default {
data () {
return {
systems: systemsArray,
filterString: ''
}
},
computed: {
filteredSystems () {
return this.systems.filter(
s => RegExp(this.filterString, 'i').test(s.Name) || RegExp(this.filterString, 'i').test(s.Location)
)
}
}
}
</script>
7 changes: 7 additions & 0 deletions components/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# COMPONENTS

**This directory is not required, you can delete it if you don't want to use it.**

The components directory contains your Vue.js Components.

_Nuxt.js doesn't supercharge these components._
10 changes: 10 additions & 0 deletions components/TopNav.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<nav class="py-2 mb-8">
<n-link
to="/"
class="text-gray-800 text-lg"
>
🗺 urbanized.fyi
</n-link>
</nav>
</template>
7 changes: 7 additions & 0 deletions components/UrbanizedFooter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<footer class="my-24 text-gray-400">
A project by <a href="https://www.pichot.us">Jonathan Pichot</a>.
<a href="https://www.twitter.com/@_pichot">Twitter</a>.
<a href="https://www.github.com/pichot/urbanized.fyi">Github</a>.
</footer>
</template>
Loading

0 comments on commit 0d6303b

Please sign in to comment.