Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
bmf-san committed Jan 27, 2022
1 parent 088fc45 commit e407512
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 38 deletions.
6 changes: 4 additions & 2 deletions app/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
</template>

<script>
import { defineComponent } from "vue";
import Navigation from "./components/Navigation";
import Footer from "./components/Footer";
export default {
export default defineComponent({
name: "App",
components: {
Navigation,
Footer
}
};
});
</script>
6 changes: 4 additions & 2 deletions app/src/components/Error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
</template>

<script>
export default {
import { defineComponent } from "vue";
export default defineComponent({
name: "Error",
props: {
error: String
}
};
});
</script>
6 changes: 4 additions & 2 deletions app/src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
</template>

<script>
export default {
import { defineComponent } from "vue";
export default defineComponent({
name: "Footer"
};
});
</script>
6 changes: 4 additions & 2 deletions app/src/components/Loader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
</template>

<script>
export default {
import { defineComponent } from "vue";
export default defineComponent({
name: "Loader"
};
});
</script>

<style scoped>
Expand Down
6 changes: 4 additions & 2 deletions app/src/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@
</template>

<script>
import { defineComponent } from "vue";
import apiClient from "../modules/apiClient";
import router from "../router";
import storage from "../storage";
export default {
export default defineComponent({
name: "Navigation",
computed: {
isActive() {
Expand Down Expand Up @@ -92,5 +94,5 @@ export default {
}
}
}
};
});
</script>
6 changes: 4 additions & 2 deletions app/src/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
</template>

<script>
export default {
import { defineComponent } from "vue";
export default defineComponent({
name: "Pagination",
props: {
name: String,
Expand All @@ -36,7 +38,7 @@ export default {
return i == this.page;
}
}
};
});
</script>

<style scoped>
Expand Down
6 changes: 4 additions & 2 deletions app/src/pages/Categories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ const defaultPage = 1;
const defaultLimit = 10;
const defaultPageCount = 10;
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Pagination from "@/components/Pagination.vue";
import apiClient from "../modules/apiClient";
import storage from "../storage";
export default {
export default defineComponent({
name: "Categories",
components: {
Loader,
Expand Down Expand Up @@ -141,7 +143,7 @@ export default {
}
}
}
};
});
</script>

<style scoped>
Expand Down
6 changes: 4 additions & 2 deletions app/src/pages/Comments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ const defaultPage = 1;
const defaultLimit = 10;
const defaultPageCount = 10;
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Pagination from "@/components/Pagination.vue";
import apiClient from "../modules/apiClient";
export default {
export default defineComponent({
name: "Comments",
components: {
Loader,
Expand Down Expand Up @@ -113,7 +115,7 @@ export default {
}
}
}
};
});
</script>

<style scoped>
Expand Down
5 changes: 3 additions & 2 deletions app/src/pages/CreateCategory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
import router from "../router";
export default {
export default defineComponent({
name: "CreateCategory",
components: {
Loader,
Expand Down Expand Up @@ -61,5 +62,5 @@ export default {
}
}
}
};
});
</script>
5 changes: 3 additions & 2 deletions app/src/pages/CreatePost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
Expand All @@ -81,7 +82,7 @@ import "highlight.js/styles/github.css";
import router from "../router";
import storage from "../storage";
export default {
export default defineComponent({
name: "CreatePost",
components: {
Loader,
Expand Down Expand Up @@ -203,7 +204,7 @@ export default {
}
}
}
};
});
</script>

<style scoped>
Expand Down
5 changes: 3 additions & 2 deletions app/src/pages/CreateTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
import router from "../router";
export default {
export default defineComponent({
name: "CreateTag",
components: {
Loader,
Expand Down Expand Up @@ -61,7 +62,7 @@ export default {
}
}
}
};
});
</script>

<style scoped></style>
5 changes: 3 additions & 2 deletions app/src/pages/EditCategory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
export default {
export default defineComponent({
name: "EditCategory",
components: {
Loader,
Expand Down Expand Up @@ -82,5 +83,5 @@ export default {
}
}
}
};
});
</script>
5 changes: 3 additions & 2 deletions app/src/pages/EditComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import consts from "../consts/comments";
import apiClient from "../modules/apiClient";
import storage from "../storage";
export default {
export default defineComponent({
name: "EditComment",
components: {
Loader,
Expand Down Expand Up @@ -121,5 +122,5 @@ export default {
}
}
}
};
});
</script>
5 changes: 3 additions & 2 deletions app/src/pages/EditPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
Expand All @@ -79,7 +80,7 @@ import hljs from "highlight.js";
import "highlight.js/styles/github.css";
import storage from "../storage";
export default {
export default defineComponent({
name: "EditPost",
components: {
Loader,
Expand Down Expand Up @@ -226,7 +227,7 @@ export default {
}
}
}
};
});
</script>

<style scoped>
Expand Down
5 changes: 3 additions & 2 deletions app/src/pages/EditTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
export default {
export default defineComponent({
name: "EditTag",
components: {
Loader,
Expand Down Expand Up @@ -82,5 +83,5 @@ export default {
}
}
}
};
});
</script>
6 changes: 4 additions & 2 deletions app/src/pages/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
</template>

<script>
export default {
import { defineComponent } from "vue";
export default defineComponent({
name: "Home"
};
});
</script>

<style>
Expand Down
6 changes: 4 additions & 2 deletions app/src/pages/Posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ const defaultPage = 1;
const defaultLimit = 10;
const defaultPageCount = 10;
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Pagination from "@/components/Pagination.vue";
import apiClient from "../modules/apiClient";
export default {
export default defineComponent({
name: "Posts",
components: {
Loader,
Expand Down Expand Up @@ -142,7 +144,7 @@ export default {
}
}
}
};
});
</script>

<style scoped>
Expand Down
5 changes: 3 additions & 2 deletions app/src/pages/Signin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
</template>

<script>
import { defineComponent } from "vue";
import Loader from "../components/Loader";
import Error from "../components/Error";
import apiClient from "../modules/apiClient";
import router from "../router";
import storage from "../storage";
export default {
export default defineComponent({
name: "Signin",
components: {
Loader,
Expand Down Expand Up @@ -64,5 +65,5 @@ export default {
}
}
}
};
});
</script>
5 changes: 3 additions & 2 deletions app/src/pages/Tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ const defaultPage = 1;
const defaultLimit = 10;
const defaultPageCount = 10;
import { defineComponent } from "vue";
import Loader from "@/components/Loader.vue";
import Pagination from "@/components/Pagination.vue";
import apiClient from "../modules/apiClient";
import storage from "../storage";
export default {
export default defineComponent({
name: "Tags",
components: {
Loader,
Expand Down Expand Up @@ -140,7 +141,7 @@ export default {
}
}
}
};
});
</script>

<style scoped>
Expand Down

0 comments on commit e407512

Please sign in to comment.