Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Aug 26, 2022
1 parent a13ab50 commit 454e810
Show file tree
Hide file tree
Showing 31 changed files with 63 additions and 242 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@
</div>
</template>
<script
setup
lang="ts"
>
<script setup lang="ts">
import { computed, Ref } from '@vue/reactivity';
import debounce from 'lodash/debounce';
import { nextTick, onMounted, ref, watch } from 'vue';
Expand Down
5 changes: 1 addition & 4 deletions packages/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@
</div>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { nextTick, onMounted, onUnmounted } from 'vue';
import { useRouter } from 'vue-router';
import Title from './components/Title.vue';
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
</div>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { toRefs } from 'vue';
interface CardProps {
title?: string;
Expand All @@ -29,10 +26,7 @@ const props = withDefaults(defineProps<CardProps>(), {
const { title } = toRefs(props);
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
#app .ant-badge-status-dot {
height: 16px;
border-radius: 4px;
Expand Down
11 changes: 3 additions & 8 deletions packages/web/src/components/CodeHighlight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
</div></code></pre>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { toRefs } from 'vue';
import highlight from 'highlight.js/lib/core';
Expand Down Expand Up @@ -45,10 +42,7 @@ function render(content: string, language: string) {
}
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
pre,
code {
padding: 0 !important;
Expand All @@ -62,6 +56,7 @@ code {
.error {
background-color: #ff000030;
}
.info {
background-color: #70b2df30;
}
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/Description.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
</span>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { toRefs } from 'vue';
interface DescriptionProps {
label: string;
Expand All @@ -33,10 +30,7 @@ const props = withDefaults(defineProps<DescriptionProps>(), {
const { label, desc, textClass } = toRefs(props);
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.desc {
word-wrap: break-word;
word-break: break-all;
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/Help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,11 @@
</div>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import Key from './Key.vue';
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.help-content {
width: fit-content;
}
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
</span>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { toRefs } from 'vue';
interface IconProps {
type: string;
Expand All @@ -24,10 +21,7 @@ const props = withDefaults(defineProps<IconProps>(), {
const { type } = toRefs(props);
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.active {
color: #1890ff;
}
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/Key.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@
</span>
</template>

<script
setup
lang="ts"
></script>
<script setup lang="ts"></script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.key {
padding: 2px;
margin: 0px 4px 0px 4px;
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/MultipleFileStartup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
</a-modal>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { ref, toRefs } from 'vue';
import { File } from '../core/File';
import { startup } from './file/File';
Expand All @@ -62,7 +59,4 @@ function handleOk() {
}
</script>

<style
scoped
lang="less"
></style>
<style scoped lang="less"></style>
10 changes: 2 additions & 8 deletions packages/web/src/components/Path.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
</div>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { ref, toRefs } from 'vue';
import Description from './Description.vue';
import { remote } from '../utils/remote';
Expand Down Expand Up @@ -55,7 +52,4 @@ async function change(name: string) {
}
</script>

<style
scoped
lang="less"
></style>
<style scoped lang="less"></style>
10 changes: 2 additions & 8 deletions packages/web/src/components/Title.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@
</div>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { Modal } from 'ant-design-vue';
import { h, nextTick, onMounted, ref, watch } from 'vue';
import { nextTutorialStep, store, files } from '../store';
Expand Down Expand Up @@ -180,10 +177,7 @@ function multipleFileStartup() {
}
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.title {
width: 100%;
display: flex;
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/TitleLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
</a-menu-item>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
interface TitleLinkProps {
url: string;
title: string;
Expand All @@ -21,7 +18,4 @@ function open(url: string) {
}
</script>

<style
scoped
lang="less"
></style>
<style scoped lang="less"></style>
10 changes: 2 additions & 8 deletions packages/web/src/components/Tutorial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
</template>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { toRefs } from 'vue';
interface HelperProps {
content: string;
Expand All @@ -45,7 +42,4 @@ const emits = defineEmits<{
}>();
</script>

<style
scoped
lang="less"
></style>
<style scoped lang="less"></style>
10 changes: 2 additions & 8 deletions packages/web/src/components/file/FileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
/>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { ref, Ref, toRefs } from 'vue';
import { notify } from '../../utils/notify';
import { remote } from '../../utils/remote';
Expand Down Expand Up @@ -47,7 +44,4 @@ function onError(e: Error) {
}
</script>

<style
scoped
lang="less"
></style>
<style scoped lang="less"></style>
10 changes: 2 additions & 8 deletions packages/web/src/components/file/FilePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,7 @@
</template>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { computed, nextTick, onMounted, onUnmounted, ref, toRefs, watch } from 'vue';
import { Form, scriptForms } from '.';
import { NodeJS } from '../../utils/export';
Expand Down Expand Up @@ -317,10 +314,7 @@ onUnmounted(() => {
});
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.error-page {
width: 100%;
padding-top: 50px;
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/file/FileTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@
</ATree>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { message } from 'ant-design-vue';
import ATree from 'ant-design-vue/lib/tree';
import { TreeDataItem } from 'ant-design-vue/lib/tree/Tree';
Expand Down Expand Up @@ -271,10 +268,7 @@ function renameDir(dir: string, dest: string) {
}
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
#app .file-tree {
.file-title {
font-size: 12px;
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/file/FilesTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@
</a-directory-tree>
</template>

<script
setup
lang="ts"
>
<script setup lang="ts">
import { ref, toRefs } from 'vue';
import { config } from '../../config';
import { MenuItem } from '../../components/menus';
Expand Down Expand Up @@ -207,10 +204,7 @@ function onDrop(info: any) {
}
</script>

<style
scoped
lang="less"
>
<style scoped lang="less">
.rename-input {
width: min-content;
-webkit-user-select: none !important;
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/components/file/ScreenShot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@
</div>
</template>
<script
setup
lang="ts"
>
<script setup lang="ts">
import { toRefs } from 'vue';
interface Screenshot {
Expand All @@ -79,10 +76,7 @@ const props = withDefaults(defineProps<ScreenShotProps>(), {
const { screenshots } = toRefs(props);
</script>
<style
scoped
lang="less"
>
<style scoped lang="less">
:deep(.ant-empty-img-default) {
width: 100px;
height: 100px;
Expand Down
Loading

0 comments on commit 454e810

Please sign in to comment.