mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 04:06:43 -06:00
44 lines
775 B
Vue
44 lines
775 B
Vue
<template>
|
|
<MkContainer :naked="props.transparent" :show-header="false">
|
|
<div class="vubelbmv">
|
|
<MkAnalogClock class="clock"/>
|
|
</div>
|
|
</MkContainer>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import define from './define';
|
|
import MkContainer from '@client/components/ui/container.vue';
|
|
import MkAnalogClock from '@client/components/analog-clock.vue';
|
|
import * as os from '@client/os';
|
|
|
|
const widget = define({
|
|
name: 'clock',
|
|
props: () => ({
|
|
transparent: {
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
})
|
|
});
|
|
|
|
export default defineComponent({
|
|
extends: widget,
|
|
components: {
|
|
MkContainer,
|
|
MkAnalogClock
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.vubelbmv {
|
|
padding: 8px;
|
|
|
|
> .clock {
|
|
height: 150px;
|
|
margin: auto;
|
|
}
|
|
}
|
|
</style>
|