Rename projects to FileShare

This commit is contained in:
2026-05-22 14:29:22 +08:00
parent 8270cf198b
commit 9f8da2c063
154 changed files with 394 additions and 398 deletions
+86
View File
@@ -0,0 +1,86 @@
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
--vt-c-white-soft: #f8f8f8;
--vt-c-white-mute: #f2f2f2;
--vt-c-black: #181818;
--vt-c-black-soft: #222222;
--vt-c-black-mute: #282828;
--vt-c-indigo: #2c3e50;
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
--vt-c-text-light-1: var(--vt-c-indigo);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}
/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);
--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);
--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);
--section-gap: 160px;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: var(--vt-c-text-dark-2);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
min-height: 100vh;
color: var(--color-text);
background: var(--color-background);
transition:
color 0.5s,
background-color 0.5s;
line-height: 1.6;
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen,
Ubuntu,
Cantarell,
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-serif;
font-size: 15px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>

After

Width:  |  Height:  |  Size: 276 B

+781
View File
@@ -0,0 +1,781 @@
@import './base.css';
:root {
--page: #f5f7fb;
--panel: #ffffff;
--panel-strong: #101828;
--line: #d9e1ea;
--text: #17202c;
--muted: #667085;
--accent: #0f766e;
--accent-strong: #115e59;
--danger: #b42318;
--danger-bg: #fff2f0;
--shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
}
* {
box-sizing: border-box;
}
body {
min-width: 320px;
background: var(--page);
color: var(--text);
}
button,
input,
select {
font: inherit;
}
button,
a {
-webkit-tap-highlight-color: transparent;
}
button {
min-height: 38px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 0 13px;
color: var(--text);
background: #fff;
cursor: pointer;
}
button:hover:not(:disabled) {
border-color: var(--accent);
}
button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
input,
select {
width: 100%;
min-height: 42px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 0 12px;
color: var(--text);
background: #fff;
}
a {
color: inherit;
text-decoration: none;
}
#app {
min-height: 100vh;
}
.primary-button {
color: #fff;
border-color: var(--accent);
background: var(--accent);
}
.secondary-button {
color: var(--text);
background: #fff;
}
.danger-button {
color: var(--danger);
}
.text-button {
min-height: 30px;
border: none;
padding: 0;
color: var(--accent);
background: transparent;
}
.error-banner {
border: 1px solid #f1b8b2;
border-radius: 10px;
padding: 10px 12px;
color: var(--danger);
background: var(--danger-bg);
}
.empty-state,
.hint,
.unsupported {
color: var(--muted);
}
.admin-shell {
width: min(1480px, 100%);
margin: 0 auto;
padding: 28px;
}
.admin-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 28px;
align-items: end;
border-radius: 18px;
padding: 34px;
color: #fff;
background:
linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(16, 24, 40, 0.98)),
#101828;
box-shadow: var(--shadow);
}
.eyebrow {
margin: 0 0 10px;
color: #a7f3d0;
font-size: 13px;
font-weight: 700;
letter-spacing: 0;
text-transform: uppercase;
}
.admin-hero h1 {
margin: 0;
font-size: 36px;
font-weight: 800;
}
.admin-hero p {
max-width: 720px;
margin: 12px 0 0;
color: #d9f5ef;
}
.admin-metrics {
display: grid;
grid-template-columns: repeat(3, 120px);
gap: 12px;
}
.admin-metrics div {
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 14px;
padding: 16px;
background: rgba(255, 255, 255, 0.10);
}
.admin-metrics strong {
display: block;
font-size: 28px;
font-weight: 800;
}
.admin-metrics span {
color: #d9f5ef;
font-size: 13px;
}
.admin-layout {
display: grid;
grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
gap: 18px;
margin-top: 18px;
}
.admin-card {
border: 1px solid var(--line);
border-radius: 16px;
padding: 22px;
background: var(--panel);
box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}
.card-heading,
.browser-header,
.inline-form,
.root-actions,
.root-main,
.root-meta,
.mobile-header,
.filter-row,
.player-title,
.mobile-pager {
display: flex;
align-items: center;
}
.card-heading,
.browser-header,
.mobile-header,
.player-title {
justify-content: space-between;
gap: 14px;
}
.card-heading h2,
.drive-list h3,
.directory-list h3 {
margin: 0;
font-size: 20px;
font-weight: 800;
}
.card-heading p {
margin: 5px 0 0;
color: var(--muted);
}
.client-link,
.admin-link {
flex: 0 0 auto;
border: 1px solid var(--line);
border-radius: 999px;
padding: 8px 14px;
color: var(--accent-strong);
background: #fff;
}
.field {
display: grid;
gap: 8px;
margin-top: 20px;
}
.field span {
color: var(--muted);
font-size: 13px;
}
.inline-form {
gap: 10px;
}
.inline-form button {
flex: 0 0 auto;
}
.admin-browser {
display: grid;
grid-template-columns: 0.8fr 1.2fr;
gap: 14px;
margin-top: 22px;
}
.drive-list,
.directory-list {
display: grid;
align-content: start;
gap: 10px;
min-height: 420px;
}
.drive-row,
.directory-row {
display: grid;
justify-items: start;
width: 100%;
min-height: 54px;
text-align: left;
}
.drive-row span,
.directory-row {
overflow: hidden;
max-width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
}
.drive-row small,
.current-path {
color: var(--muted);
font-size: 13px;
}
.current-path {
overflow-wrap: anywhere;
margin: 0;
}
.root-table {
display: grid;
gap: 12px;
margin-top: 20px;
}
.root-item {
display: grid;
gap: 12px;
border: 1px solid var(--line);
border-radius: 14px;
padding: 16px;
background: #fff;
}
.root-main {
gap: 12px;
min-width: 0;
}
.root-main strong {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 800;
}
.root-main p,
.root-error {
margin: 4px 0 0;
overflow-wrap: anywhere;
color: var(--muted);
}
.root-error {
color: var(--danger);
}
.root-meta {
flex-wrap: wrap;
gap: 8px;
color: var(--muted);
font-size: 13px;
}
.root-meta span {
border-radius: 999px;
padding: 4px 9px;
background: #f2f4f7;
}
.root-actions {
flex-wrap: wrap;
gap: 8px;
}
.status-pill {
flex: 0 0 auto;
border-radius: 999px;
padding: 5px 10px;
font-size: 13px;
font-weight: 800;
}
.status-pill.ok {
color: #067647;
background: #dcfae6;
}
.status-pill.bad {
color: var(--danger);
background: var(--danger-bg);
}
.client-shell {
width: min(860px, 100%);
margin: 0 auto;
padding: 14px;
}
.mobile-header {
position: sticky;
top: 0;
z-index: 5;
margin: -14px -14px 12px;
padding: 16px 14px 12px;
background: rgba(245, 247, 251, 0.94);
backdrop-filter: blur(12px);
}
.mobile-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.back-button {
border-radius: 999px;
color: var(--accent-strong);
}
.mobile-header h1 {
margin: 0;
font-size: 28px;
font-weight: 850;
}
.mobile-header p,
.player-title p,
.mobile-file small {
margin: 3px 0 0;
color: var(--muted);
}
.mobile-filters,
.player-panel,
.mobile-list,
.root-picker {
border: 1px solid var(--line);
border-radius: 14px;
padding: 12px;
background: var(--panel);
}
.root-picker {
display: grid;
gap: 10px;
}
.root-tile {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 4px 12px;
width: 100%;
min-height: 76px;
padding: 13px;
text-align: left;
}
.root-tile span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 850;
}
.root-tile strong {
grid-row: span 2;
align-self: center;
color: var(--accent-strong);
font-size: 24px;
font-weight: 850;
}
.root-tile small {
overflow: hidden;
color: var(--muted);
text-overflow: ellipsis;
white-space: nowrap;
}
.filter-row {
gap: 8px;
margin-top: 8px;
}
.filter-row select {
min-width: 0;
}
.filter-row button {
flex: 0 0 auto;
}
.player-panel {
margin-top: 12px;
}
.player-title {
align-items: flex-start;
}
.player-title h2 {
margin: 0;
overflow-wrap: anywhere;
font-size: 18px;
font-weight: 800;
}
.player-title span {
flex: 0 0 auto;
border-radius: 999px;
padding: 4px 9px;
color: var(--accent-strong);
background: #ccfbef;
font-size: 12px;
font-weight: 800;
}
.player-panel video {
width: 100%;
max-height: 54vh;
margin-top: 12px;
border-radius: 10px;
background: #111827;
}
.player-panel audio {
width: 100%;
margin-top: 18px;
}
.open-media-link {
display: block;
width: 100%;
margin-top: 10px;
border: 1px solid var(--line);
border-radius: 10px;
padding: 10px 12px;
color: var(--accent-strong);
background: #f0fdfa;
text-align: center;
font-weight: 800;
}
.player-panel pre {
overflow: auto;
max-height: 54vh;
margin: 12px 0 0;
border: 1px solid var(--line);
border-radius: 10px;
padding: 12px;
background: #f8fafc;
color: #111827;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.mobile-list {
display: grid;
gap: 9px;
margin-top: 12px;
padding: 8px;
}
.mobile-file {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
width: 100%;
min-height: 68px;
padding: 10px;
text-align: left;
}
.mobile-file.active {
border-color: var(--accent);
background: #ecfdf5;
}
.mobile-file > span:last-child {
display: grid;
min-width: 0;
}
.mobile-file strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 800;
}
.type-badge {
flex: 0 0 52px;
border-radius: 999px;
padding: 4px 8px;
color: #fff;
background: var(--accent-strong);
text-align: center;
font-size: 12px;
font-weight: 800;
}
.mobile-pager {
justify-content: center;
gap: 10px;
padding: 14px 0 4px;
}
.empty-state,
.unsupported {
margin: 22px 0;
text-align: center;
}
.qr-button {
border-radius: 999px;
padding: 8px 14px;
color: var(--accent-strong);
background: #fff;
}
.qr-overlay {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(16, 24, 40, 0.55);
backdrop-filter: blur(6px);
}
.qr-modal {
display: grid;
justify-items: center;
gap: 16px;
border-radius: 18px;
padding: 28px 24px 22px;
background: #fff;
box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
text-align: center;
}
.qr-modal h2 {
margin: 0;
font-size: 20px;
font-weight: 800;
}
.qr-image {
display: block;
width: 240px;
height: 240px;
border: 1px solid var(--line);
border-radius: 12px;
}
.qr-hint {
margin: 0;
color: var(--muted);
font-size: 14px;
}
.qr-close {
min-width: 120px;
}
.breadcrumb-nav {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 12px;
padding: 0;
}
.breadcrumb-item {
min-height: 30px;
border: none;
padding: 4px 8px;
color: var(--muted);
background: transparent;
font-size: 14px;
font-weight: 600;
}
.breadcrumb-item:hover:not(:disabled) {
color: var(--accent-strong);
border-color: transparent;
}
.breadcrumb-item.active {
color: var(--text);
font-weight: 800;
}
.breadcrumb-sep {
color: var(--muted);
font-size: 14px;
}
.browse-content {
display: grid;
gap: 14px;
}
.browse-section h3 {
margin: 0 0 8px;
font-size: 15px;
font-weight: 800;
color: var(--muted);
}
.folder-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 8px;
}
.folder-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-height: 46px;
padding: 8px 12px;
text-align: left;
font-weight: 600;
}
.folder-icon {
font-size: 20px;
}
.file-list {
display: grid;
gap: 8px;
border: 1px solid var(--line);
border-radius: 14px;
padding: 8px;
background: var(--panel);
}
@media (max-width: 1100px) {
.admin-layout,
.admin-browser {
grid-template-columns: 1fr;
}
.admin-metrics {
grid-template-columns: repeat(3, minmax(90px, 1fr));
}
}
@media (max-width: 780px) {
.admin-shell {
padding: 14px;
}
.admin-hero {
grid-template-columns: 1fr;
padding: 22px;
}
.admin-hero h1 {
font-size: 30px;
}
.admin-metrics {
grid-template-columns: 1fr;
}
.inline-form,
.filter-row {
align-items: stretch;
flex-direction: column;
}
.inline-form button,
.filter-row button {
width: 100%;
}
}
@media (min-width: 900px) {
.client-shell {
padding-top: 24px;
}
.mobile-header {
position: static;
margin: 0 0 14px;
border: 1px solid var(--line);
border-radius: 16px;
padding: 18px;
background: var(--panel);
}
}