Skip to content

Commit

Permalink
Remove WebComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
loicknuchel committed Nov 29, 2024
1 parent 421392d commit 38624ba
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ viewSourceEditor model source =
( model.errors |> List.filterBy .level ParserError.Error, model.errors |> List.filterBy .level ParserError.Warning )
in
div [ class "mt-3" ]
[ -- , node "intl-date" [ attribute "lang" "fr-FR", attribute "year" (String.fromInt 2024), attribute "month" (String.fromInt 9) ] []
-- , node "aml-editor" [ value (contentStr source), onInput (AUpdateSource source.id >> AmlSidebarMsg), onBlur (ASourceUpdated source.id |> AmlSidebarMsg) ] []
Editor.basic "source-editor" (Source.contentStr source) (AUpdateSource source.id >> AmlSidebarMsg) (ASourceUpdated source.id |> AmlSidebarMsg) """Write your schema using AML syntax
[ Editor.basic "source-editor" (Source.contentStr source) (AUpdateSource source.id >> AmlSidebarMsg) (ASourceUpdated source.id |> AmlSidebarMsg) """Write your schema using AML syntax
Ex:
Expand Down
50 changes: 0 additions & 50 deletions frontend/ts-src/components/aml-editor.ts

This file was deleted.

69 changes: 0 additions & 69 deletions frontend/ts-src/components/az-editor.ts

This file was deleted.

64 changes: 0 additions & 64 deletions frontend/ts-src/components/intl-date.ts

This file was deleted.

8 changes: 1 addition & 7 deletions frontend/ts-src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
} from "@azimutt/models";
import {generateAml, parseAml} from "@azimutt/aml";
import {parsePrisma} from "@azimutt/parser-prisma";
import {DiagramEdge, DiagramNode, Dialect, HtmlId, Platform, ToastLevel, ViewPosition} from "./types/basics";
import {Dialect, HtmlId, Platform, ToastLevel, ViewPosition} from "./types/basics";
import * as Uuid from "./types/uuid";
import {
CreateProject,
Expand Down Expand Up @@ -76,13 +76,7 @@ import {Env} from "./utils/env";
import {loadPolyfills} from "./utils/polyfills";
import * as url from "./utils/url";
import {Utils} from "./utils/utils";
// import {loadIntlDate} from "./components/intl-date";
// import {loadAzEditor} from "./components/az-editor";
// import {loadAmlEditor} from "./components/aml-editor";

// loadIntlDate() // should be before the Elm init
// loadAzEditor() // should be before the Elm init
// loadAmlEditor() // should be before the Elm init
const platform = Utils.getPlatform()
const logger = new ConsoleLogger(window.env)
const flags: ElmFlags = {now: Date.now(), conf: {env: window.env, platform, role: window.role, desktop: !!window.desktop}, params: buildFlagParams()}
Expand Down

0 comments on commit 38624ba

Please sign in to comment.