Skip to content

Commit 45a02c4

Browse files
committed
Upload Linux Support
1 parent 74eb648 commit 45a02c4

File tree

4 files changed

+39
-8
lines changed

4 files changed

+39
-8
lines changed

src/render/components/PHP/Extends.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,16 @@
6060
></el-radio-button>
6161
</el-radio-group>
6262
</template>
63-
<template v-else-if="isLinux"></template>
63+
<template v-else-if="isLinux">
64+
<el-radio-group v-model="lib" size="small">
65+
<el-radio-button value="loaded">{{
66+
I18nT('php.loadedExtensions')
67+
}}</el-radio-button>
68+
<template v-if="isHomeBrew">
69+
<el-radio-button value="homebrew">Homebrew</el-radio-button>
70+
</template>
71+
</el-radio-group>
72+
</template>
6473
</div>
6574
<el-button class="button" :disabled="loading" link @click="reFetch">
6675
<yb-icon

src/render/components/Tools/SystenEnv/main.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@
1515
})
1616
1717
const vm = computed(() => {
18-
if (isMacOS.value) {
19-
return markRaw(defineAsyncComponent(() => import('./Index.vue')))
20-
}
2118
if (isWindows.value) {
2219
return markRaw(defineAsyncComponent(() => import('./Index.win.vue')))
2320
}
24-
return undefined
21+
return markRaw(defineAsyncComponent(() => import('./Index.vue')))
2522
})
2623
</script>

src/render/components/VersionManager/all.vue

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,21 @@
5555
></el-radio-button>
5656
</el-radio-group>
5757
</template>
58-
<template v-else-if="isLinux"> </template>
58+
<template v-else-if="isLinux">
59+
<el-radio-group v-model="libSrc" size="small" class="ml-6">
60+
<el-radio-button
61+
class="flex-1"
62+
:label="I18nT('versionmanager.Local')"
63+
value="local"
64+
></el-radio-button>
65+
<template v-if="hasStatic">
66+
<el-radio-button value="static">Static</el-radio-button>
67+
</template>
68+
<template v-if="showBrewLib !== false">
69+
<el-radio-button value="brew">Homebrew</el-radio-button>
70+
</template>
71+
</el-radio-group>
72+
</template>
5973
</div>
6074
<el-button class="button" link :disabled="loading" @click="reFetch">
6175
<yb-icon
@@ -80,6 +94,17 @@
8094
<LocalVM :type-flag="typeFlag" />
8195
</template>
8296
</template>
97+
<template v-else-if="isLinux">
98+
<template v-if="libSrc === 'brew'">
99+
<BrewVM :type-flag="typeFlag" />
100+
</template>
101+
<template v-else-if="libSrc === 'static'">
102+
<StaticVM :type-flag="typeFlag" />
103+
</template>
104+
<template v-else-if="libSrc === 'local'">
105+
<LocalVM :type-flag="typeFlag" />
106+
</template>
107+
</template>
83108
<template v-else-if="isWindows">
84109
<template v-if="libSrc === 'local'">
85110
<LocalVM :type-flag="typeFlag" />
@@ -89,7 +114,7 @@
89114
</template>
90115
</template>
91116

92-
<template v-if="isMacOS && showFooter" #footer>
117+
<template v-if="!isWindows && showFooter" #footer>
93118
<template v-if="taskEnd">
94119
<el-button type="primary" @click.stop="taskConfirm">{{ I18nT('base.confirm') }}</el-button>
95120
</template>

src/render/components/VersionManager/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<StaticVM :type-flag="typeFlag" />
6868
</template>
6969
</template>
70-
<template v-if="(isMacOS || isLinux) && showFooter" #footer>
70+
<template v-if="!isWindows && showFooter" #footer>
7171
<template v-if="taskEnd">
7272
<el-button type="primary" @click.stop="taskConfirm">{{ I18nT('base.confirm') }}</el-button>
7373
</template>

0 commit comments

Comments
 (0)