chore: del logout toolbar plugin (#1410)

This commit is contained in:
chilingling 2025-05-17 09:26:47 +08:00 committed by GitHub
parent 6e3a4839fe
commit bff830a296
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 0 additions and 151 deletions

View File

@ -39,7 +39,6 @@ const getDevAlias = (useSourceAlias) => {
'@opentiny/tiny-engine-toolbar-view-setting': path.resolve(basePath, 'packages/toolbars/view-setting/index.ts'),
'@opentiny/tiny-engine-toolbar-lock': path.resolve(basePath, 'packages/toolbars/lock/index.ts'),
'@opentiny/tiny-engine-toolbar-logo': path.resolve(basePath, 'packages/toolbars/logo/index.ts'),
'@opentiny/tiny-engine-toolbar-logout': path.resolve(basePath, 'packages/toolbars/logout/index.ts'),
'@opentiny/tiny-engine-toolbar-media': path.resolve(basePath, 'packages/toolbars/media/index.ts'),
'@opentiny/tiny-engine-toolbar-preview': path.resolve(basePath, 'packages/toolbars/preview/index.ts'),
'@opentiny/tiny-engine-toolbar-generate-code': path.resolve(basePath, 'packages/toolbars/generate-code/index.ts'),

View File

@ -76,7 +76,6 @@
"@opentiny/tiny-engine-toolbar-lang": "workspace:*",
"@opentiny/tiny-engine-toolbar-lock": "workspace:*",
"@opentiny/tiny-engine-toolbar-logo": "workspace:*",
"@opentiny/tiny-engine-toolbar-logout": "workspace:*",
"@opentiny/tiny-engine-toolbar-media": "workspace:*",
"@opentiny/tiny-engine-toolbar-preview": "workspace:*",
"@opentiny/tiny-engine-toolbar-redoundo": "workspace:*",

View File

@ -1,20 +0,0 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
import entry from './src/Main.vue'
import metaData from './meta'
import './src/styles/vars.less'
export default {
...metaData,
entry
}

View File

@ -1,6 +0,0 @@
export default {
id: 'engine.toolbars.logout',
type: 'toolbars',
title: 'logout',
icon: ''
}

View File

@ -1,37 +0,0 @@
{
"name": "@opentiny/tiny-engine-toolbar-logout",
"version": "2.5.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/opentiny/tiny-engine",
"directory": "packages/toolbars/logout"
},
"bugs": {
"url": "https://github.com/opentiny/tiny-engine/issues"
},
"author": "OpenTiny Team",
"license": "MIT",
"homepage": "https://opentiny.design/tiny-engine",
"devDependencies": {
"@opentiny/tiny-engine-vite-plugin-meta-comments": "workspace:*",
"@vitejs/plugin-vue": "^5.1.2",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"vite": "^5.4.2"
},
"peerDependencies": {
"@opentiny/vue": "^3.20.0",
"vue": "^3.4.15"
}
}

View File

@ -1,28 +0,0 @@
<template>
<div class="top-panel-logout">
<a href="/platform-center/api/logout">注销</a>
</div>
</template>
<script lang="ts">
export default {
setup() {
return {}
}
}
</script>
<style lang="less" scoped>
.top-panel-logout {
padding-right: 12px;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
span,
a {
color: var(--te-toolbars-logout-text-color);
}
}
</style>

View File

@ -1,16 +0,0 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
import { getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register'
// 注销
export const requestLogout = () => getMetaApi(META_SERVICE.Http).post(`platform-center/api/logout`)

View File

@ -1,3 +0,0 @@
:root {
--te-toolbars-logout-text-color: var(--te-common-text-secondary);
}

View File

@ -1,39 +0,0 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
import { defineConfig } from 'vite'
import path from 'path'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import generateComment from '@opentiny/tiny-engine-vite-plugin-meta-comments'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [generateComment(), vue(), vueJsx()],
publicDir: false,
resolve: {},
build: {
sourcemap: true,
lib: {
entry: path.resolve(__dirname, './index.ts'),
name: 'toolbar-logout',
fileName: (_format, entryName) => `${entryName}.js`,
formats: ['es']
},
rollupOptions: {
output: {
banner: 'import "./style.css"'
},
external: ['vue', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/]
}
}
})