diff --git a/old_tests/.meteor/.finished-upgraders b/old_tests/.meteor/.finished-upgraders
deleted file mode 100644
index a802037..0000000
--- a/old_tests/.meteor/.finished-upgraders
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file contains information which helps Meteor properly upgrade your
-# app when you run 'meteor update'. You should check it into version control
-# with your project.
-
-notices-for-0.9.0
-notices-for-0.9.1
-0.9.4-platform-file
-notices-for-facebook-graph-api-2
-1.2.0-standard-minifiers-package
-1.2.0-meteor-platform-split
-1.2.0-cordova-changes
-1.2.0-breaking-changes
-1.3.0-split-minifiers-package
-1.3.5-remove-old-dev-bundle-link
-1.4.0-remove-old-dev-bundle-link
-1.4.1-add-shell-server-package
-1.4.3-split-account-service-packages
diff --git a/old_tests/.meteor/.gitignore b/old_tests/.meteor/.gitignore
deleted file mode 100644
index 2b8ab36..0000000
--- a/old_tests/.meteor/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-local
-dev_bundle
diff --git a/old_tests/.meteor/.id b/old_tests/.meteor/.id
deleted file mode 100644
index 810726d..0000000
--- a/old_tests/.meteor/.id
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file contains a token that is unique to your project.
-# Check it into your repository along with the rest of this directory.
-# It can be used for purposes such as:
-# - ensuring you don't accidentally deploy one app on top of another
-# - providing package authors with aggregated statistics
-
-kokr2o1cqd6xiuod4bs
diff --git a/old_tests/.meteor/packages b/old_tests/.meteor/packages
deleted file mode 100644
index c1f4b11..0000000
--- a/old_tests/.meteor/packages
+++ /dev/null
@@ -1,40 +0,0 @@
-# Meteor packages used by this project, one per line.
-# Check this file (and the other files in this directory) into your repository.
-#
-# 'meteor add' and 'meteor remove' will edit this file for you,
-# but you can also edit it by hand.
-
-meteor-base@1.0.4 # Packages every Meteor app needs to have
-mobile-experience@1.0.4 # Packages for a great mobile UX
-mongo@1.1.15 # The database Meteor supports right now
-reactive-var@1.0.11 # Reactive variable for tracker
-jquery@1.11.10 # Helpful client-side library
-tracker@1.1.2 # Meteor's client-side reactive programming library
-
-standard-minifier-css@1.3.3 # CSS minifier run for production mode
-standard-minifier-js@1.2.2 # JS minifier run for production mode
-es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers.
-ecmascript@0.6.3 # Enable ECMAScript2015+ syntax in app code
-
-static-html@1.1.12_1
-check@1.2.4
-
-apollo
-
-ccorcos:subs-cache
-meteorhacks:fast-render
-
-akryum:vue
-akryum:vue-component
-akryum:vue-router
-akryum:vuex
-akryum:vue-i18n
-akryum:vue-i18n-ui
-akryum:vue-less
-akryum:vue-sass
-akryum:vue-stylus
-akryum:vue-jade
-akryum:vue-coffee
-
-use-vue-component
-shell-server@0.2.2
diff --git a/old_tests/.meteor/platforms b/old_tests/.meteor/platforms
deleted file mode 100644
index efeba1b..0000000
--- a/old_tests/.meteor/platforms
+++ /dev/null
@@ -1,2 +0,0 @@
-server
-browser
diff --git a/old_tests/.meteor/release b/old_tests/.meteor/release
deleted file mode 100644
index e6940fd..0000000
--- a/old_tests/.meteor/release
+++ /dev/null
@@ -1 +0,0 @@
-METEOR@1.4.3.1
diff --git a/old_tests/.meteor/versions b/old_tests/.meteor/versions
deleted file mode 100644
index 3dd1ecb..0000000
--- a/old_tests/.meteor/versions
+++ /dev/null
@@ -1,98 +0,0 @@
-accounts-base@1.2.14
-akryum:npm-check@0.0.3
-akryum:vue@1.2.2
-akryum:vue-compiler@2.1.10
-akryum:vue-component@0.8.7
-akryum:vue-component-dev-client@0.2.5
-akryum:vue-coffee@0.0.5
-akryum:vue-component-dev-server@0.0.5
-akryum:vue-i18n@0.0.5
-akryum:vue-i18n-ui@0.0.5
-akryum:vue-jade@0.0.1
-akryum:vue-less@0.0.4
-akryum:vue-router@0.2.2
-akryum:vue-sass@0.0.4
-akryum:vue-stylus@0.0.4
-akryum:vuex@0.4.1
-allow-deny@1.0.5
-apollo@0.3.1
-autoupdate@1.3.12
-babel-compiler@6.14.1
-babel-runtime@1.0.1
-base64@1.0.10
-binary-heap@1.0.10
-blaze@2.2.1
-blaze-tools@1.0.10
-boilerplate-generator@1.0.11
-caching-compiler@1.1.9
-caching-html-compiler@1.1.0
-callback-hook@1.0.10
-ccorcos:subs-cache@0.2.1
-check@1.2.5
-chuangbo:cookie@1.1.0
-coffeescript@1.11.1_4
-ddp@1.2.5
-ddp-client@1.3.3
-ddp-common@1.2.8
-ddp-rate-limiter@1.0.6
-ddp-server@1.3.13
-deps@1.0.12
-diff-sequence@1.0.7
-ecmascript@0.6.3
-ecmascript-runtime@0.3.15
-ejson@1.0.13
-es5-shim@4.6.15
-fastclick@1.0.13
-geojson-utils@1.0.10
-hot-code-push@1.0.4
-html-tools@1.0.11
-htmljs@1.0.11
-http@1.2.11
-id-map@1.0.9
-jquery@1.11.10
-launch-screen@1.1.1
-livedata@1.0.18
-localstorage@1.0.12
-logging@1.1.17
-meteor@1.6.1
-meteor-base@1.0.4
-meteorhacks:fast-render@2.16.0
-meteorhacks:inject-data@2.0.0
-meteorhacks:meteorx@1.4.1
-meteorhacks:picker@1.0.3
-minifier-css@1.2.16
-minifier-js@1.2.17
-minimongo@1.0.20
-mobile-experience@1.0.4
-mobile-status-bar@1.0.14
-modules@0.7.9
-modules-runtime@0.7.9
-mongo@1.1.15
-mongo-id@1.0.6
-npm-mongo@2.2.16_1
-observe-sequence@1.0.15
-ordered-dict@1.0.9
-promise@0.8.8
-random@1.0.10
-rate-limit@1.0.6
-reactive-var@1.0.11
-reload@1.1.11
-retry@1.0.9
-routepolicy@1.0.12
-service-configuration@1.0.11
-shell-server@0.2.2
-spacebars@1.0.13
-spacebars-compiler@1.1.0
-standard-minifier-css@1.3.3
-standard-minifier-js@1.2.2
-staringatlights:inject-data@2.0.5
-static-html@1.2.0
-templating-tools@1.1.0
-tmeasday:check-npm-versions@0.3.1
-tracker@1.1.2
-ui@1.0.12
-underscore@1.0.10
-url@1.1.0
-use-vue-component@0.0.1
-webapp@1.3.13
-webapp-hashing@1.0.9
diff --git a/old_tests/client/main.html b/old_tests/client/main.html
deleted file mode 100644
index 3081c27..0000000
--- a/old_tests/client/main.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- Meteor + Vue
-
-
-
-
-
diff --git a/old_tests/client/main.js b/old_tests/client/main.js
deleted file mode 100644
index 82cc42b..0000000
--- a/old_tests/client/main.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// Libs
-import {Meteor} from 'meteor/meteor';
-import Vue from 'vue';
-import {Router} from 'meteor/akryum:vue-router';
-import ApolloClient from 'apollo-client';
-import { meteorClientConfig } from 'meteor/apollo';
-import gql from 'graphql-tag';
-import VueApollo from 'vue-apollo';
-
-// Apollo
-const apolloClient = new ApolloClient(meteorClientConfig());
-window.gql = gql;
-Vue.use(VueApollo, {
- apolloClient,
-});
-
-// Api
-import '/imports/api/methods';
-
-// Subscriptions cache
-const subsCache = new SubsCache({
- expireAfter: 15,
- cacheLimit: -1
-});
-// We can replace the default subcription function with our own
-// Here we replace the native subscribe() with a cached one
-Vue.config.meteor.subscribe = function(...args) {
- return subsCache.subscribe(...args);
-};
-
-Vue.config.meteor.freeze = true;
-
-// Router
-const router = new Router({
- history: true,
- saveScrollPosition: true
-});
-
-// App layout
-import AppLayout from '/imports/ui/AppLayout.vue';
-
-// Not found
-import NotFound from '/imports/ui/NotFound.vue';
-router.on('*', {
- component: NotFound
-});
-
-// App start
-Meteor.startup(function() {
- // Start the router and create root vue instance
- router.start(AppLayout, '#app');
-});
diff --git a/old_tests/client/main.routes.js b/old_tests/client/main.routes.js
deleted file mode 100644
index 73ca4c1..0000000
--- a/old_tests/client/main.routes.js
+++ /dev/null
@@ -1,27 +0,0 @@
-export default {
- '/': {
- name: 'home',
- component: '/imports/ui/Home.vue'
- },
- '/forum': {
- name: 'forum',
- component: '/imports/ui/Forum.vue'
- },
- '/apollo': {
- name: 'apollo',
- component: '/imports/ui/Apollo.vue'
- },
- '/vuex': {
- name: 'vuex',
- component: '/imports/ui/vuex/VuexDemo.vue',
- subRoutes: {
- '/': {
- component: '/imports/ui/vuex/Counter.vue'
- },
- '/tracker': {
- name: 'vuex.tracker',
- component: '/imports/ui/vuex/Tracker.vue'
- }
- }
- }
-};
diff --git a/old_tests/client/ui/Post.vue b/old_tests/client/ui/Post.vue
deleted file mode 100644
index f809f2c..0000000
--- a/old_tests/client/ui/Post.vue
+++ /dev/null
@@ -1,64 +0,0 @@
-
-.post
- .message {{data.message}}
- a.action(@click="removePost") x
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/old_tests/client/ui/Thread.vue b/old_tests/client/ui/Thread.vue
deleted file mode 100644
index f619d0a..0000000
--- a/old_tests/client/ui/Thread.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
{{data.name}}
-
-
-
-
-
-
-
-
-
- Loading...
-
-
-
-
-
- {{ $subReady | json }}
-
-
-
-
diff --git a/old_tests/client/ui/links-menu.vue b/old_tests/client/ui/links-menu.vue
deleted file mode 100644
index 63e0a2f..0000000
--- a/old_tests/client/ui/links-menu.vue
+++ /dev/null
@@ -1,27 +0,0 @@
-
-.app-menu
- a(v-for="link in links", v-link="link") {{$t(link.lb)}}
-
-
-
-
-
diff --git a/old_tests/i18n/langs.json b/old_tests/i18n/langs.json
deleted file mode 100644
index d4e0e5a..0000000
--- a/old_tests/i18n/langs.json
+++ /dev/null
@@ -1 +0,0 @@
-["en", "fr"]
diff --git a/old_tests/i18n/pages.en.i18n.json b/old_tests/i18n/pages.en.i18n.json
deleted file mode 100644
index 1a60d00..0000000
--- a/old_tests/i18n/pages.en.i18n.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "pages": {
- "home": {
- "title": "Home",
- "welcome": "Be Creative",
- "text1": "Create awesome apps swiftly with vuejs & meteor!",
- "more": "Learn more",
- "button": "Don't click me"
- },
- "forum": {
- "title": "Forum",
- "thread": {
- "add": "Type new thread name",
- "delete": "Delete thread"
- },
- "message": {
- "add": "Type new message"
- }
- },
- "apollo": {
- "title": "Apollo",
- "tags": {
- "title": "Tags",
- "info": "These tags are fetched from an apollo server.",
- "add": "Add a tag"
- },
- "tests": {
- "title": "Tests",
- "hello": "Hello",
- "ping": "Ping",
- "input": "Enter a message"
- }
- },
- "vuex": {
- "title": "Vuex",
- "counter": {
- "title": "Counter",
- "info": "The counter value is coming from the vuex store and is changed by mutations.",
- "count": "Count is {count}",
- "increment": "Increment",
- "decrement": "Decrement",
- "amount": "Amount"
- },
- "tracker": {
- "title": "Tracker",
- "info": "Data is coming from the vuex store and is being updated by meteor tracker. The state of the date sorting is also managed by the store.",
- "date": "Date"
- }
- }
- }
-}
diff --git a/old_tests/i18n/pages.fr.i18n.json b/old_tests/i18n/pages.fr.i18n.json
deleted file mode 100644
index 8020309..0000000
--- a/old_tests/i18n/pages.fr.i18n.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "pages": {
- "home": {
- "title": "Accueil",
- "welcome": "Soyez créatifs",
- "text1": "Développez d'incroyables applications rapidement et facilement avec meteor & vue !",
- "more": "En savoir plus",
- "button": "Ne me cliquez pas"
- },
- "forum": {
- "title": "Forum",
- "thread": {
- "add": "Entrer le nom du nouveau sujet",
- "delete": "Supprimer le sujet"
- },
- "message": {
- "add": "Entrer un nouveau message"
- }
- }
- }
-}
diff --git a/old_tests/i18n/pages2.fr.i18n.json b/old_tests/i18n/pages2.fr.i18n.json
deleted file mode 100644
index 08f3ab0..0000000
--- a/old_tests/i18n/pages2.fr.i18n.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "pages": {
- "apollo": {
- "title": "Apollo",
- "tags": {
- "title": "Etiquettes",
- "info": "Ces étiquettes ont été chargées depuis un serveur apollo.",
- "add": "Ajouter une étiquette"
- },
- "tests": {
- "title": "Tests",
- "hello": "Hello",
- "ping": "Ping",
- "input": "Entrer un message"
- }
- },
- "vuex": {
- "title": "Vuex",
- "counter": {
- "title": "Compteur",
- "info": "La valeur du compteur provient du magasin vuex et elle est modifiée via des mutations.",
- "count": "Le compteur est {count}",
- "increment": "Incrémenter",
- "decrement": "Décrémenter",
- "amount": "Quantité"
- },
- "tracker": {
- "title": "Tracker",
- "info": "Ces données proviennent du magasin vuex et sont mises à jour par meteor tracker. L'état du tri des dates est également géré par le magasin.",
- "date": "Date"
- }
- }
- }
-}
diff --git a/old_tests/imports/api/apollo/apollo-server.js b/old_tests/imports/api/apollo/apollo-server.js
deleted file mode 100644
index d6c4fac..0000000
--- a/old_tests/imports/api/apollo/apollo-server.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import { createApolloServer } from 'meteor/apollo';
-import { makeExecutableSchema } from 'graphql-tools';
-
-import typeDefs from './schema';
-import resolvers from './resolvers';
-
-const schema = makeExecutableSchema({
- typeDefs,
- resolvers,
-});
-
-createApolloServer({
- graphiql: true,
- pretty: true,
- schema,
- resolvers,
-});
diff --git a/old_tests/imports/api/apollo/resolvers.js b/old_tests/imports/api/apollo/resolvers.js
deleted file mode 100644
index 372721f..0000000
--- a/old_tests/imports/api/apollo/resolvers.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Fake word generator
-import faker from 'faker';
-
-// Let's generate some tags
-var id = 0;
-var tags = [];
-for (let i = 0; i < 42; i++) {
- addTag(faker.random.word());
-}
-
-function addTag(label) {
- let t = {
- id: id++,
- label
- };
- tags.push(t);
- return t;
-}
-
-const resolvers = {
- Query: {
- tags(root, args, context) {
- return tags;
- },
- hello(root, args, context) {
- return "Hello world!";
- },
- ping(root, { message }, context) {
- return `Answering ${message}`;
- }
- },
- Mutation: {
- addTag(root, { label }, context) {
- console.log(`adding tag '${label}'`);
- return addTag(label);
- }
- }
-}
-
-export default resolvers;
diff --git a/old_tests/imports/api/apollo/schema.js b/old_tests/imports/api/apollo/schema.js
deleted file mode 100644
index 8dd5a40..0000000
--- a/old_tests/imports/api/apollo/schema.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const schema = `
-type Tag {
- id: Int
- label: String
-}
-
-type Query {
- tags: [Tag]
- hello: String
- ping(message: String!): String
-}
-
-type Mutation {
- addTag(label: String!): Tag
-}
-
-schema {
- query: Query
- mutation: Mutation
-}
-`;
-
-export default [schema];
diff --git a/old_tests/imports/api/collections.js b/old_tests/imports/api/collections.js
deleted file mode 100644
index 5a5eb5d..0000000
--- a/old_tests/imports/api/collections.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export const Threads = new Mongo.Collection('threads')
-export const Posts = new Mongo.Collection('posts')
diff --git a/old_tests/imports/api/methods.js b/old_tests/imports/api/methods.js
deleted file mode 100644
index 965eb8f..0000000
--- a/old_tests/imports/api/methods.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import {Meteor} from 'meteor/meteor';
-import {Threads, Posts} from './collections';
-
-Meteor.methods({
- 'threads.create': function(name) {
- check(name, String);
-
- let _id = Threads.insert({
- name,
- created: new Date(),
- date: new Date()
- })
-
- return _id;
- },
- 'threads.remove': function(_id) {
- check(_id, String);
- Posts.remove({
- thread_id: _id
- });
- Threads.remove(_id);
- },
- 'posts.create': function(thread_id, message) {
- check(thread_id, String);
- check(message, String);
-
- let thread = Threads.findOne(thread_id);
- if(!thread) {
- throw new Meteor.Error('Thread not found');
- }
-
- let _id = Posts.insert({
- thread_id,
- message,
- created: new Date()
- });
-
- Threads.update(thread_id, {
- $set: {
- date: new Date()
- }
- });
-
- return _id;
- },
- 'posts.remove': function(_id) {
- check(_id, String);
- Posts.remove(_id);
- }
-});
diff --git a/old_tests/imports/api/publications.js b/old_tests/imports/api/publications.js
deleted file mode 100644
index 12bf083..0000000
--- a/old_tests/imports/api/publications.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import { Meteor } from 'meteor/meteor';
-import { Threads, Posts } from './collections';
-
-Threads.lastsThreads = function(limit) {
- return Threads.find({}, { sort: { date: -1 }, limit: limit });
-};
-
-Meteor.publish('lasts-threads', function(limit){
- return Threads.lastsThreads(limit);
-});
-
-Meteor.publish('threads', function() {
- return Threads.find();
-});
-
-Meteor.publish('posts', function(thread_id) {
- check(thread_id, String);
-
- return Posts.find({
- thread_id
- });
-});
diff --git a/old_tests/imports/ui/Apollo.vue b/old_tests/imports/ui/Apollo.vue
deleted file mode 100644
index f781a23..0000000
--- a/old_tests/imports/ui/Apollo.vue
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
{{$t('pages.apollo.title')}}
-
-
-
-
-
-
{{$t('pages.apollo.tests.title')}}
-
-
{{$t('pages.apollo.tests.hello')}}
-
- {{hello}}
-
-
-
-
{{$t('pages.apollo.tests.ping')}}
-
-
- {{pingMessage}}
-
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/AppLayout.vue b/old_tests/imports/ui/AppLayout.vue
deleted file mode 100644
index 8c7eb35..0000000
--- a/old_tests/imports/ui/AppLayout.vue
+++ /dev/null
@@ -1,106 +0,0 @@
-.app-layout
- locale-select.lang-select
- links-menu(:links="links")
- router-view
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/Forum.vue b/old_tests/imports/ui/Forum.vue
deleted file mode 100644
index 52a288f..0000000
--- a/old_tests/imports/ui/Forum.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
{{$t('pages.forum.title')}} ({{count}})
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/Home.vue b/old_tests/imports/ui/Home.vue
deleted file mode 100644
index d167369..0000000
--- a/old_tests/imports/ui/Home.vue
+++ /dev/null
@@ -1,43 +0,0 @@
-
-.home
- h1 {{$t('pages.home.welcome')}}
- p {{$t('pages.home.text1')}}
- a(href="https://github.com/Akryum/meteor-vue-component") {{$t('pages.home.more')}}
- img.logo(src="/img/vue.png")
- img.logo(src="/img/meteor.png")
-
- p
- button2(:label="$t('pages.home.button')", @action="handleClick", v-if="!clicked")
- .counter {{ count }}
-
-
-
-
-
diff --git a/old_tests/imports/ui/NotFound.vue b/old_tests/imports/ui/NotFound.vue
deleted file mode 100644
index 5e6c767..0000000
--- a/old_tests/imports/ui/NotFound.vue
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- Not Found
-
-
- This is not the page you are looking for.
Return home
-
-
-
-
-
diff --git a/old_tests/imports/ui/ThreadItem.vue b/old_tests/imports/ui/ThreadItem.vue
deleted file mode 100644
index 45a66ef..0000000
--- a/old_tests/imports/ui/ThreadItem.vue
+++ /dev/null
@@ -1,38 +0,0 @@
-
- {{data.name}}
-
-
-
-
-
diff --git a/old_tests/imports/ui/colors.sass b/old_tests/imports/ui/colors.sass
deleted file mode 100644
index 704a299..0000000
--- a/old_tests/imports/ui/colors.sass
+++ /dev/null
@@ -1,5 +0,0 @@
-$message-color: green
-$message-background: #eee
-$message-border-color: black
-
-$app-color: #40b883
diff --git a/old_tests/imports/ui/mixins.less b/old_tests/imports/ui/mixins.less
deleted file mode 100644
index fd4432e..0000000
--- a/old_tests/imports/ui/mixins.less
+++ /dev/null
@@ -1,11 +0,0 @@
-.padding(@px) {
- padding: @px;
-}
-
-.margin(@px) {
- margin: @px;
-}
-
-.border-radius(@px) {
- border-radius: @px;
-}
diff --git a/old_tests/imports/ui/pixels.styl b/old_tests/imports/ui/pixels.styl
deleted file mode 100644
index b5cd36b..0000000
--- a/old_tests/imports/ui/pixels.styl
+++ /dev/null
@@ -1 +0,0 @@
-margin = 24px
diff --git a/old_tests/imports/ui/vuex/Counter.vue b/old_tests/imports/ui/vuex/Counter.vue
deleted file mode 100644
index 480d9e4..0000000
--- a/old_tests/imports/ui/vuex/Counter.vue
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- {{ $t('pages.vuex.counter.info') }}
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/vuex/Decrement.vue b/old_tests/imports/ui/vuex/Decrement.vue
deleted file mode 100644
index 65dc30b..0000000
--- a/old_tests/imports/ui/vuex/Decrement.vue
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/vuex/Display.vue b/old_tests/imports/ui/vuex/Display.vue
deleted file mode 100644
index 764c5a7..0000000
--- a/old_tests/imports/ui/vuex/Display.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
{{ $t('pages.vuex.counter.count', {count: counter}) }} ({{status}})
-
-
-
-
diff --git a/old_tests/imports/ui/vuex/Increment.vue b/old_tests/imports/ui/vuex/Increment.vue
deleted file mode 100644
index 71f0018..0000000
--- a/old_tests/imports/ui/vuex/Increment.vue
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/vuex/Tracker.vue b/old_tests/imports/ui/vuex/Tracker.vue
deleted file mode 100644
index 7784176..0000000
--- a/old_tests/imports/ui/vuex/Tracker.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- {{ $t('pages.vuex.tracker.info') }}
-
-
-
- {{ $t('pages.vuex.tracker.date') }}
- ▼
- ▲
-
-
-
- {{thread.name}}
- {{thread.date | date}}
-
-
-
-
-
-
-
-
diff --git a/old_tests/imports/ui/vuex/VuexDemo.vue b/old_tests/imports/ui/vuex/VuexDemo.vue
deleted file mode 100644
index 52488ab..0000000
--- a/old_tests/imports/ui/vuex/VuexDemo.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
{{ $t('pages.vuex.title') }}
-
-
-
-
-
-
diff --git a/old_tests/imports/vuex/modules/forum.js b/old_tests/imports/vuex/modules/forum.js
deleted file mode 100644
index eebe0a6..0000000
--- a/old_tests/imports/vuex/modules/forum.js
+++ /dev/null
@@ -1,94 +0,0 @@
-import {StoreSubModule} from 'meteor/akryum:vuex';
-
-const subModule = new StoreSubModule('forum');
-
-subModule.addState({
- sortDate: -1
-});
-
-subModule.addGetters({
- sortDate: state => state.sortDate
-});
-
-subModule.addMutations({
- THREADS_SORT_DATE(state, order) {
- state.sortDate = order;
- }
-});
-
-subModule.addActions({
- toggleSortDate({store, state}) {
- // state is immutable
- store.dispatch('THREADS_SORT_DATE', -1*state.sortDate);
- }
-});
-
-// Meteor integration
-
-// Import a meteor collection
-import {Threads} from '/imports/api/collections';
-
-// Add trackers to the store module
-subModule.addTrackers({
- // Name of the tracker
- threads() {
- // Context variables
- let sub;
-
- // You can execute arbitrary code here
-
- return {
- // Initialize the meteor data
- init(data) {
- data.threads = []
- },
- /*
- // When the tracker is being used
- activate() {
- // Subscribe to the publication
- sub = Meteor.subscribe('threads');
- },
- // When the tracker is no longer used
- deactivate() {
- // Stop the subscription
- sub.stop();
- },
- */
- subscribe: {
- threads: [],
- },
- // Watch store changes
- // State is relative to the module
- watch(state) {
- // state is immutable
- return {
- sortDate: state.sortDate
- }
- },
- // Update the meteor data
- // Data is relative to the module
- update(data, {sortDate}) {
- console.log(data);
- // Meteor data query
- let threads = Threads.find({}, {
- sort: {date: sortDate}
- }).fetch();
- console.log("updated threads", threads.length);
-
- // Update the module meteor data
- data.threads = Object.freeze(threads);
- },
- // Getters
- // These are computed properties and are cached by vue
- getters: {
- // Getters should follow the get naming convention
- getThreads: data => data.threads
- },
- // If true, the tracker will be activated right away
- // Else, you need to add it on a vue component or call tracker.addClient()
- isActivated: false
- }
- }
-});
-
-export default subModule;
diff --git a/old_tests/imports/vuex/store.js b/old_tests/imports/vuex/store.js
deleted file mode 100644
index 72512f5..0000000
--- a/old_tests/imports/vuex/store.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import {StoreModule} from 'meteor/akryum:vuex';
-
-const root = new StoreModule();
-
-// Add some initial state
-root.addState({
- counter: 0
-});
-
-// Using centralized getters is good practice
-// They are also cached by vue just like computed props
-root.addGetters({
- counter: state => state.counter,
- status: state => {
- if(state.counter === 0) {
- return 'None'
- } else if(state.counter === 1) {
- return 'One'
- } else {
- return 'Many'
- }
- }
-});
-
-// Only mutations can change the store state
-root.addMutations({
- INCREMENT(state, amount) {
- state.counter += amount;
- },
- DECREMENT(state, amount) {
- state.counter -= amount;
- }
-});
-
-// Using centralized actions is good practice
-root.addActions({
- increment({store}, amount) {
- // state is immutable
- store.dispatch('INCREMENT', amount);
- },
- decrement({store}, amount) {
- // state is immutable
- store.dispatch('DECREMENT', amount);
- }
-});
-
-// Submodule
-import forum from './modules/forum';
-root.addModule(forum);
-
-// Export the vuex native store
-export const store = root.exportStore();
diff --git a/old_tests/package.json b/old_tests/package.json
deleted file mode 100644
index 5e17b56..0000000
--- a/old_tests/package.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "meteor-vue-component",
- "private": true,
- "dependencies": {
- "apollo-client": "^0.5.0",
- "babel-runtime": "^6.20.0",
- "body-parser": "^1.15.2",
- "express": "^4.13.4",
- "faker": "^3.1.0",
- "graphql": "^0.7.0",
- "graphql-server-express": "^0.4.3",
- "graphql-tag": "^0.1.9",
- "graphql-tools": "^0.8.4",
- "js-cookie": "^2.1.2",
- "locale": "^0.1.0",
- "meteor-node-stubs": "~0.2.0",
- "vue": "^1.0.24",
- "vue-apollo": "^1.2.2",
- "vue-i18n": "^4.0.1",
- "vue-meteor-tracker": "^1.0.3",
- "vue-router": "^0.7.13",
- "vuex": "^1.0.0-rc.2"
- },
- "devDependencies": {}
-}
diff --git a/old_tests/public/img/droids.jpg b/old_tests/public/img/droids.jpg
deleted file mode 100644
index 4832ba9..0000000
Binary files a/old_tests/public/img/droids.jpg and /dev/null differ
diff --git a/old_tests/public/img/meteor.png b/old_tests/public/img/meteor.png
deleted file mode 100644
index 7289394..0000000
Binary files a/old_tests/public/img/meteor.png and /dev/null differ
diff --git a/old_tests/public/img/vue.png b/old_tests/public/img/vue.png
deleted file mode 100644
index 8bbf984..0000000
Binary files a/old_tests/public/img/vue.png and /dev/null differ
diff --git a/old_tests/server/main.js b/old_tests/server/main.js
deleted file mode 100644
index 50d63a8..0000000
--- a/old_tests/server/main.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import '/imports/api/methods';
-import '/imports/api/publications';
-
-import '/imports/api/apollo/apollo-server';
diff --git a/old_tests/server/routes.js b/old_tests/server/routes.js
deleted file mode 100644
index b4d23b0..0000000
--- a/old_tests/server/routes.js
+++ /dev/null
@@ -1,3 +0,0 @@
-FastRender.route('/forum', function(params) {
- this.subscribe('threads');
-});