prettier format fix

This commit is contained in:
Jacob Overgaard
2022-09-30 15:03:46 +02:00
parent 83a94e9bb0
commit b65618579f
4 changed files with 47 additions and 21 deletions

View File

@@ -10,14 +10,17 @@ import { UmbNotificationDefaultData } from '../../../core/services/notification/
@customElement('umb-dashboard-published-status')
export class UmbDashboardPublishedStatusElement extends UmbContextConsumerMixin(LitElement) {
static styles = [UUITextStyles, css`
uui-box + uui-box {
margin-top: var(--uui-size-space-5);
}
uui-box p:first-child {
margin-block-start: 0;
}
`];
static styles = [
UUITextStyles,
css`
uui-box + uui-box {
margin-top: var(--uui-size-space-5);
}
uui-box p:first-child {
margin-block-start: 0;
}
`,
];
@state()
private _publishedStatusText = '';
@@ -86,22 +89,47 @@ export class UmbDashboardPublishedStatusElement extends UmbContextConsumerMixin(
return html`
<uui-box headline="Published Cache Status">
<p>${this._publishedStatusText}</p>
<uui-button .state=${this._buttonState} type="button" look="primary" color="danger" @click=${this._onRefreshCacheHandler}>Refresh Status</uui-button>
<uui-button
.state=${this._buttonState}
type="button"
look="primary"
color="danger"
@click=${this._onRefreshCacheHandler}
>Refresh Status</uui-button
>
</uui-box>
<uui-box headline="Memory Cache">
<p>This button lets you reload the in-memory cache, by entirely reloading it from the database cache (but it does not rebuild that database cache). This is relatively fast. Use it when you think that the memory cache has not been properly refreshed, after some events triggered—which would indicate a minor Umbraco issue. (note: triggers the reload on all servers in an LB environment).</p>
<uui-button type="button" look="primary" color="danger" @click=${this._onReloadCacheHandler}>Reload Memory Cache</uui-button>
<p>
This button lets you reload the in-memory cache, by entirely reloading it from the database cache (but it does
not rebuild that database cache). This is relatively fast. Use it when you think that the memory cache has not
been properly refreshed, after some events triggered—which would indicate a minor Umbraco issue. (note:
triggers the reload on all servers in an LB environment).
</p>
<uui-button type="button" look="primary" color="danger" @click=${this._onReloadCacheHandler}
>Reload Memory Cache</uui-button
>
</uui-box>
<uui-box headline="Database Cache">
<p>This button lets you rebuild the database cache, ie the content of the cmsContentNu table. Rebuilding can be expensive. Use it when reloading is not enough, and you think that the database cache has not been properly generated—which would indicate some critical Umbraco issue.</p>
<uui-button type="button" look="primary" color="danger" @click=${this._onRebuildCacheHandler}>Rebuild Database Cache</uui-button>
<p>
This button lets you rebuild the database cache, ie the content of the cmsContentNu table. Rebuilding can be
expensive. Use it when reloading is not enough, and you think that the database cache has not been properly
generated—which would indicate some critical Umbraco issue.
</p>
<uui-button type="button" look="primary" color="danger" @click=${this._onRebuildCacheHandler}
>Rebuild Database Cache</uui-button
>
</uui-box>
<uui-box headline="Internal Cache">
<p>This button lets you trigger a NuCache snapshots collection (after running a fullCLR GC). Unless you know what that means, you probably do not need to use it.</p>
<uui-button type="button" look="primary" color="danger" @click=${this._onSnapshotCacheHandler}>Snapshot Internal Cache</uui-button>
<p>
This button lets you trigger a NuCache snapshots collection (after running a fullCLR GC). Unless you know what
that means, you probably do not need to use it.
</p>
<uui-button type="button" look="primary" color="danger" @click=${this._onSnapshotCacheHandler}
>Snapshot Internal Cache</uui-button
>
</uui-box>
`;
}

View File

@@ -3,7 +3,6 @@ import { hasDefaultExport } from './has-default-export.function';
import { isManifestElementType } from './is-extension.function';
import { loadExtension } from './load-extension.function';
export async function createExtensionElement(manifest: ManifestTypes): Promise<HTMLElement | undefined> {
//TODO: Write tests for these extension options:
const js = await loadExtension(manifest);

View File

@@ -5,7 +5,6 @@ import './layouts/content-picker/modal-layout-content-picker.element';
import { UUIModalSidebarSize } from '@umbraco-ui/uui-modal-sidebar';
import { BehaviorSubject, Observable } from 'rxjs';
import type { UmbModalConfirmData } from './layouts/confirm/modal-layout-confirm.element';
import type { UmbModalContentPickerData } from './layouts/content-picker/modal-layout-content-picker.element';
import { UmbModalHandler } from './';

View File

@@ -2,10 +2,10 @@ import { rest } from 'msw';
import umbracoPath from '../../core/helpers/umbraco-path';
import type {
PostInstallRequest,
ProblemDetails,
UmbracoInstaller,
UmbracoPerformInstallDatabaseConfiguration,
PostInstallRequest,
ProblemDetails,
UmbracoInstaller,
UmbracoPerformInstallDatabaseConfiguration,
} from '../../core/models';
export const handlers = [