diff --git a/assets/styles/main.scss b/assets/styles/main.scss index a631016f3..c0b082ee1 100644 --- a/assets/styles/main.scss +++ b/assets/styles/main.scss @@ -119,3 +119,11 @@ blockquote { margin-top: 0; } } + +hr { + border: 0; + width: 100%; + color: $color-neutral-80; + background-color: $color-neutral-80; + height: 1px !important; +} diff --git a/components/PostCard.vue b/components/PostCard.vue index 59f19d1f2..fbe6a0996 100644 --- a/components/PostCard.vue +++ b/components/PostCard.vue @@ -24,13 +24,22 @@ diff --git a/components/ShoutButton.vue b/components/ShoutButton.vue index 84de685f1..011b30f38 100644 --- a/components/ShoutButton.vue +++ b/components/ShoutButton.vue @@ -6,7 +6,7 @@ :disabled="disabled || loading" danger size="x-large" - icon="heart" + icon="bullhorn" @click="shout" /> diff --git a/graphql/UserProfileQuery.js b/graphql/UserProfileQuery.js index 38646e386..de1992885 100644 --- a/graphql/UserProfileQuery.js +++ b/graphql/UserProfileQuery.js @@ -6,14 +6,11 @@ export default gql(` id name avatar - createdAt - friendsCount - friends { - id + about + location { name - slug - avatar } + createdAt badges { id key @@ -63,6 +60,11 @@ export default gql(` deleted image createdAt + categories { + id + name + icon + } author { User { id diff --git a/nuxt.config.js b/nuxt.config.js index 59588a8ee..33a1cc314 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,10 +1,5 @@ const pkg = require('./package') -const envWhitelist = [ - 'NODE_ENV', - 'BACKEND_URL', - 'MAINTENANCE' -] - +const envWhitelist = ['NODE_ENV', 'BACKEND_URL', 'MAINTENANCE'] module.exports = { mode: 'universal', @@ -102,6 +97,7 @@ module.exports = { */ modules: [ '@nuxtjs/apollo', + '@nuxtjs/axios', ['@nuxtjs/dotenv', { only: envWhitelist }], ['nuxt-env', { keys: envWhitelist }] ], @@ -129,7 +125,7 @@ module.exports = { // }, // required clientConfigs: { - default: '~/plugins/apollo-config.js', + default: '~/plugins/apollo-config.js' } }, diff --git a/package.json b/package.json index 2125914ff..f24b443e0 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ }, "dependencies": { "@nuxtjs/apollo": "^4.0.0-rc3", + "@nuxtjs/axios": "^5.3.4", "@nuxtjs/dotenv": "^1.3.0", "accounting": "^0.4.1", "cross-env": "^5.2.0", diff --git a/pages/admin.vue b/pages/admin.vue index 13f4b6705..48250e000 100644 --- a/pages/admin.vue +++ b/pages/admin.vue @@ -47,6 +47,10 @@ export default { name: 'Categories', path: `/admin/categories` }, + { + name: 'Tags', + path: `/admin/tags` + }, { name: 'Settings', path: `/admin/settings` diff --git a/pages/admin/categories.vue b/pages/admin/categories.vue index 0c7f18075..045542541 100644 --- a/pages/admin/categories.vue +++ b/pages/admin/categories.vue @@ -1,7 +1,42 @@ + + diff --git a/pages/admin/tags.vue b/pages/admin/tags.vue new file mode 100644 index 000000000..45ab9a2a3 --- /dev/null +++ b/pages/admin/tags.vue @@ -0,0 +1,47 @@ + + + diff --git a/pages/index.vue b/pages/index.vue index e267c6121..846dc9f98 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -106,6 +106,7 @@ export default { categories { id name + icon } shoutedCount } diff --git a/pages/post/_slug/index.vue b/pages/post/_slug/index.vue index 528be4fd4..adda11db9 100644 --- a/pages/post/_slug/index.vue +++ b/pages/post/_slug/index.vue @@ -17,11 +17,18 @@ :count="post.shoutedCount" :post-id="post.id" /> -
+   + +