mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Fix css issue.
This commit is contained in:
parent
dc267f8daa
commit
585706cc16
8 changed files with 94 additions and 109 deletions
|
|
@ -1,22 +0,0 @@
|
|||
import { prisma } from '../lib/db';
|
||||
|
||||
export default async () => {
|
||||
const account = await prisma.account.findOne({
|
||||
where: {
|
||||
username: 'admin',
|
||||
},
|
||||
});
|
||||
|
||||
if (!account) {
|
||||
await prisma.account.create({
|
||||
data: {
|
||||
username: 'admin',
|
||||
password: '$2a$10$BXHPV7APlV1I6WrKJt1igeJAyVsvbhMTaTAi3nHkUJFGPsYmfZq3y',
|
||||
is_admin: true,
|
||||
},
|
||||
});
|
||||
console.log('Account succesfully created.');
|
||||
} else {
|
||||
console.log('Account already exists.');
|
||||
}
|
||||
};
|
||||
7
cli/init.js
Normal file
7
cli/init.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import term from 'terminal-kit';
|
||||
|
||||
const { terminal } = term;
|
||||
|
||||
export default function init() {
|
||||
terminal('hello!');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue