web: Normalize extensions.
This commit is contained in:
@ -1,7 +1,3 @@
|
|||||||
import { spawnSync } from "node:child_process";
|
|
||||||
import { readFileSync, statSync } from "node:fs";
|
|
||||||
import path from "node:path";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file Lit Localize build script.
|
* @file Lit Localize build script.
|
||||||
*
|
*
|
||||||
@ -13,9 +9,13 @@ import path from "node:path";
|
|||||||
* long spew of "this string is not translated" and replacing it with a
|
* long spew of "this string is not translated" and replacing it with a
|
||||||
* summary of how many strings are missing with respect to the source locale.
|
* summary of how many strings are missing with respect to the source locale.
|
||||||
*
|
*
|
||||||
* @import { ConfigFile } from "@lit/localize-tools/lib/types/config"
|
* @import { ConfigFile } from "@lit/localize-tools/lib/types/config.js"
|
||||||
* @import { Stats } from "fs";
|
* @import { Stats } from "node:fs";
|
||||||
*/
|
*/
|
||||||
|
import { spawnSync } from "node:child_process";
|
||||||
|
import { readFileSync, statSync } from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
import { PackageRoot } from "#paths/node";
|
import { PackageRoot } from "#paths/node";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,12 +1,11 @@
|
|||||||
/// <reference types="../types/esbuild.js" />
|
|
||||||
import * as fs from "node:fs/promises";
|
|
||||||
import * as path from "node:path";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file ESBuild script for building the authentik web UI.
|
* @file ESBuild script for building the authentik web UI.
|
||||||
*
|
*
|
||||||
* @import { BuildOptions } from "esbuild";
|
* @import { BuildOptions } from "esbuild";
|
||||||
*/
|
*/
|
||||||
|
import * as fs from "node:fs/promises";
|
||||||
|
import * as path from "node:path";
|
||||||
|
|
||||||
import { mdxPlugin } from "#bundler/mdx-plugin/node";
|
import { mdxPlugin } from "#bundler/mdx-plugin/node";
|
||||||
import { createBundleDefinitions } from "#bundler/utils/node";
|
import { createBundleDefinitions } from "#bundler/utils/node";
|
||||||
import { DistDirectory, EntryPoint, PackageRoot } from "#paths/node";
|
import { DistDirectory, EntryPoint, PackageRoot } from "#paths/node";
|
||||||
@ -17,9 +16,11 @@ import { readBuildIdentifier } from "@goauthentik/core/version/node";
|
|||||||
|
|
||||||
import { deepmerge } from "deepmerge-ts";
|
import { deepmerge } from "deepmerge-ts";
|
||||||
import esbuild from "esbuild";
|
import esbuild from "esbuild";
|
||||||
import copy from "esbuild-plugin-copy";
|
import { copy } from "esbuild-plugin-copy";
|
||||||
import { polyfillNode } from "esbuild-plugin-polyfill-node";
|
import { polyfillNode } from "esbuild-plugin-polyfill-node";
|
||||||
|
|
||||||
|
/// <reference types="../types/esbuild.js" />
|
||||||
|
|
||||||
const logPrefix = "[Build]";
|
const logPrefix = "[Build]";
|
||||||
|
|
||||||
const patternflyPath = resolvePackage("@patternfly/patternfly", import.meta);
|
const patternflyPath = resolvePackage("@patternfly/patternfly", import.meta);
|
||||||
|
|||||||
@ -1,6 +1,3 @@
|
|||||||
import { readFileSync } from "node:fs";
|
|
||||||
import path from "node:path";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file Pseudo-localization script.
|
* @file Pseudo-localization script.
|
||||||
*
|
*
|
||||||
@ -9,6 +6,10 @@ import path from "node:path";
|
|||||||
* @import { ProgramMessage } from "@lit/localize-tools/src/messages.js"
|
* @import { ProgramMessage } from "@lit/localize-tools/src/messages.js"
|
||||||
* @import { Locale } from "@lit/localize-tools/src/types/locale.js"
|
* @import { Locale } from "@lit/localize-tools/src/types/locale.js"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { readFileSync } from "node:fs"
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
import { PackageRoot } from "#paths/node";
|
import { PackageRoot } from "#paths/node";
|
||||||
|
|
||||||
import pseudolocale from "pseudolocale";
|
import pseudolocale from "pseudolocale";
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import { HorizontalFormElement } from "#elements/forms/HorizontalFormElement";
|
|||||||
import { property, query } from "lit/decorators.js";
|
import { property, query } from "lit/decorators.js";
|
||||||
|
|
||||||
import { styles as AwadStyles } from "../../ApplicationWizardFormStepStyles.styles.js";
|
import { styles as AwadStyles } from "../../ApplicationWizardFormStepStyles.styles.js";
|
||||||
import { type ApplicationWizardState, type OneOfProvider } from "../../types";
|
import { type ApplicationWizardState, type OneOfProvider } from "../../types.js";
|
||||||
|
|
||||||
export class ApplicationWizardProviderForm<T extends OneOfProvider> extends AKElement {
|
export class ApplicationWizardProviderForm<T extends OneOfProvider> extends AKElement {
|
||||||
static get styles() {
|
static get styles() {
|
||||||
|
|||||||
@ -10,14 +10,14 @@ import { PaginatedResponse } from "#elements/table/Table";
|
|||||||
|
|
||||||
import { Event } from "@goauthentik/api";
|
import { Event } from "@goauthentik/api";
|
||||||
|
|
||||||
import type OlLayerVector from "@openlayers-elements/core/ol-layer-vector";
|
import type OlLayerVector from "@openlayers-elements/core/ol-layer-vector.js";
|
||||||
import OlMap from "@openlayers-elements/core/ol-map";
|
import OlMap from "@openlayers-elements/core/ol-map.js";
|
||||||
import { isEmpty } from "ol/extent";
|
import { isEmpty } from "ol/extent.js";
|
||||||
import Feature from "ol/Feature";
|
import Feature from "ol/Feature.js";
|
||||||
import { Point } from "ol/geom";
|
import { Point } from "ol/geom.js";
|
||||||
import { fromLonLat } from "ol/proj";
|
import { fromLonLat } from "ol/proj.js";
|
||||||
import Icon from "ol/style/Icon";
|
import Icon from "ol/style/Icon.js";
|
||||||
import Style from "ol/style/Style";
|
import Style from "ol/style/Style.js";
|
||||||
|
|
||||||
import { css, CSSResult, html, PropertyValues, TemplateResult } from "lit";
|
import { css, CSSResult, html, PropertyValues, TemplateResult } from "lit";
|
||||||
import { customElement, property, query } from "lit/decorators.js";
|
import { customElement, property, query } from "lit/decorators.js";
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import {
|
|||||||
FlowLayoutEnum,
|
FlowLayoutEnum,
|
||||||
FlowsApi,
|
FlowsApi,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
import { AuthenticationEnum } from "@goauthentik/api/dist/models/AuthenticationEnum";
|
import { AuthenticationEnum } from "@goauthentik/api/dist/models/AuthenticationEnum.js";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { html, TemplateResult } from "lit";
|
import { html, TemplateResult } from "lit";
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import {
|
|||||||
UserTypeEnum,
|
UserTypeEnum,
|
||||||
UserWriteStage,
|
UserWriteStage,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
import { UserCreationModeEnum } from "@goauthentik/api/dist/models/UserCreationModeEnum";
|
import { UserCreationModeEnum } from "@goauthentik/api/dist/models/UserCreationModeEnum.js";
|
||||||
|
|
||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { html, TemplateResult } from "lit";
|
import { html, TemplateResult } from "lit";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { configureLocalization } from "@lit/localize";
|
import { configureLocalization } from "@lit/localize";
|
||||||
|
|
||||||
import { sourceLocale, targetLocales } from "../../locale-codes";
|
import { sourceLocale, targetLocales } from "../../locale-codes.js";
|
||||||
import { getBestMatchLocale } from "./helpers.js";
|
import { getBestMatchLocale } from "./helpers.js";
|
||||||
|
|
||||||
type LocaleGetter = ReturnType<typeof configureLocalization>["getLocale"];
|
type LocaleGetter = ReturnType<typeof configureLocalization>["getLocale"];
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import { CoreApi, ResponseError, TokenView } from "@goauthentik/api";
|
|||||||
import { msg } from "@lit/localize";
|
import { msg } from "@lit/localize";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { APIMessage } from "../../messages/Message";
|
import { APIMessage } from "../../messages/Message.js";
|
||||||
import BaseTaskButton from "../SpinnerButton/BaseTaskButton.js";
|
import BaseTaskButton from "../SpinnerButton/BaseTaskButton.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import "@patternfly/patternfly/components/Login/login.css";
|
import "@patternfly/patternfly/components/Login/login.css";
|
||||||
import "../../../stories/flow-interface";
|
import "../../../stories/flow-interface.js";
|
||||||
import "./AccessDeniedStage.js";
|
import "./AccessDeniedStage.js";
|
||||||
|
|
||||||
import { AccessDeniedChallenge, UiThemeEnum } from "@goauthentik/api";
|
import { AccessDeniedChallenge, UiThemeEnum } from "@goauthentik/api";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import "@patternfly/patternfly/components/Login/login.css";
|
import "@patternfly/patternfly/components/Login/login.css";
|
||||||
import "../../../stories/flow-interface";
|
import "../../../stories/flow-interface.js";
|
||||||
import "./AuthenticatorTOTPStage.js";
|
import "./AuthenticatorTOTPStage.js";
|
||||||
|
|
||||||
import { AuthenticatorTOTPChallenge, UiThemeEnum } from "@goauthentik/api";
|
import { AuthenticatorTOTPChallenge, UiThemeEnum } from "@goauthentik/api";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import "@patternfly/patternfly/components/Login/login.css";
|
import "@patternfly/patternfly/components/Login/login.css";
|
||||||
import "../../../stories/flow-interface";
|
import "../../../stories/flow-interface.js";
|
||||||
import "./CaptchaStage.js";
|
import "./CaptchaStage.js";
|
||||||
|
|
||||||
import { CaptchaChallenge, UiThemeEnum } from "@goauthentik/api";
|
import { CaptchaChallenge, UiThemeEnum } from "@goauthentik/api";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import "@patternfly/patternfly/components/Login/login.css";
|
import "@patternfly/patternfly/components/Login/login.css";
|
||||||
import "../../../stories/flow-interface";
|
import "../../../stories/flow-interface.js";
|
||||||
import "./IdentificationStage.js";
|
import "./IdentificationStage.js";
|
||||||
|
|
||||||
import { FlowDesignationEnum, IdentificationChallenge, UiThemeEnum } from "@goauthentik/api";
|
import { FlowDesignationEnum, IdentificationChallenge, UiThemeEnum } from "@goauthentik/api";
|
||||||
|
|||||||
Reference in New Issue
Block a user