Skip to content

Commit

Permalink
bump evidence & add tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
matsonj committed Apr 19, 2023
1 parent 76849a9 commit f141d02
Show file tree
Hide file tree
Showing 16 changed files with 2,615 additions and 484 deletions.
15 changes: 15 additions & 0 deletions analyze/.evidence/template/postcss.config.cjs
@@ -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;
1 change: 1 addition & 0 deletions analyze/.evidence/template/sources/DEP_query.sql
@@ -0,0 +1 @@
SELECT t * 2 as x FROM ${test_query}
1 change: 1 addition & 0 deletions analyze/.evidence/template/sources/nested/test_query.sql
@@ -0,0 +1 @@
SELECT 2 as t;
9 changes: 9 additions & 0 deletions analyze/.evidence/template/sources/sample.csv
@@ -0,0 +1,9 @@
category,value_usd
A,1345746
B,928475
C,929488
D,58573
E,59245
F,53893
G,9666
H,242
1 change: 1 addition & 0 deletions analyze/.evidence/template/sources/should_break.sql
@@ -0,0 +1 @@
SELECT * FROM ${query_on_the_page}
1 change: 1 addition & 0 deletions analyze/.evidence/template/sources/test_query.sql
@@ -0,0 +1 @@
SELECT 1 as t
23 changes: 11 additions & 12 deletions analyze/.evidence/template/svelte.config.js
@@ -1,26 +1,25 @@

import evidencePreprocess from '@evidence-dev/preprocess'
import preprocess from "svelte-preprocess";
import adapter from '@sveltejs/adapter-static';

/** @type {import('@sveltejs/kit').Config} */

const config = {
extensions: ['.svelte', ".md"],
preprocess: evidencePreprocess(),
extensions: ['.svelte', ".md"],
preprocess: [
...evidencePreprocess(true),
preprocess({
postcss: true,
}),
],
kit: {
adapter: adapter(),
adapter: adapter({
strict: false
}),
files: {
routes: 'src/pages',
lib: 'src/components'
},
vite: {
optimizeDeps: {
include: ['echarts-stat', 'export-to-csv', 'ssf', 'downloadjs'],
exclude: ['@evidence-dev/components']
},
ssr: {
external: ['@evidence-dev/db-orchestrator', 'git-remote-origin-url', '@evidence-dev/telemetry']
}
}
}
};
Expand Down
158 changes: 158 additions & 0 deletions analyze/.evidence/template/tailwind.config.cjs
@@ -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') }
);
})
]
};
20 changes: 20 additions & 0 deletions analyze/.evidence/template/vite.config.js
@@ -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

0 comments on commit f141d02

Please sign in to comment.