update remaining pages
This commit is contained in:
		
							parent
							
								
									812af7b615
								
							
						
					
					
						commit
						5fa2c39193
					
				| @ -18,6 +18,7 @@ const { PASSWORD_MINLENGTH, PASSWORD_MAXLENGTH, PASSWORD_MIN_SCORE } = | |||||||
|   PasswordService; |   PasswordService; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-request-verify") | ||||||
| class RequestVerify extends LitElement { | class RequestVerify extends LitElement { | ||||||
|   @property({ type: String }) |   @property({ type: String }) | ||||||
|   email!: string; |   email!: string; | ||||||
| @ -87,7 +88,6 @@ class RequestVerify extends LitElement { | |||||||
|     this.isRequesting = false; |     this.isRequesting = false; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| customElements.define("btrix-request-verify", RequestVerify); |  | ||||||
| 
 | 
 | ||||||
| @needLogin | @needLogin | ||||||
| @localized() | @localized() | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, str, localized } from "@lit/localize"; | import { msg, str, localized } from "@lit/localize"; | ||||||
| 
 | 
 | ||||||
| import LiteElement, { html } from "../utils/LiteElement"; | import LiteElement, { html } from "../utils/LiteElement"; | ||||||
| @ -6,6 +6,7 @@ import type { AuthState } from "../utils/AuthService"; | |||||||
| import { ROUTES } from "../routes"; | import { ROUTES } from "../routes"; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-accept-invite") | ||||||
| export class AcceptInvite extends LiteElement { | export class AcceptInvite extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { when } from "lit/directives/when.js"; | import { when } from "lit/directives/when.js"; | ||||||
| import { msg, localized, str } from "@lit/localize"; | import { msg, localized, str } from "@lit/localize"; | ||||||
| import type { SlSelect } from "@shoelace-style/shoelace"; | import type { SlSelect } from "@shoelace-style/shoelace"; | ||||||
| @ -38,6 +38,7 @@ const ABORT_REASON_THROTTLE = "throttled"; | |||||||
| 
 | 
 | ||||||
| @needLogin | @needLogin | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-crawls") | ||||||
| export class Crawls extends LiteElement { | export class Crawls extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState!: AuthState; |   authState!: AuthState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { ifDefined } from "lit/directives/if-defined.js"; | import { ifDefined } from "lit/directives/if-defined.js"; | ||||||
| import { msg, localized, str } from "@lit/localize"; | import { msg, localized, str } from "@lit/localize"; | ||||||
| import { serialize } from "@shoelace-style/shoelace/dist/utilities/form.js"; | import { serialize } from "@shoelace-style/shoelace/dist/utilities/form.js"; | ||||||
| @ -11,6 +11,7 @@ import type { APIPaginatedList } from "../types/api"; | |||||||
| import { maxLengthValidator } from "../utils/form"; | import { maxLengthValidator } from "../utils/form"; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-home") | ||||||
| export class Home extends LiteElement { | export class Home extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
| @ -1,39 +1,12 @@ | |||||||
| import { Home } from "./home"; | import "./home"; | ||||||
| customElements.define("btrix-home", Home); |  | ||||||
| 
 | 
 | ||||||
| import(/* webpackChunkName: "sign-up" */ "./sign-up").then(({ SignUp }) => { | import(/* webpackChunkName: "sign-up" */ "./sign-up"); | ||||||
|   customElements.define("btrix-sign-up", SignUp); | import(/* webpackChunkName: "log-in" */ "./log-in"); | ||||||
| }); | import(/* webpackChunkName: "orgs" */ "./orgs"); | ||||||
| import(/* webpackChunkName: "log-in" */ "./log-in").then(({ LogInPage }) => { | import(/* webpackChunkName: "org" */ "./org"); | ||||||
|   customElements.define("btrix-log-in", LogInPage); | import(/* webpackChunkName: "crawls" */ "./crawls"); | ||||||
| }); | import(/* webpackChunkName: "join" */ "./join"); | ||||||
| import(/* webpackChunkName: "orgs" */ "./orgs").then(({ Orgs }) => { | import(/* webpackChunkName: "verify" */ "./verify"); | ||||||
|   customElements.define("btrix-orgs", Orgs); | import(/* webpackChunkName: "reset-password" */ "./reset-password"); | ||||||
| }); | import(/* webpackChunkName: "users-invite" */ "./users-invite"); | ||||||
| import(/* webpackChunkName: "org" */ "./org").then(({ Org }) => { | import(/* webpackChunkName: "accept-invite" */ "./accept-invite"); | ||||||
|   customElements.define("btrix-org", Org); |  | ||||||
| }); |  | ||||||
| import(/* webpackChunkName: "crawls" */ "./crawls").then(({ Crawls }) => { |  | ||||||
|   customElements.define("btrix-crawls", Crawls); |  | ||||||
| }); |  | ||||||
| import(/* webpackChunkName: "join" */ "./join").then(({ Join }) => { |  | ||||||
|   customElements.define("btrix-join", Join); |  | ||||||
| }); |  | ||||||
| import(/* webpackChunkName: "verify" */ "./verify").then(({ Verify }) => { |  | ||||||
|   customElements.define("btrix-verify", Verify); |  | ||||||
| }); |  | ||||||
| import(/* webpackChunkName: "reset-password" */ "./reset-password").then( |  | ||||||
|   ({ ResetPassword }) => { |  | ||||||
|     customElements.define("btrix-reset-password", ResetPassword); |  | ||||||
|   } |  | ||||||
| ); |  | ||||||
| import(/* webpackChunkName: "users-invite" */ "./users-invite").then( |  | ||||||
|   ({ UsersInvite }) => { |  | ||||||
|     customElements.define("btrix-users-invite", UsersInvite); |  | ||||||
|   } |  | ||||||
| ); |  | ||||||
| import(/* webpackChunkName: "accept-invite" */ "./accept-invite").then( |  | ||||||
|   ({ AcceptInvite }) => { |  | ||||||
|     customElements.define("btrix-accept-invite", AcceptInvite); |  | ||||||
|   } |  | ||||||
| ); |  | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, str, localized } from "@lit/localize"; | import { msg, str, localized } from "@lit/localize"; | ||||||
| 
 | 
 | ||||||
| import LiteElement, { html } from "../utils/LiteElement"; | import LiteElement, { html } from "../utils/LiteElement"; | ||||||
| @ -6,6 +6,7 @@ import type { LoggedInEvent } from "../utils/AuthService"; | |||||||
| import AuthService from "../utils/AuthService"; | import AuthService from "../utils/AuthService"; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-join") | ||||||
| export class Join extends LiteElement { | export class Join extends LiteElement { | ||||||
|   @property({ type: String }) |   @property({ type: String }) | ||||||
|   token?: string; |   token?: string; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, localized } from "@lit/localize"; | import { msg, localized } from "@lit/localize"; | ||||||
| import { createMachine, interpret, assign } from "@xstate/fsm"; | import { createMachine, interpret, assign } from "@xstate/fsm"; | ||||||
| 
 | 
 | ||||||
| @ -141,6 +141,7 @@ const machine = createMachine<FormContext, FormEvent, FormTypestate>( | |||||||
| ); | ); | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-log-in") | ||||||
| export class LogInPage extends LiteElement { | export class LogInPage extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   viewState!: ViewState; |   viewState!: ViewState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, localized, str } from "@lit/localize"; | import { msg, localized, str } from "@lit/localize"; | ||||||
| import { when } from "lit/directives/when.js"; | import { when } from "lit/directives/when.js"; | ||||||
| import { ifDefined } from "lit/directives/if-defined.js"; | import { ifDefined } from "lit/directives/if-defined.js"; | ||||||
| @ -69,6 +69,7 @@ const UUID_REGEX = | |||||||
| 
 | 
 | ||||||
| @needLogin | @needLogin | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-org") | ||||||
| export class Org extends LiteElement { | export class Org extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, localized } from "@lit/localize"; | import { msg, localized } from "@lit/localize"; | ||||||
| 
 | 
 | ||||||
| import type { AuthState } from "../utils/AuthService"; | import type { AuthState } from "../utils/AuthService"; | ||||||
| @ -10,6 +10,7 @@ import type { APIPaginatedList } from "../types/api"; | |||||||
| 
 | 
 | ||||||
| @needLogin | @needLogin | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-orgs") | ||||||
| export class Orgs extends LiteElement { | export class Orgs extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { str, msg, localized } from "@lit/localize"; | import { str, msg, localized } from "@lit/localize"; | ||||||
| import debounce from "lodash/fp/debounce"; | import debounce from "lodash/fp/debounce"; | ||||||
| import { when } from "lit/directives/when.js"; | import { when } from "lit/directives/when.js"; | ||||||
| @ -13,6 +13,7 @@ const { PASSWORD_MINLENGTH, PASSWORD_MAXLENGTH, PASSWORD_MIN_SCORE } = | |||||||
|   PasswordService; |   PasswordService; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-reset-password") | ||||||
| export class ResetPassword extends LiteElement { | export class ResetPassword extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   viewState!: ViewState; |   viewState!: ViewState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, localized } from "@lit/localize"; | import { msg, localized } from "@lit/localize"; | ||||||
| 
 | 
 | ||||||
| import LiteElement, { html } from "../utils/LiteElement"; | import LiteElement, { html } from "../utils/LiteElement"; | ||||||
| @ -6,6 +6,7 @@ import type { AuthState, LoggedInEvent } from "../utils/AuthService"; | |||||||
| import AuthService from "../utils/AuthService"; | import AuthService from "../utils/AuthService"; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-sign-up") | ||||||
| export class SignUp extends LiteElement { | export class SignUp extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, localized, str } from "@lit/localize"; | import { msg, localized, str } from "@lit/localize"; | ||||||
| import { ifDefined } from "lit/directives/if-defined.js"; | import { ifDefined } from "lit/directives/if-defined.js"; | ||||||
| 
 | 
 | ||||||
| @ -9,6 +9,7 @@ import { CurrentUser } from "../types/user"; | |||||||
| 
 | 
 | ||||||
| @needLogin | @needLogin | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-users-invite") | ||||||
| export class UsersInvite extends LiteElement { | export class UsersInvite extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
| @ -1,10 +1,11 @@ | |||||||
| import { state, property } from "lit/decorators.js"; | import { state, property, customElement } from "lit/decorators.js"; | ||||||
| import { msg, localized } from "@lit/localize"; | import { msg, localized } from "@lit/localize"; | ||||||
| 
 | 
 | ||||||
| import { AuthState } from "../utils/AuthService"; | import { AuthState } from "../utils/AuthService"; | ||||||
| import LiteElement, { html } from "../utils/LiteElement"; | import LiteElement, { html } from "../utils/LiteElement"; | ||||||
| 
 | 
 | ||||||
| @localized() | @localized() | ||||||
|  | @customElement("btrix-verify") | ||||||
| export class Verify extends LiteElement { | export class Verify extends LiteElement { | ||||||
|   @property({ type: Object }) |   @property({ type: Object }) | ||||||
|   authState?: AuthState; |   authState?: AuthState; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user