wip
This commit is contained in:
parent
ddcd3c3305
commit
a5a7f8a031
|
@ -14,13 +14,14 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faChartBar, faSort } from '@fortawesome/free-solid-svg-icons';
|
import { faChartBar, faSort } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
import XCalendar from './activity.calendar.vue';
|
import XCalendar from './activity.calendar.vue';
|
||||||
import XChart from './activity.chart.vue';
|
import XChart from './activity.chart.vue';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'activity',
|
name: 'activity',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -37,7 +38,10 @@ export default define({
|
||||||
hidden: true,
|
hidden: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer,
|
MkContainer,
|
||||||
XCalendar,
|
XCalendar,
|
||||||
|
|
|
@ -32,9 +32,10 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'calendar',
|
name: 'calendar',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
transparent: {
|
transparent: {
|
||||||
|
@ -42,7 +43,10 @@ export default define({
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
now: new Date(),
|
now: new Date(),
|
||||||
|
|
|
@ -7,11 +7,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import MkAnalogClock from '../components/analog-clock.vue';
|
import MkAnalogClock from '../components/analog-clock.vue';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'clock',
|
name: 'clock',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
transparent: {
|
transparent: {
|
||||||
|
@ -19,7 +20,10 @@ export default define({
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer,
|
MkContainer,
|
||||||
MkAnalogClock
|
MkAnalogClock
|
||||||
|
|
|
@ -16,12 +16,6 @@ export default function <T extends Form>(data: {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
bakedOldProps: null
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
id(): string {
|
id(): string {
|
||||||
return this.widget.id;
|
return this.widget.id;
|
||||||
|
|
|
@ -13,9 +13,10 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'digitalClock',
|
name: 'digitalClock',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
transparent: {
|
transparent: {
|
||||||
|
@ -32,7 +33,10 @@ export default define({
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
clock: null,
|
clock: null,
|
||||||
|
|
|
@ -19,12 +19,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faGlobe } from '@fortawesome/free-solid-svg-icons';
|
import { faGlobe } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
import MkMiniChart from '../components/mini-chart.vue';
|
import MkMiniChart from '../components/mini-chart.vue';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'federation',
|
name: 'federation',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -32,7 +33,10 @@ export default define({
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer, MkMiniChart
|
MkContainer, MkMiniChart
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,11 +10,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faStickyNote } from '@fortawesome/free-solid-svg-icons';
|
import { faStickyNote } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'memo',
|
name: 'memo',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -22,7 +23,10 @@ export default define({
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer
|
MkContainer
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,12 +9,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faBell } from '@fortawesome/free-solid-svg-icons';
|
import { faBell } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import XNotifications from '../components/notifications.vue';
|
import XNotifications from '../components/notifications.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'notifications',
|
name: 'notifications',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -26,7 +27,10 @@ export default define({
|
||||||
default: 300,
|
default: 300,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer,
|
MkContainer,
|
||||||
XNotifications,
|
XNotifications,
|
||||||
|
|
|
@ -15,12 +15,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faCamera } from '@fortawesome/free-solid-svg-icons';
|
import { faCamera } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
import { getStaticImageUrl } from '../scripts/get-static-image-url';
|
import { getStaticImageUrl } from '../scripts/get-static-image-url';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'photos',
|
name: 'photos',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -32,7 +33,10 @@ export default define({
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer,
|
MkContainer,
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,11 +13,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faRssSquare, faCog } from '@fortawesome/free-solid-svg-icons';
|
import { faRssSquare, faCog } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'rss',
|
name: 'rss',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -29,7 +30,10 @@ export default define({
|
||||||
default: 'http://feeds.afpbb.com/rss/afpbb/afpbbnews',
|
default: 'http://feeds.afpbb.com/rss/afpbb/afpbbnews',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer
|
MkContainer
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,13 +20,14 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faAngleDown, faAngleUp, faHome, faShareAlt, faGlobe, faListUl, faSatellite } from '@fortawesome/free-solid-svg-icons';
|
import { faAngleDown, faAngleUp, faHome, faShareAlt, faGlobe, faListUl, faSatellite } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { faComments } from '@fortawesome/free-regular-svg-icons';
|
import { faComments } from '@fortawesome/free-regular-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import XTimeline from '../components/timeline.vue';
|
import XTimeline from '../components/timeline.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'timeline',
|
name: 'timeline',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -48,7 +49,10 @@ export default define({
|
||||||
hidden: true,
|
hidden: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer,
|
MkContainer,
|
||||||
XTimeline,
|
XTimeline,
|
||||||
|
|
|
@ -18,12 +18,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { faHashtag } from '@fortawesome/free-solid-svg-icons';
|
import { faHashtag } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkContainer from '../components/ui/container.vue';
|
import MkContainer from '../components/ui/container.vue';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
import MkMiniChart from '../components/mini-chart.vue';
|
import MkMiniChart from '../components/mini-chart.vue';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'hashtags',
|
name: 'hashtags',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
showHeader: {
|
showHeader: {
|
||||||
|
@ -31,7 +32,10 @@ export default define({
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkContainer, MkMiniChart
|
MkContainer, MkMiniChart
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
import { toUnicode } from 'punycode';
|
import { toUnicode } from 'punycode';
|
||||||
import XSigninDialog from '../components/signin-dialog.vue';
|
import XSigninDialog from '../components/signin-dialog.vue';
|
||||||
import XSignupDialog from '../components/signup-dialog.vue';
|
import XSignupDialog from '../components/signup-dialog.vue';
|
||||||
|
@ -18,11 +19,14 @@ import MkButton from '../components/ui/button.vue';
|
||||||
import { host } from '../config';
|
import { host } from '../config';
|
||||||
import define from './define';
|
import define from './define';
|
||||||
|
|
||||||
export default define({
|
const widget = define({
|
||||||
name: 'welcome',
|
name: 'welcome',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
})
|
})
|
||||||
}).extend({
|
});
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
extends: widget,
|
||||||
components: {
|
components: {
|
||||||
MkButton
|
MkButton
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue