This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--client/App.vue--> | |
<template> | |
<v-app id="inspire"> | |
<v-navigation-drawer | |
v-model="drawer" | |
app | |
clipped | |
> | |
<v-list dense> | |
<v-list-item link> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--client/main.html--> | |
<head> | |
<title>The Todo App</title> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> | |
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
</head> | |
<body> | |
<div id="app"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//client/router.js | |
import Vue from 'vue' | |
import VueRouter from 'vue-router' | |
import Home from './pages/Home.vue' | |
import Mytodos from './pages/Mytodos.vue' | |
import Settings from './pages/Settings.vue' | |
import Help from './pages/Help.vue' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ObjectType, Field } from '@nestjs/graphql'; | |
import { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm'; | |
import { Comment } from './comment.entity'; | |
import { Like } from './likes.entity'; | |
import { Paginated } from '../../common/pagination'; | |
@ObjectType() | |
@Entity('blogs') | |
export class Blog { | |
@Field(() => String, { description: 'Id' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@nestjs/common'; | |
import { FirebaseAdmin, InjectFirebaseAdmin } from 'nestjs-firebase'; | |
@Injectable() | |
export class UploadService { | |
constructor( | |
@InjectFirebaseAdmin() private readonly firebase: FirebaseAdmin, | |
) {} | |
private async streamToBuffer(readableStream): Promise<Buffer> { | |
return new Promise((resolve, reject) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// plugins/apolloConfig.ts | |
import { createHttpLink, from, ApolloLink } from '@apollo/client/core' | |
import { onError } from '@apollo/client/link/error' | |
import { setContext } from '@apollo/client/link/context' | |
import { provideApolloClient } from '@vue/apollo-composable' | |
import createUploadLink from "apollo-upload-client/createUploadLink.mjs"; | |
export default defineNuxtPlugin((nuxtApp) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
export default { | |
components: { Loading, DropZone, TiptapEditor, VueMultiselect }, | |
data() { | |
return { | |
newPost: { | |
title: null, | |
featured: false, |