-
Notifications
You must be signed in to change notification settings - Fork 230
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
1 parent
a8edba2
commit ac93381
Showing
19 changed files
with
752 additions
and
13 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
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,14 @@ | ||
.evidence/template | ||
.svelte-kit | ||
build | ||
node_modules | ||
.DS_Store | ||
static/data | ||
*.options.yaml | ||
.vscode/settings.json | ||
.env | ||
.evidence/meta | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ |
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 @@ | ||
loglevel=error | ||
audit=false | ||
fund=false |
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,44 @@ | ||
# Evidence Template Project | ||
|
||
## Using Codespaces | ||
|
||
If you are using this template in Codespaces, click the `Start Evidence` button in the bottom status bar. This will install dependencies and open a preview of your project in your browser - you should get a popup prompting you to open in browser. | ||
|
||
Or you can use the following commands to get started: | ||
|
||
```bash | ||
npm install | ||
npm run sources | ||
npm run dev -- --host 0.0.0.0 | ||
``` | ||
|
||
See [the CLI docs](https://docs.evidence.dev/cli/) for more command information. | ||
|
||
**Note:** Codespaces is much faster on the Desktop app. After the Codespace has booted, select the hamburger menu → Open in VS Code Desktop. | ||
|
||
## Get Started from VS Code | ||
|
||
The easiest way to get started is using the [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=Evidence.evidence-vscode): | ||
|
||
1. Install the extension from the VS Code Marketplace | ||
2. Open the Command Palette (Ctrl/Cmd + Shift + P) and enter `Evidence: New Evidence Project` | ||
3. Click `Start Evidence` in the bottom status bar | ||
|
||
## Get Started using the CLI | ||
|
||
```bash | ||
npx degit evidence-dev/template my-project | ||
cd my-project | ||
npm install | ||
npm run sources | ||
npm run dev | ||
``` | ||
|
||
Check out the docs for [alternative install methods](https://docs.evidence.dev/getting-started/install-evidence) including Docker, Github Codespaces, and alongside dbt. | ||
|
||
## Learning More | ||
|
||
- [Docs](https://docs.evidence.dev/) | ||
- [Github](https://github.com/evidence-dev/evidence) | ||
- [Slack Community](https://slack.evidence.dev/) | ||
- [Evidence Home Page](https://www.evidence.dev) |
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,80 @@ | ||
appearance: | ||
default: system | ||
switcher: true | ||
|
||
theme: | ||
colorPalettes: | ||
default: | ||
light: | ||
- "#236aa4" | ||
- "#45a1bf" | ||
- "#a5cdee" | ||
- "#8dacbf" | ||
- "#85c7c6" | ||
- "#d2c6ac" | ||
- "#f4b548" | ||
- "#8f3d56" | ||
- "#71b9f4" | ||
- "#46a485" | ||
dark: | ||
- "#236aa4" | ||
- "#45a1bf" | ||
- "#a5cdee" | ||
- "#8dacbf" | ||
- "#85c7c6" | ||
- "#d2c6ac" | ||
- "#f4b548" | ||
- "#8f3d56" | ||
- "#71b9f4" | ||
- "#46a485" | ||
colorScales: | ||
default: | ||
light: | ||
- "#ADD8E6" | ||
- "#00008B" | ||
dark: | ||
- "#ADD8E6" | ||
- "#00008B" | ||
colors: | ||
primary: | ||
light: "#2563eb" | ||
dark: "#3b82f6" | ||
accent: | ||
light: "#c2410c" | ||
dark: "#fdba74" | ||
base: | ||
light: "#ffffff" | ||
dark: "#09090b" | ||
info: | ||
light: "#0284c7" | ||
dark: "#38bdf8" | ||
positive: | ||
light: "#16a34a" | ||
dark: "#4ade80" | ||
warning: | ||
light: "#f8c900" | ||
dark: "#fbbf24" | ||
negative: | ||
light: "#dc2626" | ||
dark: "#f87171" | ||
|
||
plugins: | ||
components: | ||
# This loads all of evidence's core charts and UI components | ||
# You probably don't want to edit this dependency unless you know what you are doing | ||
"@evidence-dev/core-components": {} | ||
|
||
datasources: | ||
# You can add additional datasources here by adding npm packages. | ||
# Make to also add them to `package.json`. | ||
"@evidence-dev/bigquery": { } | ||
"@evidence-dev/csv": { } | ||
"@evidence-dev/databricks": { } | ||
"@evidence-dev/duckdb": { } | ||
"@evidence-dev/mssql": { } | ||
"@evidence-dev/mysql": { } | ||
"@evidence-dev/postgres": { } | ||
"@evidence-dev/snowflake": { } | ||
"@evidence-dev/sqlite": { } | ||
"@evidence-dev/trino": { } | ||
"@evidence-dev/motherduck": { } |
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,37 @@ | ||
{ | ||
"name": "e2e-dev-server-startup", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"build": "evidence build", | ||
"build:strict": "evidence build:strict", | ||
"dev": "evidence dev --open /", | ||
"sources": "evidence sources", | ||
"preview": "evidence preview", | ||
"test:preview": "exit 0", | ||
"test:dev": "vitest --run", | ||
"test:watch": "vitest" | ||
}, | ||
"engines": { | ||
"npm": ">=7.0.0", | ||
"node": ">=18.0.0" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"@evidence-dev/core-components": "workspace:*", | ||
"@evidence-dev/duckdb": "workspace:*", | ||
"@evidence-dev/evidence": "workspace:*", | ||
"vitest": "^2.1.8", | ||
"vite": "5.2.10" | ||
}, | ||
"overrides": { | ||
"jsonwebtoken": "9.0.0", | ||
"trim@<0.0.3": ">0.0.3", | ||
"sqlite3": "5.1.5", | ||
"axios": "^1.7.4" | ||
}, | ||
"private": true, | ||
"devDependencies": { | ||
"@types/node": "^22.10.6", | ||
"cross-env": "^7.0.3" | ||
} | ||
} |
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,61 @@ | ||
--- | ||
title: Welcome to Evidence | ||
--- | ||
|
||
{console.log("🚠["+($page.url.searchParams.get("tag") ?? "untagged")+"] "+($page.url.searchParams.get('dummy') === 'true' ? "[🤡]" : "")+" index.md [" + (performance.now().toFixed(0) ?? "") + "]")} | ||
|
||
<Details title='How to edit this page'> | ||
|
||
This page can be found in your project at `/pages/index.md`. Make a change to the markdown file and save it to see the change take effect in your browser. | ||
|
||
</Details> | ||
|
||
```sql categories | ||
select | ||
category | ||
from needful_things.orders | ||
group by category | ||
``` | ||
|
||
<Dropdown data={categories} name=category value=category> | ||
<DropdownOption value="%" valueLabel="All Categories"/> | ||
</Dropdown> | ||
|
||
<Dropdown name=year> | ||
<DropdownOption value=% valueLabel="All Years"/> | ||
<DropdownOption value=2019/> | ||
<DropdownOption value=2020/> | ||
<DropdownOption value=2021/> | ||
</Dropdown> | ||
|
||
```sql orders_by_category | ||
select | ||
date_trunc('month', order_datetime) as month, | ||
sum(sales) as sales_usd, | ||
category | ||
from needful_things.orders | ||
where category like '${inputs.category.value}' | ||
and date_part('year', order_datetime) like '${inputs.year.value}' | ||
group by all | ||
order by sales_usd desc | ||
``` | ||
|
||
<BarChart | ||
data={orders_by_category} | ||
title="Sales by Month, {inputs.category.label}" | ||
x=month | ||
y=sales_usd | ||
series=category | ||
/> | ||
|
||
## What's Next? | ||
|
||
- [Connect your data sources](settings) | ||
- Edit/add markdown files in the `pages` folder | ||
- Deploy your project with [Evidence Cloud](https://evidence.dev/cloud) | ||
|
||
## Get Support | ||
|
||
- Message us on [Slack](https://slack.evidence.dev/) | ||
- Read the [Docs](https://docs.evidence.dev/) | ||
- Open an issue on [Github](https://github.com/evidence-dev/evidence) |
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,4 @@ | ||
import { defineConfig } from '@playwright/test'; | ||
import { config } from '../playwright-config'; | ||
|
||
export default defineConfig(config); |
5 changes: 5 additions & 0 deletions
5
e2e/dev-server-startup/sources/needful_things/connection.yaml
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,5 @@ | ||
# This file was automatically generated | ||
name: needful_things | ||
type: duckdb | ||
options: | ||
filename: needful_things.duckdb |
Binary file not shown.
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 orders |
Oops, something went wrong.