This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
138 changed files
with
8,264 additions
and
42,533 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"module": { | ||
"type": "commonjs" | ||
}, | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import cli from '../src/cli' | ||
import path from 'path' | ||
|
||
global.awtrix = { | ||
rootPath: path.dirname(path.resolve(__dirname)), | ||
mode: 'dev' | ||
} | ||
|
||
cli(process.argv) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require('path') | ||
|
||
global.awtrix = { | ||
rootPath: path.dirname(path.resolve(__dirname)), | ||
mode: 'static' | ||
} | ||
|
||
require('../dist/backend/cli').default(process.argv) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Plugin } from 'vite' | ||
import path from 'path' | ||
|
||
export default function importStylus(): Plugin { | ||
return { | ||
name: 'vite-stylus-import-plugin', | ||
async transform(code, id) { | ||
if (/.stylus$/g.test(id)) { | ||
return { | ||
code: ` | ||
@import "${path.resolve(__dirname, 'web/assets/stylus/vars/index')}" | ||
${code} | ||
`, | ||
map: null, | ||
} | ||
} | ||
return null | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
// Nuxt Typed Vuex accessor types | ||
import { accessorType } from '~/store' | ||
|
||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
$accessor: typeof accessorType | ||
declare namespace NodeJS { | ||
interface GlobalAwtrixOptions { | ||
rootPath: string, | ||
mode: 'dev' | 'static', | ||
} | ||
} | ||
|
||
declare module '@nuxt/types' { | ||
interface NuxtAppOptions { | ||
$accessor: typeof accessorType | ||
export interface Global { | ||
awtrix: GlobalAwtrixOptions | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
"@@/*": ["./*"] | ||
} | ||
}, | ||
"exclude": ["node_modules", ".nuxt", "dist"] | ||
"exclude": ["node_modules", "dist"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"watch": ["./src"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.