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 lang="ts"> | |
import type { Method } from '@inertiajs/inertia' | |
import type { PropType } from 'vue' | |
import type { RouteParamsWithQueryOverload, Config } from 'ziggy-js' | |
import { h } from 'vue' | |
import { Inertia, mergeDataIntoQueryString, shouldIntercept } from '@inertiajs/inertia' | |
import { getRouteGuard, BeforeRouteLeave, AfterRouteLeave } from '~/compostables/router' | |
type QueryStringArrayFormat = 'brackets' | 'indices' |
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 setup lang="ts"> | |
/** | |
* ColorPicker.vue | |
* Very simple color picker for vue 3 | |
* Only has 1 dependency tinycolor2 can be replaced with dedicated functions | |
* | |
* Preview: https://i.imgur.com/RjFUHsI.png | |
*/ | |
import tinycolor from 'tinycolor2' |
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 type { UnwrapNestedRefs } from 'vue' | |
import { createHeadManager, Page, PageProps, router } from '@inertiajs/core' | |
import { DefineComponent, defineComponent, h, markRaw, Plugin, PropType, ref, reactive, shallowRef } from 'vue' | |
import remember from './remember' | |
import { VuePageHandlerArgs } from './types' | |
import useForm from './useForm' | |
export interface InertiaAppProps { | |
initialPage: Page | |
initialComponent?: object |
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
/** | |
* Simple-Markdown | |
* =============== | |
* | |
* Simple-Markdown's primary goal is to be easy to adapt. It aims | |
* to be compliant with John Gruber's [Markdown Syntax page][1], | |
* but compatiblity with other markdown implementations' edge-cases | |
* will be sacrificed where it conflicts with simplicity or | |
* extensibility. | |
* |
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
/** | |
* Discord Markdown | |
* =============== | |
* | |
* This is a faithful recreation of discord flavored markdown as of 2024. | |
* | |
* Required: [vue-markdown.ts](https://gist.github.com/nurdism/f2e8a8d21aa11969b595f6b7698d7d62) | |
* Made by [nurdism](https://github.com/nurdism) | |
*/ |
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 * as fs from 'fs' | |
import * as path from 'path' | |
import sharp from 'sharp' | |
import { fileURLToPath } from 'url' | |
import emoji from 'emoji-datasource-twitter/emoji.json' | |
import converter from 'discord-emoji-converter' | |
import emojilib from 'emojilib' | |
export interface DataGroupList { |