-
Notifications
You must be signed in to change notification settings - Fork 58
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
16 changed files
with
2,615 additions
and
484 deletions.
There are no files selected for viewing
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,15 @@ | ||
const tailwindcss = require('tailwindcss'); | ||
const nesting = require('tailwindcss/nesting'); | ||
const autoprefixer = require('autoprefixer'); | ||
|
||
const config = { | ||
plugins: [ | ||
nesting(), | ||
//Some plugins, like tailwindcss/nesting, need to run before Tailwind, | ||
tailwindcss(), | ||
//But others, like autoprefixer, need to run after, | ||
autoprefixer | ||
] | ||
}; | ||
|
||
module.exports = config; |
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 @@ | ||
SELECT t * 2 as x FROM ${test_query} |
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 @@ | ||
SELECT 2 as t; |
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 @@ | ||
category,value_usd | ||
A,1345746 | ||
B,928475 | ||
C,929488 | ||
D,58573 | ||
E,59245 | ||
F,53893 | ||
G,9666 | ||
H,242 |
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 @@ | ||
SELECT * FROM ${query_on_the_page} |
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 @@ | ||
SELECT 1 as t |
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,158 @@ | ||
const plugin = require('tailwindcss/plugin'); | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: { | ||
relative: true, | ||
files: [ | ||
'./src/**/*.{html,js,svelte,ts,md}', // This is used for everything in base evidence template | ||
'../../pages/**/*.{html,js,svelte,ts,md}', // This is used in end user projects to let them access tailwind classes | ||
'../../src/**/*.{html,js,svelte,ts,md}' // This is used in end user projects to let them access tailwind classes | ||
] | ||
}, | ||
theme: { | ||
extend: { | ||
textShadow: { | ||
DEFAULT: '1px solid var(--tw-shadow-color)' | ||
}, | ||
gridTemplateRows: { | ||
auto: 'auto' | ||
}, | ||
fontFamily: { | ||
monospace: [ | ||
'Menlo', | ||
'Monaco', | ||
'"Lucida Console"', | ||
'"Liberation Mono"', | ||
'"DejaVu Sans Mono"', | ||
'"Bitstream Vera Sans Mono"', | ||
'"Courier New"', | ||
'monospace' | ||
], | ||
ui: [ | ||
'"SF Display"', | ||
'-apple-system', | ||
'BlinkMacSystemFont', | ||
'Roboto', | ||
'Helvetica', | ||
'Arial', | ||
'sans-serif', | ||
'"Apple Color Emoji"', | ||
'"Segoe UI Emoji"', | ||
'"Segoe UI Symbol"' | ||
], | ||
ui_compact: [ | ||
'"SF Compact Display"', | ||
'-apple-system', | ||
'BlinkMacSystemFont', | ||
'Roboto', | ||
'Helvetica', | ||
'Arial', | ||
'sans-serif', | ||
'"Apple Color Emoji"', | ||
'"Segoe UI Emoji"', | ||
'"Segoe UI Symbol"' | ||
] | ||
}, | ||
colors: { | ||
blue: { | ||
100: 'hsl(202, 100%, 95%, <alpha-value>)', | ||
200: 'hsl(204, 100%, 85%, <alpha-value>)', | ||
300: 'hsl(206, 95%, 72%, <alpha-value>)', | ||
400: 'hsl(208, 90%, 63%, <alpha-value>)', | ||
500: 'hsl(210, 85%, 54%, <alpha-value>)', | ||
600: 'hsl(212, 96%, 44%, <alpha-value>)', | ||
700: 'hsl(214, 98%, 38%, <alpha-value>)', | ||
800: 'hsl(217, 98%, 33%, <alpha-value>)', | ||
900: 'hsl(220, 99%, 24%, <alpha-value>)', | ||
999: 'hsl(222, 100%, 18%, <alpha-value>)', | ||
link: 'hsl(205, 62%, 38%, <alpha-value>)' | ||
}, | ||
green: { | ||
100: 'hsl(167, 100%, 94%, <alpha-value>)', | ||
200: 'hsl(166, 100%, 87%, <alpha-value>)', | ||
300: 'hsl(163, 93%, 76%, <alpha-value>)', | ||
400: 'hsl(161, 90%, 63%, <alpha-value>)', | ||
500: 'hsl(159, 88%, 44%, <alpha-value>)', | ||
600: 'hsl(158, 91%, 35%, <alpha-value>)', | ||
700: 'hsl(156, 93%, 28%, <alpha-value>)', | ||
800: 'hsl(154, 95%, 23%, <alpha-value>)', | ||
900: 'hsl(152, 100%, 18%, <alpha-value>)', | ||
999: 'hsl(150, 100%, 14%, <alpha-value>)' | ||
}, | ||
grey: { | ||
100: 'hsl(217, 33%, 97%, <alpha-value>)', | ||
200: 'hsl(215, 15%, 91%, <alpha-value>)', | ||
300: 'hsl(211, 16%, 82%, <alpha-value>)', | ||
400: 'hsl(212, 13%, 65%, <alpha-value>)', | ||
500: 'hsl(212, 10%, 53%, <alpha-value>)', | ||
600: 'hsl(212, 12%, 43%, <alpha-value>)', | ||
700: 'hsl(210, 14%, 37%, <alpha-value>)', | ||
800: 'hsl(210, 18%, 30%, <alpha-value>)', | ||
900: 'hsl(210, 20%, 25%, <alpha-value>)', | ||
999: 'hsl(211, 24%, 16%, <alpha-value>)' | ||
}, | ||
red: { | ||
50: '#fdf1f1', | ||
100: 'hsl(0, 100%, 95%, <alpha-value>)', | ||
200: 'hsl(0, 100%, 87%, <alpha-value>)', | ||
300: 'hsl(0, 100%, 80%, <alpha-value>)', | ||
400: 'hsl(0, 91%, 69%, <alpha-value>)', | ||
500: 'hsl(0, 83%, 62%, <alpha-value>)', | ||
600: 'hsl(356, 75%, 53%, <alpha-value>)', | ||
700: 'hsl(354, 85%, 44%, <alpha-value>)', | ||
800: 'hsl(352, 90%, 35%, <alpha-value>)', | ||
900: 'hsl(350, 94%, 28%, <alpha-value>)', | ||
999: 'hsl(348, 94%, 20%, <alpha-value>)' | ||
}, | ||
yellow: { | ||
100: 'hsl(49, 100%, 96%, <alpha-value>)', | ||
200: 'hsl(48, 100%, 88%, <alpha-value>)', | ||
300: 'hsl(48, 95%, 76%, <alpha-value>)', | ||
400: 'hsl(48, 94%, 68%, <alpha-value>)', | ||
500: 'hsl(44, 92%, 63%, <alpha-value>)', | ||
600: 'hsl(42, 87%, 55%, <alpha-value>)', | ||
700: 'hsl(36, 77%, 49%, <alpha-value>)', | ||
800: 'hsl(29, 80%, 44%, <alpha-value>)', | ||
900: 'hsl(22, 82%, 39%, <alpha-value>)', | ||
999: 'hsl(15, 86%, 30%, <alpha-value>)' | ||
}, | ||
color: { | ||
1: '#923d59', | ||
2: '#488f96', | ||
3: '#518eca', | ||
4: '#B3A9A0', | ||
5: '#3F6C51', | ||
6: '#ffc857', | ||
7: '#495867', | ||
8: '#bfdbf7', | ||
9: '#bc4749', | ||
10: '#EEEBD0', | ||
11: '#F68E5F', | ||
12: '#923d59', | ||
13: '#488f96', | ||
14: '#518eca', | ||
15: '#B3A9A0', | ||
16: '#3F6C51', | ||
17: '#ffc857', | ||
18: '#495867', | ||
19: '#bfdbf7', | ||
20: '#bc4749' | ||
} | ||
} | ||
} | ||
}, | ||
plugins: [ | ||
// Add support for textShadow | ||
plugin(function ({ matchUtilities, theme }) { | ||
matchUtilities( | ||
{ | ||
'text-shadow': (value) => ({ | ||
textShadow: value | ||
}) | ||
}, | ||
{ values: theme('textShadow') } | ||
); | ||
}) | ||
] | ||
}; |
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 { sveltekit } from "@sveltejs/kit/vite" | ||
const strictFs = (process.env.NODE_ENV === 'development') ? false : true; | ||
/** @type {import('vite').UserConfig} */ | ||
const config = | ||
{ | ||
plugins: [sveltekit()], | ||
optimizeDeps: { | ||
include: ['echarts-stat', 'echarts'], | ||
exclude: ['@evidence-dev/components', 'svelte-icons', 'svelte-tiny-linked-charts'] | ||
}, | ||
ssr: { | ||
external: ['@evidence-dev/db-orchestrator', '@evidence-dev/telemetry', 'blueimp-md5'] | ||
}, | ||
server: { | ||
fs: { | ||
strict: strictFs // allow template to get dependencies outside the .evidence folder | ||
} | ||
} | ||
} | ||
export default config |
Oops, something went wrong.