netlify is more reliable
This commit is contained in:
1 parent
7fe8f5d154
commit
4dfff986d4
16 files changed
+42
-105
No files matched your search
@@ -9,7 +9,7 @@ div(style="width: 100vw; height: 100vh")
|
||||
import { Vue, Component } from 'nuxt-property-decorator'
|
||||
import MakeHtml from '@/assets/make-html'
|
||||
import matter from 'gray-matter'
|
||||
import { apiHash } from '@/assets/util'
|
||||
import { apiHash, HASH } from '@/assets/util'
|
||||
// @ts-ignore
|
||||
import shortHash from 'short-hash'
|
||||
import $ from 'cheerio'
|
||||
@@ -18,7 +18,6 @@ import scopeCss from 'scope-css'
|
||||
import h from 'hyperscript'
|
||||
import qs from 'querystring'
|
||||
import stringify from 'fast-json-stable-stringify'
|
||||
import { globalStore } from '../store'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -61,7 +60,7 @@ export default class RevealMd extends Vue {
|
||||
|
||||
if (path) {
|
||||
try {
|
||||
const raw = await apiHash(`/build/slides/${path}`, globalStore.hash.slides[path as string])
|
||||
const raw = await apiHash(`/build/slides/${path}`, HASH.slides[path as string])
|
||||
const { data, content } = matter(raw)
|
||||
|
||||
return {
|
||||
@@ -106,7 +105,7 @@ export default class RevealMd extends Vue {
|
||||
const { path } = this.$route.query
|
||||
if (!this.defaults.markdown && path) {
|
||||
try {
|
||||
const raw = await apiHash(`/build/slides/${path}`, globalStore.hash.slides[path as string])
|
||||
const raw = await apiHash(`/build/slides/${path}`, HASH.slides[path as string])
|
||||
const { data, content } = matter(raw)
|
||||
|
||||
this.defaults.markdown = content
|
||||
|
||||
Reference in new issue
Block a user