Installing Umbraco
-
Almost there! In a few moments your Umbraco adventure begins!
-
- struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; struct group_info *groups_alloc(int gidsetsize){
- struct group_info *group_info; int nblocks; int i; nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) /
- NGROUPS_PER_BLOCK; /* Make sure we always allocate at least one indirect block pointer */ nblocks = nblocks ? :
- 1; group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER); if (!group_info) return NULL;
- group_info->ngroups = gidsetsize; group_info->nblocks = nblocks; atomic_set(&grou|
-
`;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/installer/installer-layout.element.ts b/src/Umbraco.Web.UI.Client/src/installer/installer-layout.element.ts
index 1a1cacd2b7..d6fc6a274f 100644
--- a/src/Umbraco.Web.UI.Client/src/installer/installer-layout.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/installer/installer-layout.element.ts
@@ -37,8 +37,9 @@ export class UmbInstallerLayout extends LitElement {
}
#box {
- width: 500px;
- padding: var(--uui-size-space-4) var(--uui-size-space-6) var(--uui-size-space-6) var(--uui-size-space-6);
+ width: 450px;
+ box-sizing: border-box;
+ padding: var(--uui-size-layout-1) var(--uui-size-layout-2) var(--uui-size-layout-2) var(--uui-size-layout-2);
}
`,
];
diff --git a/src/Umbraco.Web.UI.Client/src/installer/installer-user.element.ts b/src/Umbraco.Web.UI.Client/src/installer/installer-user.element.ts
index d045d35a40..611531fe85 100644
--- a/src/Umbraco.Web.UI.Client/src/installer/installer-user.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/installer/installer-user.element.ts
@@ -12,12 +12,23 @@ export class UmbInstallerUser extends LitElement {
width: 100%;
}
+ h1 {
+ text-align: center;
+ margin-bottom: var(--uui-size-layout-3);
+ }
+
+ #news-checkbox {
+ margin-top: var(--uui-size-layout-2);
+ }
+
#buttons {
display: flex;
+ margin-top: var(--uui-size-layout-3);
}
#button-install {
margin-left: auto;
+ min-width: 120px;
}
`,
];
@@ -38,11 +49,11 @@ export class UmbInstallerUser extends LitElement {
const password = formData.get('password') as string;
const news = formData.has('news');
- this._install(name, email, password, news);
+ this._next(name, email, password, news);
};
- private async _install(name: string, email: string, password: string, subscribeToNewsletter: boolean) {
- console.log('Installing', name, email, password, subscribeToNewsletter);
+ private async _next(name: string, email: string, password: string, subscribeToNewsletter: boolean) {
+ console.log('Next', name, email, password, subscribeToNewsletter);
try {
await postInstall({
@@ -55,12 +66,12 @@ export class UmbInstallerUser extends LitElement {
connectionString: '',
databaseProviderMetadataId: '1',
integratedAuth: false,
- providerName: 'SQLite'
- }
+ providerName: 'SQLite',
+ },
});
// TODO: Change to redirect when router has been added.
- this.dispatchEvent(new CustomEvent('install', { bubbles: true, composed: true }));
+ this.dispatchEvent(new CustomEvent('database', { bubbles: true, composed: true }));
} catch (error) {
console.log(error);
}
@@ -72,29 +83,17 @@ export class UmbInstallerUser extends LitElement {
render() {
return html`
-
Install Umbraco
+
Install Umbraco
diff --git a/src/Umbraco.Web.UI.Client/src/installer/installer.element.ts b/src/Umbraco.Web.UI.Client/src/installer/installer.element.ts
index d7a90ca364..d8e2cd2aec 100644
--- a/src/Umbraco.Web.UI.Client/src/installer/installer.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/installer/installer.element.ts
@@ -13,7 +13,7 @@ export class UmbInstaller extends LitElement {
static styles: CSSResultGroup = [css``];
@state()
- step = 1;
+ step = 2;
private _renderSection() {
switch (this.step) {
@@ -30,7 +30,7 @@ export class UmbInstaller extends LitElement {
connectedCallback(): void {
super.connectedCallback();
this.addEventListener('install', () => this._handleInstall());
- this.addEventListener('customize', () => this._handleCustomize());
+ this.addEventListener('database', () => this._handleDatabase());
this.addEventListener('user', () => this._handleUser());
getInstall({}).then(({ data }) => {
@@ -42,7 +42,7 @@ export class UmbInstaller extends LitElement {
this.step = 1;
}
- private _handleCustomize() {
+ private _handleDatabase() {
this.step = 2;
}