--- /dev/null
+export default {
+ props: ["categories"],
+ data: function() {
+ return {
+ currentAxis: "",
+ currentPosition: 0,
+ currentOp: "",
+ filters: [],
+ }
+ },
+ methods: {
+ addFilter() {
+ filters.push(
+ {axis: this.currentAxis, op: this.currentOp, value: this.currentPosition}
+ )
+ }
+ },
+ template: `
+ <input type="text" v-model="currentAxis" placeholder="Axis name" />
+ <input type="number" v-model="currentPosition" placeholder="Position" />
+ <select v-model="currentOp">
+ <option value="<="><=</option>
+ <option value=">=">>=</option>
+ <option value="=">=</option>
+ </select>
+ <button @click="addFilter">Add Filter</button>
+ `
+}
\ No newline at end of file
import Panel from "./Panel.js";
import TagView from "./TagView.js";
import AddTag from "./AddTag.js";
+ import AddTags from "./AddTags.js";
import AddCategory from "./AddCategory.js";
import VFView from "./VFView.js";
Vue.component('panel', Panel);
Vue.component('tag-view', TagView);
Vue.component('add-tag', AddTag);
+ Vue.component("add-tags", AddTags);
Vue.component('add-category', AddCategory);
Vue.component('vf-view', VFView);