Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s0 #4964

Open
wants to merge 60 commits into
base: main
Choose a base branch
from
Open

s0 #4964

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b458c23
all
rubenfiszel Dec 10, 2024
4f134d5
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 10, 2024
e8354b7
all
rubenfiszel Dec 10, 2024
980a44f
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 10, 2024
736262e
all
rubenfiszel Dec 10, 2024
1ed99d9
all
rubenfiszel Dec 11, 2024
1e11a9d
all
rubenfiszel Dec 11, 2024
543f6f9
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 12, 2024
42d2b06
all
rubenfiszel Dec 12, 2024
0fdf730
all
rubenfiszel Dec 13, 2024
ef2a333
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 13, 2024
2749932
all
rubenfiszel Dec 14, 2024
9b23293
all
rubenfiszel Dec 14, 2024
16b7636
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 14, 2024
f0185d3
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 16, 2024
331d26d
all
rubenfiszel Dec 17, 2024
4b70b11
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 17, 2024
97513de
all
rubenfiszel Dec 17, 2024
23388cc
all
rubenfiszel Dec 18, 2024
172a69b
all
rubenfiszel Dec 19, 2024
dd9de78
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 19, 2024
b459f77
all
rubenfiszel Dec 20, 2024
7ac93eb
Merge branch 'main' into rf/sandpack
rubenfiszel Dec 20, 2024
f8e31c2
all
rubenfiszel Dec 20, 2024
3ec7bda
all
rubenfiszel Dec 20, 2024
3e3271d
all
rubenfiszel Dec 20, 2024
8a9736d
merge
rubenfiszel Dec 20, 2024
b4171be
avoid localsettings
rubenfiszel Dec 21, 2024
b0f2626
all
rubenfiszel Dec 25, 2024
6387245
all
rubenfiszel Dec 25, 2024
334a62e
merge
rubenfiszel Dec 25, 2024
a424edf
before esbuild refactor
rubenfiszel Jan 3, 2025
10b850a
before esbuild refactor
rubenfiszel Jan 3, 2025
ec9e44e
before esbuild
rubenfiszel Jan 4, 2025
b0c10c6
progress
rubenfiszel Jan 5, 2025
b02412e
progress
rubenfiszel Jan 5, 2025
f3d1c77
prevscode editor
rubenfiszel Jan 6, 2025
ea0d0f7
all
rubenfiszel Jan 8, 2025
410e03f
all
rubenfiszel Jan 8, 2025
1bba278
Merge branch 'main' into rf/sandpack
rubenfiszel Jan 8, 2025
a18edd3
all
rubenfiszel Jan 8, 2025
a534fa8
Merge branch 'main' into rf/sandpack
rubenfiszel Jan 9, 2025
66fcebe
progress
rubenfiszel Jan 13, 2025
495f5d0
all
rubenfiszel Jan 15, 2025
7157d70
all
rubenfiszel Jan 16, 2025
de910dd
Merge branch 'main' into rf/sandpack
rubenfiszel Jan 18, 2025
87180bd
merge
rubenfiszel Jan 18, 2025
f2a5744
all
rubenfiszel Jan 18, 2025
c3c07ba
from remote
rubenfiszel Jan 19, 2025
79eba59
foo
rubenfiszel Jan 19, 2025
4526b5b
all
rubenfiszel Jan 19, 2025
80de479
fix build
rubenfiszel Jan 19, 2025
38f557d
merge
rubenfiszel Jan 19, 2025
4ef50fd
all
rubenfiszel Jan 21, 2025
a467b86
in
rubenfiszel Jan 21, 2025
bf95ede
foo
rubenfiszel Jan 21, 2025
b8e6d15
Merge branch 'main' into rf/sandpack
rubenfiszel Jan 21, 2025
af3050f
all
rubenfiszel Jan 22, 2025
19ea25c
foo
rubenfiszel Jan 23, 2025
402db01
all
rubenfiszel Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions backend/migrations/20241223155748_raw_apps_v2.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Add down migration script here
ALTER TABLE app_version DROP COLUMN IF EXISTS raw_app;
2 changes: 2 additions & 0 deletions backend/migrations/20241223155748_raw_apps_v2.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Add up migration script here
ALTER TABLE app_version ADD COLUMN IF NOT EXISTS raw_app BOOLEAN NOT NULL DEFAULT FALSE;
6 changes: 5 additions & 1 deletion backend/parsers/windmill-parser-ts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ impl Visit for ImportsFinder {
pub fn parse_expr_for_imports(code: &str) -> anyhow::Result<Vec<String>> {
let cm: Lrc<SourceMap> = Default::default();
let fm = cm.new_source_file(FileName::Custom("main.d.ts".into()).into(), code.into());
let mut tss = TsSyntax::default();
tss.disallow_ambiguous_jsx_like;
tss.tsx = true;
tss.no_early_errors = true;
let lexer = Lexer::new(
Syntax::Typescript(TsSyntax::default()),
Syntax::Typescript(tss),
// EsVersion defaults to es5
Default::default(),
StringInput::from(&*fm),
Expand Down
22 changes: 21 additions & 1 deletion backend/windmill-api-client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,32 @@ use std::{
process::Command,
};

use openapiv3::OpenAPI;

fn main() {
let src = "../windmill-api/openapi.yaml";
println!("cargo:rerun-if-changed={}", src);
Command::new("sh").args(&["bundle.sh"]).status().unwrap();
let file = File::open("./bundled.json").unwrap();
let spec = serde_json::from_reader(file).unwrap();
let mut spec: OpenAPI = serde_json::from_reader(file).unwrap();
// Remove all multipart/form-data endpoints
spec.paths.paths.retain(|_, value| {
if let openapiv3::ReferenceOr::Item(pv) = value {
if let Some(post) = pv.post.as_ref() {
!post.request_body.as_ref().map_or(false, |body| match body {
openapiv3::ReferenceOr::Item(request_body) => {
request_body.content.contains_key("multipart/form-data")
}
openapiv3::ReferenceOr::Reference { .. } => false,
})
} else {
true
}
} else {
true
}
});

let mut generator = progenitor::Generator::default();

let tokens = generator.generate_tokens(&spec).unwrap();
Expand Down
94 changes: 94 additions & 0 deletions backend/windmill-api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5514,6 +5514,55 @@ paths:
schema:
type: string

/w/{workspace}/apps/create_raw:
post:
summary: create app raw
operationId: createAppRaw
tags:
- app
parameters:
- $ref: "#/components/parameters/WorkspaceId"
requestBody:
description: new app
required: true
content:
multipart/form-data:
schema:
type: object
properties:
app:
type: object
properties:
path:
type: string
value: {}
summary:
type: string
policy:
$ref: "#/components/schemas/Policy"
draft_only:
type: boolean
deployment_message:
type: string
custom_path:
type: string
required:
- path
- value
- summary
- policy
js:
type: string
css:
type: string
responses:
"201":
description: app created
content:
text/plain:
schema:
type: string

/w/{workspace}/apps/exists/{path}:
get:
summary: does an app exisst at path
Expand Down Expand Up @@ -5853,6 +5902,49 @@ paths:
schema:
type: string

/w/{workspace}/apps/update_raw/{path}:
post:
summary: update app
operationId: updateAppRaw
tags:
- app
parameters:
- $ref: "#/components/parameters/WorkspaceId"
- $ref: "#/components/parameters/ScriptPath"
requestBody:
description: update app
required: true
content:
multipart/form-data:
schema:
type: object
properties:
app:
type: object
properties:
path:
type: string
summary:
type: string
value: {}
policy:
$ref: "#/components/schemas/Policy"
deployment_message:
type: string
custom_path:
type: string
js:
type: string
css:
type: string
responses:
"200":
description: app updated
content:
text/plain:
schema:
type: string

/w/{workspace}/apps/custom_path_exists/{custom_path}:
get:
summary: check if custom path exists
Expand Down Expand Up @@ -13375,6 +13467,8 @@ components:
execution_mode:
type: string
enum: [viewer, publisher, anonymous]
raw_app:
type: boolean
required:
- id
- workspace_id
Expand Down
Loading
Loading