Launch LaySite visual editor and MCP workspace

This commit is contained in:
2026-11-22 23:26:08 +08:00
commit 1bb0554608
159 changed files with 11103 additions and 0 deletions
+324
View File
@@ -0,0 +1,324 @@
.admin-body { background: var(--paper); min-height: 100vh; }
.admin-wrap { width: min(calc(100% - 2rem), 67rem); margin-inline: auto; }
.admin-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar-inner, .admin-bar nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; }
.admin-bar-inner { justify-content: space-between; min-height: 4.5rem; padding-block: .45rem; }
.admin-bar nav > a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 550; }
.admin-main { padding-block: clamp(1.65rem, 4vw, 3.25rem); }
.admin-main h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; }
.admin-main h2 { font-size: 1.38rem; margin-bottom: 1rem; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin: 0 0 1.2rem; }
.admin-heading.compact h2, .admin-heading p { margin: 0; }
.admin-heading p { margin-top: .4rem; }
.admin-panel, .login-box { border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); background: var(--white); border-radius: var(--radius); margin-bottom: 1.15rem; }
.login-box { max-width: 27rem; margin: clamp(1.5rem, 6vw, 5rem) auto; }
.login-box p { margin-block: .6rem 1.25rem; }
.admin-form { display: grid; gap: 1rem; }
.admin-form label { display: grid; gap: .4rem; font-weight: 570; color: var(--ink); }
.admin-form :where(input:not([type=hidden]), select, textarea) {
background: white;
color: var(--ink);
width: 100%;
border: 1px solid #b9c7dd;
border-radius: .5rem;
padding: .6rem .75rem;
font-size: 1rem;
font-weight: 400;
min-height: 44px;
}
.admin-form textarea { resize: vertical; }
.admin-form small, .field-note { color: var(--muted); font-size: .875rem; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-submit { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.form-submit label { min-width: 10rem; }
.admin-list { margin: 0; padding: 0; list-style: none; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.admin-list small { display: block; color: var(--muted); font-size: .875rem; }
.feedback { padding: .8rem 1rem; border-radius: .5rem; }
.feedback.error { background: #feebeb; color: #9c252a; }
.feedback.success { background: #e5f6ed; color: #126044; }
.button-danger { color: #9c252a; background: transparent; border-color: #e6b6b9; }
.button-danger:hover { color: #9c252a; background: #feebeb; }
.editor { display: grid; gap: .45rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: space-between; padding: .45rem; border: 1px solid var(--line); background: var(--paper); border-radius: .5rem; }
.editor-toolbar > div { display: flex; flex-wrap: wrap; gap: .25rem; }
.editor-toolbar button { border: 1px solid var(--line); background: var(--white); border-radius: .35rem; min-height: 44px; padding: .45rem .7rem; color: var(--ink); }
.editor-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.editor textarea { font-family: var(--mono); font-size: .95rem; line-height: 1.55; }
.editor-preview { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; }
.field-note { margin: 0; }
@media (max-width: 38rem) {
.form-grid { grid-template-columns: 1fr; }
.admin-bar nav { gap: .3rem .85rem; }
}
.password-form { max-width: 37rem; }
.admin-form button:disabled, .admin-bar button:disabled { cursor: progress; opacity: .65; }
.admin-form .ajax-feedback { margin: 0; }
.studio-frame-window { position: relative; height: min(67vh, 39rem); overflow: hidden; margin-bottom: .8rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
.studio-frame-window iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }
.studio-frame-window.has-scaled-preview iframe { position: absolute; top: 0; transform-origin: 0 0; }
.studio-canvas-toolbar { margin-bottom: .55rem; }
.studio-canvas-toolbar button:disabled { opacity: .5; cursor: default; }
.preview-selector { display: flex; gap: .35rem; flex-wrap: wrap; }
.preview-selector [aria-pressed="true"] { background: var(--accent-light); color: var(--accent-deep); }
.studio-inspector details label { margin-top: .7rem; }
.studio-blocks form, .studio-block-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem; }
.studio-blocks .button { padding-inline: .65rem; }
.studio-block-add { margin-top: 1.25rem; }
.studio-rich { min-height: 15rem; max-width: 100%; overflow-x: auto; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .55rem; }
.studio-rich:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio-rich details { margin-bottom: .5rem; }
.studio-rich img, .studio-rich video { max-width: 100%; height: auto; }
.asset-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem; }
.settings-form { max-width: 54rem; }
.media-grid, .picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; }
.media-card, .picker-item { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; background: white; padding: .75rem; overflow-wrap: anywhere; }
.media-card > img, .picker-item img, .media-file-type { height: 6rem; width: 100%; object-fit: contain; background: var(--paper); border-radius: .45rem; margin-bottom: .7rem; }
.media-card .media-file-type { display: grid; place-items: center; font-size: 1.1rem; text-transform: uppercase; }
.media-card h3 { font-size: 1rem; margin-bottom: 0; }
.media-card small { color: var(--muted); }
.media-card .actions { margin: .45rem 0; }
.media-card .button { padding-inline: .55rem; }
.media-card .media-archive { display: flex; align-items: center; }
.media-card .media-archive input { width: auto; min-height: 0; }
.media-picker { max-width: min(92vw, 52rem); max-height: 86vh; width: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.media-picker.canvas-properties { max-width: min(92vw, 32rem); }
.media-picker::backdrop { background: #101c3488; }
.media-picker label { display: grid; gap: .35rem; }
.media-picker input { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .4rem; }
.picker-grid { max-height: 50vh; overflow: auto; padding: .25rem; }
.picker-item { text-align: left; min-height: 44px; }
.picker-item:hover { border-color: var(--accent); }
@media (max-width: 65rem) {
}
.admin-wrap.admin-wide { width: calc(100% - clamp(1rem, 3vw, 3rem)); }
.studio-layout {
display: grid;
align-items: start;
grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
grid-template-areas: "library workspace" "library settings";
gap: .9rem;
}
.studio-library { grid-area: library; position: sticky; z-index: 3; top: .75rem; max-height: calc(100vh - 1.5rem); overflow: auto; }
.studio-library h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.studio-workspace { grid-area: workspace; min-width: 0; }
.studio-inspector { grid-area: settings; }
.studio-workspace .studio-preview { padding: clamp(.55rem, 1.25vw, 1rem); }
.studio-workspace .studio-frame-window { height: max(34rem, calc(100dvh - 16rem)); }
.studio-workspace .studio-preview h2 { font-size: 1.2rem; }
.studio-presets { display: grid; gap: .4rem; }
.studio-library .studio-layers button:not(.button), .studio-pending button {
width: 100%;
min-height: 2.75rem;
padding: .55rem .75rem;
margin: 0;
border: 1px solid var(--line);
border-radius: .45rem;
background: var(--white);
color: var(--ink);
text-align: left;
}
.studio-library button:not(.button):hover { border-color: var(--accent); color: var(--accent); }
.studio-insert-mode { margin-block: .45rem .15rem; font-size: .875rem; }
.studio-pending { padding: 0; margin: 0; list-style: none; }
.studio-pending li + li { margin-top: .3rem; }
.studio-presets [role="status"]:empty { margin: 0; }
.studio-layers { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .55rem; }
.studio-layers summary { cursor: pointer; font-weight: 620; }
.studio-layers[open] > summary { margin-bottom: .55rem; }
.studio-library .studio-layers > button + button { margin-top: .3rem; }
.studio-layers .studio-blocks li { display: grid; gap: .4rem; }
.studio-layers .studio-block-actions .button { min-height: 2.25rem; padding: .25rem .5rem; font-size: .8rem; }
.studio-media-sizing { position: absolute; z-index: 1; inset: auto .6rem .6rem auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .45rem .6rem; max-width: calc(100% - 1.2rem); background: var(--accent-light); border: 1px solid var(--line); border-radius: .45rem; }
.studio-element-tools {
position: absolute; z-index: 3; display: flex; align-items: center; gap: .12rem; padding: .18rem;
border: 1px solid #c7d6f3; border-radius: .52rem; background: var(--white);
box-shadow: 0 .22rem .85rem #16305230;
}
.studio-element-tools button {
display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
border: 0; border-radius: .32rem; background: transparent; color: #35496d; cursor: pointer;
}
.studio-element-tools button svg { width: 1rem; height: 1rem; pointer-events: none; }
.studio-element-tools button:hover, .studio-element-tools button:focus-visible { background: var(--accent-light); color: var(--accent-deep); }
.studio-element-tools button:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.studio-element-tools button[data-element-delete]:hover { color: #a12727; background: #fceeee; }
.studio-element-tools.is-module [data-element-module-settings] { background: var(--accent-light); color: var(--accent-deep); }
.studio-media-handle {
position: absolute; z-index: 2; width: 1.4rem; height: 2.8rem; translate: -50% -50%;
display: grid; place-content: center; border: 2px solid white; border-radius: .42rem;
background: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: white; cursor: ew-resize;
touch-action: none; user-select: none;
}
.studio-media-handle::after { content: ''; width: .38rem; height: .9rem; border-inline: 1px solid currentColor; }
.studio-media-sizing output { font-size: .85rem; font-variant-numeric: tabular-nums; }
.studio-media-sizing .button { min-height: 2.2rem; padding: .25rem .7rem; }
@media (max-width: 54rem) {
.studio-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "library" "workspace" "settings"; }
.studio-library { position: static; max-height: none; }
.studio-workspace .studio-frame-window { height: max(25rem, 64dvh); }
}
.studio-template-search { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.studio-template-search input {
width: 100%;
min-height: 42px;
padding: .45rem .6rem;
color: var(--ink);
background: var(--white);
border: 1px solid var(--line);
border-radius: .5rem;
}
.studio-library-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; padding: .22rem; margin-bottom: .45rem; border-radius: .6rem; background: var(--paper); }
.studio-library-tabs button, .studio-library-categories button, .studio-library-category-title button, .studio-element-items button {
color: var(--ink); font-family: inherit; cursor: pointer;
}
.studio-library-tabs button { min-height: 2.4rem; padding: .3rem .18rem; border: 1px solid transparent; border-radius: .42rem; background: transparent; font-size: .84rem; }
.studio-library-tabs button[aria-selected="true"] { border-color: var(--line); background: var(--white); color: var(--accent-deep); font-weight: 650; box-shadow: 0 1px 2px #182e5110; }
.studio-library-categories { list-style: none; padding: 0; margin: 0; }
.studio-library-categories li + li { border-top: 1px solid var(--line); }
.studio-library-categories button, .studio-element-items button {
display: flex; gap: .35rem; align-items: center; width: 100%; min-height: 2.65rem; padding: .4rem .32rem;
text-align: left; border: 1px solid transparent; border-radius: .35rem; background: transparent; font-size: .9rem;
}
.studio-library-categories button::after { content: ''; width: .38rem; height: .38rem; border: solid currentColor; border-width: 1px 1px 0 0; rotate: 45deg; margin-inline-end: .25rem; }
.studio-library-categories small { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-library-content { display: grid; gap: .55rem; min-width: 0; }
.studio-library-category-title { display: grid; gap: .28rem; }
.studio-library-category-title h3 { font-size: 1rem; margin: 0; }
.studio-library-category-title button { justify-self: start; min-height: 2.25rem; padding: .25rem .45rem; background: var(--white); border: 1px solid var(--line); border-radius: .38rem; font-size: .8rem; }
.studio-library-category-title button::before { content: '‹'; margin-inline-end: .3em; }
.studio-element-items { display: grid; gap: .35rem; }
.studio-element-items button { justify-content: space-between; padding-inline: .55rem; border-color: var(--line); background: var(--white); }
.studio-element-items button::after { content: '+'; color: var(--accent-deep); }
.studio-element-items button:disabled { opacity: .55; cursor: wait; }
.studio-template-cards { display: grid; gap: .48rem; }
.studio-template-card { min-width: 0; border: 1px solid var(--line); border-radius: .55rem; background: var(--white); }
.studio-template-card:focus-within { border-color: var(--accent); }
.studio-template-image {
display: block;
width: 100%;
padding: 0;
overflow: hidden;
border: 0;
border-radius: .5rem .5rem 0 0;
background: var(--paper);
}
.studio-template-image img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; transition: transform .16s ease; }
.studio-template-image:hover img, .studio-template-image:focus-visible img { transform: scale(1.07); }
.studio-template-meta { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .3rem .38rem .3rem .55rem; font-size: .875rem; }
.studio-template-meta .button { min-height: 33px; font-size: .8rem; flex: 0 0 auto; padding: .2rem .45rem; }
.studio-template-peek {
position: fixed;
z-index: 2;
overflow: hidden;
pointer-events: none;
background: var(--white);
border: 1px solid #adbfdf;
border-radius: .65rem;
box-shadow: 0 14px 35px #142e5626;
}
.studio-template-peek img, .studio-template-dialog img { width: 100%; height: auto; aspect-ratio: 8 / 5; display: block; }
.studio-template-peek p { padding: .5rem .8rem; margin: 0; font-size: .9rem; color: var(--ink); }
.studio-template-dialog { width: min(90vw, 49rem); }
.studio-template-dialog > img { border: 1px solid var(--line); border-radius: .55rem; }
.studio-template-dialog > .actions { justify-content: flex-end; margin-top: .75rem; }
@media (max-width: 54rem) {
.studio-library-content { max-height: 55dvh; overflow-y: auto; padding: .2rem; }
.studio-template-cards { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.studio-template-meta { flex-wrap: wrap; }
.studio-template-peek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.studio-template-image img { transition: none; }
}
.category-checks { min-width: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .5rem; }
.category-checks > div { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; }
.admin-form .category-checks label { display: inline-flex; align-items: center; gap: .35rem; }
.admin-form .category-checks input { min-height: 0; width: auto; }
.admin-options { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .5rem; }
.admin-options > summary { font-weight: 650; cursor: pointer; }
.admin-options[open] > summary { margin-bottom: .85rem; }
.admin-options .form-grid + .category-checks { margin-top: .8rem; }
.article-editor { min-width: 0; }
.article-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .45rem; }
.article-editor-heading > .button { min-height: 2.1rem; padding: .25rem .6rem; }
.article-editor-help:empty { display: none; }
.studio-element-align { display: flex; gap: .05rem; padding-inline-end: .15rem; border-inline-end: 1px solid var(--line); }
.studio-element-align button[aria-pressed="true"] { background: var(--accent-light); color: var(--accent-deep); }
.admin-primary a { padding: .28rem .65rem; border-radius: .48rem; color: var(--muted); }
.admin-primary a[aria-current="page"] { background: var(--accent-light); color: var(--accent-deep); }
.admin-utility { display: flex; gap: .8rem; align-items: center; font-size: .88rem; }
.admin-utility > a { padding-block: .55rem; white-space: nowrap; }
.admin-account { position: relative; z-index: 5; }
.admin-account summary {
min-height: 2.45rem; padding: .43rem .6rem; border: 1px solid var(--line);
border-radius: .45rem; color: var(--ink); cursor: pointer;
}
.admin-account-menu {
position: absolute; inset: calc(100% + .4rem) 0 auto auto; min-width: 8rem; padding: .3rem;
border: 1px solid var(--line); border-radius: .5rem; background: white; box-shadow: 0 .55rem 1.5rem #1d315026;
}
.admin-account-menu a, .admin-account-menu button {
display: block; width: 100%; padding: .52rem .65rem; border: 0; border-radius: .3rem; background: white;
color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer;
}
.admin-account-menu :is(a, button):hover { background: var(--paper); color: var(--accent-deep); }
.dashboard-heading { margin-bottom: 1.55rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 1.05rem; }
.dashboard-grid .admin-panel { padding: clamp(.95rem, 2.3vw, 1.55rem); }
.dashboard-filters { display: grid; grid-template-columns: 1fr minmax(6.8rem, 9rem); gap: .7rem; margin-bottom: .8rem; }
.dashboard-filters label { display: grid; min-width: 0; gap: .25rem; font-size: .83rem; color: var(--muted); }
.dashboard-filters :is(input, select) { width: 100%; min-height: 2.65rem; padding: .38rem .52rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: var(--white); font: inherit; }
.dashboard-page-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .55rem .85rem; }
.dashboard-page-label { min-width: 0; overflow-wrap: anywhere; }
.dashboard-page-state { padding: .15rem .48rem; border-radius: .35rem; background: var(--paper); color: var(--muted); font-size: .78rem; white-space: nowrap; }
.dashboard-page-state[data-published="true"] { background: #e9f6ef; color: #1b6744; }
.dashboard-page-actions { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.dashboard-page-actions > a { font-size: .84rem; }
.dashboard-page-actions > .button { min-height: 2.25rem; padding: .28rem .55rem; }
.dashboard-secondary .admin-list li { gap: .35rem .65rem; }
.dashboard-secondary .admin-list .button { min-height: 2.15rem; padding: .25rem .5rem; font-size: .82rem; }
.dashboard-settings h2 { margin-bottom: .55rem; }
.dashboard-setting-buttons { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.dashboard-setting-buttons .button { min-height: 2.45rem; padding: .3rem .6rem; font-size: .85rem; }
@media (max-width: 51rem) {
.dashboard-grid { grid-template-columns: 1fr; gap: 0; }
.admin-bar .admin-primary { order: 3; width: 100%; gap: .15rem .35rem; }
}
@media (max-width: 28rem) {
.dashboard-page-list li { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-page-actions { grid-column: 1 / -1; }
}
.studio-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.studio-page-meta code { color: var(--muted); font-size: .86rem; }
.studio-anchor-create, .studio-hero-settings { padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .45rem; }
.studio-anchor-create { margin-top: .55rem; font-size: .84rem; }
.studio-anchor-create summary, .studio-hero-settings summary { cursor: pointer; font-weight: 630; }
.studio-anchor-create[open] form, .studio-hero-controls { margin-top: .6rem; }
.studio-hero-controls { display: flex; flex-wrap: wrap; gap: .42rem; }
.studio-hero-controls .button { min-height: 2.35rem; padding: .3rem .62rem; font-size: .85rem; }
.studio-canvas-status:empty { display: none; }
.canvas-module-settings { max-width: min(92vw, 40rem); }
@media (pointer: coarse) {
.studio-element-tools button { width: 2.5rem; height: 2.5rem; }
}
.canvas-module-settings .category-checks { max-height: min(15rem, 27dvh); overflow-y: auto; }
.canvas-module-settings .actions { position: sticky; bottom: 0; padding-block: .35rem; margin: 0; background: var(--white); }
.design-overview, .palette-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.palette-fields input[type=color] { padding: .25rem; }
.layout-components input[type=checkbox] { width: auto; min-height: auto; }
.layout-components label { display: flex; align-items: center; }
.admin-bar .wordmark { display: inline-flex; gap: .5rem; align-items: center; font-size: 1.26rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.admin-bar .laysite-mark { width: 2.6rem; height: 2.6rem; max-width: 2.6rem; max-height: 2.6rem; object-fit: contain; }
+197
View File
@@ -0,0 +1,197 @@
'use strict';
jQuery(function ($) {
$('[data-layout-components]').on('click', '[data-component-move]', function () {
const $item = $(this).closest('li');
if (this.dataset.componentMove === '-1') $item.prev().before($item);
else $item.next().after($item);
$(this).trigger('focus');
});
$('[data-provider-settings]').each(function () {
const $settings = $(this);
const $preset = $settings.closest('form').find('[data-layout-preset]');
const $mode = $settings.find('[name=provider_mode]');
const sync = () => {
$settings.prop('hidden', $preset.val() !== 'member');
$settings.find('[data-provider-mode]').each(function () {
$(this).prop('hidden', this.dataset.providerMode !== $mode.val());
});
};
$preset.add($mode).on('change', sync);
sync();
});
$('[data-page-list]').each(function () {
const $panel = $(this);
const $search = $panel.find('[data-page-search]');
const $status = $panel.find('[data-page-status]');
const $pages = $panel.find('[data-page-item]');
$panel.find('[data-page-filters]').prop('hidden', false);
$search.add($status).on('input change', function () {
const query = $search.val().trim().toLowerCase();
const status = $status.val();
let count = 0;
$pages.each(function () {
const visible = (!status || this.dataset.pageItem === status) && this.dataset.pageLabel.toLowerCase().includes(query);
$(this).prop('hidden', !visible);
if (visible) count++;
});
$panel.find('[data-page-empty]').prop('hidden', count !== 0);
});
});
const formats = {
markdown: {
heading: ['## ', '', '小标题'],
bold: ['**', '**', '粗体文字'],
list: ['- ', '', '列表项'],
link: ['[', '](https://)', '链接文字']
},
html: {
heading: ['<h3>', '</h3>', '小标题'],
bold: ['<strong>', '</strong>', '粗体文字'],
list: ['<ul>\n <li>', '</li>\n</ul>', '列表项'],
link: ['<a href="https://">', '</a>', '链接文字']
}
};
function clearSavedStatus() {
$('[data-save-confirmation]').prop('hidden', true);
}
if (document.querySelector('[data-save-confirmation]')) {
const url = new URL(window.location.href);
if (url.searchParams.get('saved') === '1') {
url.searchParams.delete('saved');
window.history.replaceState(window.history.state, '', url.href);
}
}
function refreshToken(response) {
if (response?.csrf) {
$('input[name="csrf"]').val(response.csrf);
}
}
function formError($form, message, status) {
let $feedback = $form.children('.ajax-feedback');
if (!$feedback.length) {
$feedback = $('<p>', {class: 'ajax-feedback feedback error', role: 'alert', tabindex: -1})
.prependTo($form);
}
$feedback.text(message);
if (status === 401) {
$feedback.append(' ', $('<a>', {
href: '/admin/login', target: '_blank', rel: 'noopener', text: '打开登录页'
}));
}
$feedback.prop('hidden', false).trigger('focus');
}
document.addEventListener('invalid', (event) => {
if (event.target.form?.method.toLowerCase() === 'post') clearSavedStatus();
}, true);
$('form[method="post"]').on('submit', function (event) {
event.preventDefault();
const $form = $(this);
if ($form.attr('aria-busy') === 'true') return;
const submitter = event.originalEvent?.submitter;
if (submitter?.dataset.confirm && !window.confirm(submitter.dataset.confirm)) return;
clearSavedStatus();
const action = $form.attr('action');
const isLogin = action === '/admin/login';
const $submit = $form.find(':submit:enabled');
const multipart = $form.attr('enctype') === 'multipart/form-data';
$form.attr('aria-busy', 'true').children('.ajax-feedback').prop('hidden', true);
$submit.prop('disabled', true);
$form.triggerHandler('studio:busy', [true]);
function finish() {
$form.removeAttr('aria-busy');
$submit.prop('disabled', false);
$form.triggerHandler('studio:busy', [false]);
}
function submit(canRetryLogin) {
$form.triggerHandler('studio:sync');
const fields = multipart ? new FormData($form.get(0)) : $form.serializeArray();
if (submitter?.name) {
if (multipart) fields.append(submitter.name, submitter.value);
else fields.push({name: submitter.name, value: submitter.value});
}
$.ajax({
url: action,
method: 'POST',
data: fields,
processData: !multipart,
contentType: multipart ? false : 'application/x-www-form-urlencoded; charset=UTF-8',
dataType: 'json'
}).done(function (response) {
if (response.redirect) {
$form.triggerHandler('studio:saved');
window.location.assign(response.redirect);
return;
}
finish();
formError($form, '未收到保存结果,请刷新页面确认。');
}).fail(function (request) {
const response = request.responseJSON;
refreshToken(response);
if (canRetryLogin && request.status === 403 && response?.csrf) {
submit(false);
return;
}
finish();
formError($form, response?.message || '请求未完成,请稍后重试。', request.status);
});
}
submit(isLogin);
});
$('[data-editor]').each(function () {
const $editor = $(this);
if ($editor.find('[data-rich-canvas]').length) return;
const area = $editor.find('textarea').get(0);
const format = $editor.data('format');
const $preview = $editor.find('.editor-preview');
const $form = $editor.closest('form');
let pendingPreview;
$editor.on('click', '[data-insert]', function () {
const [before, after, example] = formats[format][$(this).data('insert')];
const start = area.selectionStart;
const end = area.selectionEnd;
const selection = area.value.slice(start, end) || example;
area.setRangeText(before + selection + after, start, end, 'end');
area.focus();
area.setSelectionRange(start + before.length, start + before.length + selection.length);
});
$editor.on('click', '[data-preview-button]', function () {
const $button = $(this);
const show = $preview.prop('hidden');
$preview.prop('hidden', !show);
$button.text(show ? '收起预览' : '预览正文').attr('aria-expanded', String(show));
pendingPreview?.abort();
if (!show) return;
$preview.text('正在加载预览…');
pendingPreview = $.ajax({
url: '/admin/preview',
method: 'POST',
data: {body: area.value, format, csrf: $form.find('input[name="csrf"]').val()},
dataType: 'text'
}).done((markup) => $preview.html(markup)).fail((request, status) => {
if (status === 'abort') return;
let feedback = request.responseJSON;
if (!feedback && request.getResponseHeader('Content-Type')?.startsWith('application/json')) {
try { feedback = JSON.parse(request.responseText); } catch { /* Use the fallback feedback. */ }
}
refreshToken(feedback);
$preview.text(feedback?.message || '预览无法加载,请重试。');
});
});
});
});
+56
View File
@@ -0,0 +1,56 @@
'use strict';
jQuery(function ($) {
$('[data-article-editor]').each(function () {
const Editor = window.toastui?.Editor;
if (!Editor) return;
const $field = $(this);
const $source = $field.find('textarea');
const $format = $field.find('input[name="body_format"]');
const $host = $field.find('[data-editor-host]');
const $status = $field.find('[data-article-editor-status]');
const originalFormat = $format.val();
const original = $source.val();
$host.prop('hidden', false);
let editor;
try {
editor = new Editor({
el: $host.get(0),
height: '34rem',
initialEditType: originalFormat === 'html' ? 'wysiwyg' : 'markdown',
initialValue: originalFormat === 'markdown' ? original : '',
previewStyle: 'vertical',
language: 'zh-CN',
usageStatistics: false,
autofocus: false,
hooks: {
addImageBlobHook() {
$status.text('请先上传图片到媒体库,再从媒体库插入。');
}
}
});
if (originalFormat === 'html') editor.setHTML(original);
} catch (error) {
$host.prop('hidden', true);
return;
}
const snapshot = originalFormat === 'html' ? editor.getHTML() : editor.getMarkdown();
$source.prop('hidden', true);
$field.find('[data-article-editor-label]').removeAttr('for');
$field.find('[data-insert-article-image]').prop('hidden', false).on('click', () => {
$('#media-picker').triggerHandler('studio:pick', ['image/', (file) => {
const alt = window.prompt('图片替代文本(装饰图可留空)', file.label);
if (alt === null) return;
$status.empty();
editor.focus();
editor.exec('addImage', {imageUrl: file.url, altText: alt});
}]);
});
$field.closest('form').on('studio:sync', function () {
const format = editor.isMarkdownMode() ? 'markdown' : 'html';
const content = format === 'html' ? editor.getHTML() : editor.getMarkdown();
$format.val(format);
$source.val(format === originalFormat && content === snapshot ? original : content);
});
});
});
+93
View File
@@ -0,0 +1,93 @@
Copyright 2026 The Geist Project Authors (https://github.com/vercel/geist-font)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
File diff suppressed because one or more lines are too long
+20
View File
@@ -0,0 +1,20 @@
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+64
View File
@@ -0,0 +1,64 @@
.page-template-drawer {
position: fixed;
inset: 0 0 0 auto;
margin: 0;
width: min(100%, clamp(45rem, 80vw, 78rem));
max-width: none;
height: 100dvh;
max-height: none;
overflow: auto;
overscroll-behavior: contain;
border: 0;
padding: 0;
background: var(--white);
color: var(--ink);
box-shadow: -16px 0 48px #111a2e29;
}
.page-template-drawer::backdrop { background: #111a2e60; }
.page-template-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
position: sticky;
top: 0;
z-index: 1;
padding: .9rem clamp(1rem, 4vw, 1.6rem);
background: var(--white);
border-bottom: 1px solid var(--line);
}
.page-template-header h2 { margin: 0; }
.page-template-content { padding: 1.3rem clamp(1rem, 4vw, 1.6rem) 2rem; }
.page-template-content h3 { margin-bottom: 1rem; }
.page-template-content h3:focus { outline: none; }
.page-template-back { margin-bottom: 1.15rem; }
.page-template-groups, .page-template-pages { display: grid; gap: .75rem; }
.page-template-groups { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.page-template-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-template-detail { display: grid; gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.page-template-card {
display: grid;
grid-template-columns: 1fr;
width: 100%;
padding: 0;
overflow: hidden;
color: var(--ink);
background: var(--white);
border: 1px solid var(--line);
border-radius: .7rem;
text-align: start;
}
.page-template-card:hover, .page-template-card:focus-visible { border-color: var(--accent); }
.page-template-card-copy { display: grid; align-content: center; gap: .24rem; padding: clamp(.65rem, 2vw, 1rem); }
.page-template-card-copy small { line-height: 1.5; color: var(--muted); }
.page-template-image { display: block; overflow: hidden; background: var(--paper); }
.page-template-image img { width: 100%; height: auto; transition: transform 180ms ease; }
.page-template-card:hover img, .page-template-card:focus-visible img { transform: scale(1.035); }
.page-template-preview-link { margin-block: .8rem 1.2rem; }
@media (min-width: 49rem) {
.page-template-detail { grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 1fr); }
.page-template-detail .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
.page-template-pages { grid-template-columns: 1fr; }
}
+51
View File
@@ -0,0 +1,51 @@
'use strict';
jQuery(function ($) {
$('[data-page-template-drawer]').each(function () {
const drawer = this;
const $drawer = $(drawer);
const $opener = $('[data-open-page-templates]').prop('hidden', false);
const $panels = $drawer.find('[data-template-panel]');
const $detail = $panels.filter('[data-template-panel=detail]');
const $form = $detail.find('form');
let $groupButton;
let $pageButton;
function showPanel(key, $focus) {
const $panel = $panels.filter((_, panel) => panel.dataset.templatePanel === key);
$panels.prop('hidden', true);
$panel.prop('hidden', false);
$drawer.scrollTop(0);
($focus ?? $panel.find('h3')).trigger('focus');
}
function open() {
drawer.showModal();
showPanel('groups');
}
$opener.on('click', open);
$drawer.on('close', () => $opener.trigger('focus'))
.on('click', '[data-close-page-templates]', () => drawer.close())
.on('click', '[data-template-group]', function () {
$groupButton = $(this);
showPanel(this.dataset.templateGroup);
})
.on('click', '[data-page-template]', function () {
$pageButton = $(this);
const key = this.dataset.pageTemplate;
const name = $pageButton.find('strong').text();
$detail.find('[data-template-name]').text(name);
$detail.find('[data-template-preview]').attr('src', $pageButton.find('img').attr('src'));
$detail.find('[data-template-live]').attr('href', '/admin/page-templates/' + key + '/preview');
$form.find('[name=template], [name=slug]').val(key);
$form.find('[name=name]').val(name);
$form.children('.ajax-feedback').prop('hidden', true);
showPanel('detail');
})
.on('click', '[data-template-back=groups]', () => showPanel('groups', $groupButton))
.on('click', '[data-template-back=pages]', () => showPanel($groupButton.attr('data-template-group'), $pageButton));
if ($drawer.is('[data-open-on-load]')) open();
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

+172
View File
@@ -0,0 +1,172 @@
.page-theme {
color: var(--ink);
background: var(--white);
--space-section: clamp(3.5rem, 7vw, 7rem);
}
.page-theme .hero-inner { min-height: clamp(29rem, 46vw, 44rem); }
.page-theme .hero h1 { font-size: clamp(2.65rem, 5vw, 5.2rem); text-wrap: balance; }
.page-theme .hero-text-only .hero-copy { max-width: 49rem; }
.page-theme .app-frame img { aspect-ratio: 4 / 3; object-fit: contain; }
.page-theme .section-heading h2 { font-size: clamp(1.9rem, 4vw, 3.6rem); }
.page-theme .page-photo-credit { padding-bottom: 1.4rem; margin-bottom: 0; color: var(--muted); font-size: .875rem; }
.page-theme .studio-code { color: #e7eeff; background: #202938; border-color: #39465d; }
.page-theme .studio-code code { white-space: pre-wrap; overflow-wrap: anywhere; }
.theme-cobalt {
--white: #fdfdff;
--paper: #f0f4fb;
--ink: #162237;
--muted: #46586f;
--line: #cbd7e5;
--accent: #184ed3;
--accent-deep: #153a9b;
}
.theme-cobalt .hero {
background: radial-gradient(ellipse at 77% 28%, #c9dafa 0, transparent 45%),
radial-gradient(circle, #96adc8 1px, transparent 1px) 0 0 / 16px 16px, var(--paper);
}
.theme-cobalt .app-frame {
border-radius: 1.1rem .2rem;
border-color: #4c6284;
background: #252f40;
box-shadow: 0 24px 45px -30px #2136569c;
}
.theme-cobalt .button { border-radius: .25rem; border-bottom-width: 3px; }
.theme-cobalt .button-outline { background: var(--white); }
.theme-cobalt .button-primary { border-bottom-color: #123884; }
.template-ledger { border-block-start: 2px solid var(--ink); }
.template-ledger article { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.template-ledger article h3 { margin: 0; }
.theme-studio {
--white: #fbfaf7;
--paper: #eeeae2;
--ink: #211e19;
--muted: #5f5547;
--line: #cfc5b6;
--accent: #9c3818;
--accent-deep: #78290f;
--accent-light: #ffe7d5;
}
.theme-studio .hero {
background: radial-gradient(circle, #9d8269 1px, transparent 1px) 0 0 / 24px 24px, var(--paper);
}
.theme-studio .hero-copy { background: var(--paper); padding-block: .85rem 1.25rem; }
.theme-studio :is(h1, h2, h3) {
font-family: 'Noto Serif CJK SC', 'Songti SC', 'STSong', Georgia, serif;
font-weight: 560;
letter-spacing: -.055em;
}
.theme-studio .app-frame {
padding: .45rem;
border-radius: 0;
border-color: #6f5342;
outline: 1px solid #a24528;
outline-offset: .45rem;
background: var(--white);
box-shadow: 12px 19px 0 -9px #684e3429;
}
.theme-studio .app-frame img { border-radius: 0; object-fit: cover; }
.theme-studio .button { border-radius: .15rem; }
.theme-studio .button-primary { color: #231911; background: #f3a578; border-color: #713a24; }
.theme-studio .button-primary:hover { background: #f8ba96; }
.theme-studio .button-outline { background: var(--white); border-color: #827261; }
.template-portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 5vw, 4rem); }
.template-portfolio img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.template-portfolio h3 { margin-top: 1rem; }
.theme-dusk {
--white: #191d2b;
--paper: #222739;
--ink: #f7f4f2;
--muted: #bfc5d8;
--line: #505971;
--accent: #bdc7ff;
--accent-deep: #dbe1ff;
--accent-light: #343d5e;
}
.theme-dusk .hero { background: radial-gradient(ellipse at 77% 48%, #454255 0, #222639 46%, #191d2b 78%); }
.theme-dusk .app-frame {
border: 1px solid #8b869c;
background: #514d6370;
padding: .6rem;
box-shadow: 0 21px 65px -20px #090a18ab;
}
.theme-dusk .app-frame img { object-fit: cover; }
.theme-dusk .button-primary, .theme-dusk .button-primary:hover { color: #151a30; }
.theme-dusk .button-outline { color: var(--ink); border-color: #8c96b0; }
.theme-dusk .button-outline:hover { color: var(--accent-deep); background: var(--paper); }
.theme-dusk .crumb-divider { color: var(--muted); }
.theme-dusk .article-tabs button { background: var(--white); }
.template-steps {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: clamp(1.25rem, 4vw, 3rem);
border-block-start: 1px solid var(--line);
}
.rich .template-steps { padding-inline-start: 1.6rem; }
.template-steps li { padding: 1.35rem .25rem 0; }
.template-steps li::marker { color: var(--accent); font-weight: 650; }
@media (max-width: 44rem) {
.page-theme .hero-inner { min-height: auto; }
.template-ledger article, .template-portfolio, .template-steps { grid-template-columns: 1fr; }
.template-ledger article { gap: .4rem; }
.template-steps { gap: .8rem; }
}
.theme-vantage {
--white: #121b20;
--paper: #1b272d;
--ink: #eef4f1;
--muted: #bdcdc8;
--line: #53676b;
--accent: #bfe971;
--accent-deep: #d7ffa0;
--accent-light: #2e4233;
}
.theme-vantage .hero {
background: radial-gradient(ellipse at 82% 35%, #243b39, transparent 65%),
radial-gradient(circle, #4b6959 1px, transparent 1.4px) 0 0 / 18px 18px, var(--white);
}
.theme-vantage .hero-copy { background: #121b20; padding-block: 1rem; }
.theme-vantage .app-frame { border: 1px solid #618076; border-radius: .2rem; background: #263738; box-shadow: 8px 8px 0 #172e26; }
.theme-vantage .app-frame img, .theme-vantage .button { border-radius: .2rem; }
.theme-vantage .button-primary, .theme-vantage .button-primary:hover { color: #172318; }
.theme-vantage .button-outline { border-color: #7d9b8e; color: var(--ink); }
.theme-vantage .button-outline:hover { background: var(--paper); }
.theme-ribbon {
--white: #fffdfb;
--paper: #f0eaf8;
--ink: #2d2546;
--muted: #5a516e;
--line: #d9cce8;
--accent: #633ab1;
--accent-deep: #4d268e;
--accent-light: #ebdfff;
}
.theme-ribbon .hero { background: radial-gradient(ellipse at 88% 24%, #d9c5f3, transparent 60%), #f5eff9; }
.theme-ribbon .app-frame { border-color: #b9a1db; border-radius: clamp(1.4rem, 4vw, 3rem); background: #fffafc; box-shadow: 0 22px 65px -31px #68489b83; }
.theme-ribbon .app-frame img { border-radius: 1rem; object-fit: cover; }
.theme-ribbon .button { border-radius: 2rem; }
.theme-ribbon .button-outline { border-color: #ac99c8; background: var(--white); }
.theme-ribbon .studio-split img { border-radius: 1.4rem; border: 1px solid var(--line); }
.theme-furrow {
--white: #fdf9ee;
--paper: #f1e9d5;
--ink: #262b1c;
--muted: #5a5847;
--line: #c9bd9f;
--accent: #325335;
--accent-deep: #233a27;
--accent-light: #e3ecd9;
}
.theme-furrow .hero { background: linear-gradient(115deg, #f7f0dd, #eee2c5); }
.theme-furrow .hero-copy { border-inline-start: .3rem solid #b67e28; padding-inline-start: clamp(1rem, 2.6vw, 2.2rem); }
.theme-furrow :is(h1, h2) { font-family: 'Noto Serif CJK SC', 'Songti SC', Georgia, serif; }
.theme-furrow .app-frame { border: 1px solid #9f946f; border-radius: .3rem; background: #fff8e7; box-shadow: 9px 9px 0 #c6ae7d56; }
.theme-furrow .app-frame img { border-radius: .15rem; }
.theme-furrow .button { border-radius: .2rem; }
.theme-furrow .button-outline { border-color: #908764; background: var(--white); }
+641
View File
@@ -0,0 +1,641 @@
@font-face {
font-family: Geist;
src: url("/assets/geist.woff2") format("woff2");
font-style: normal;
font-weight: 100 900;
font-display: swap;
}
:root {
color-scheme: light;
--paper: #f5f7fb;
--white: #fff;
--ink: #111a2e;
--muted: #505d73;
--accent: #214ed7;
--accent-deep: #173bae;
--accent-light: #e8efff;
--navy: #101c34;
--line: #dbe3f0;
--radius: 1.125rem;
--space-section: clamp(4.25rem, 9vw, 8.5rem);
--edge: clamp(1.25rem, 5.3vw, 5.5rem);
--sans: Geist, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
--mono: "SFMono-Regular", Consolas, monospace;
font: 400 100%/1.6 var(--sans);
color: var(--ink);
background: var(--white);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.18; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw, 5.75rem); letter-spacing: -.055em; font-weight: 650; }
h2 { font-size: clamp(2rem, 4.15vw, 3.65rem); letter-spacing: -.042em; font-weight: 640; }
h3 { font-size: clamp(1.18rem, 2vw, 1.65rem); letter-spacing: -.024em; font-weight: 650; }
p { color: var(--muted); }
a { color: var(--accent); text-underline-offset: .23em; text-decoration-thickness: .075em; }
a:hover { color: var(--accent-deep); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4477f9; outline-offset: 4px; }
address { font-style: normal; }
.wrap { width: min(calc(100% - var(--edge) * 2), 82.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
position: fixed;
z-index: 20;
top: .8rem;
left: .8rem;
padding: .65rem 1rem;
border-radius: .45rem;
transform: translateY(-200%);
color: var(--ink);
background: var(--white);
}
.skip-link:focus { transform: translateY(0); }
.masthead { position: sticky; z-index: 5; top: 0; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; min-height: 4.75rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }
.wordmark img { width: 8.125rem; height: auto; }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.75rem); }
.primary-nav a { min-height: 44px; display: grid; align-items: center; color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 550; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--accent); }
.masthead-action { justify-self: end; }
.primary-nav .mobile-contact { display: none; }
.menu-toggle { display: none; }
.button {
min-height: 46px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: .65rem 1.18rem;
border: 1px solid transparent;
border-radius: .62rem;
font-size: .9375rem;
font-weight: 640;
line-height: 1.25;
text-align: center;
text-decoration: none;
transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { color: white; background: var(--accent-deep); border-color: var(--accent-deep); }
.button-outline { color: var(--ink); background: transparent; border-color: #c8d4e7; }
.button-outline:hover { color: var(--accent); background: var(--white); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; }
.overline { color: var(--accent); font-size: .875rem; font-weight: 650; letter-spacing: .075em; }
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner {
display: grid;
grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
align-items: center;
gap: clamp(1.6rem, 4vw, 4.5rem);
min-height: clamp(34rem, 48vw, 48rem);
padding-block: clamp(3.25rem, 7vw, 7rem);
}
.hero-home .hero-inner {
min-height: max(33.5rem, calc(100svh - 12rem));
padding-block: clamp(3.25rem, 6vw, 6.75rem);
}
.hero-home {
background: radial-gradient(ellipse at 82% 42%, var(--accent-light) 0, transparent 52%), var(--paper);
}
.hero-label { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.5rem; text-wrap: initial; }
.hero h1 span { color: var(--accent); }
.hero-home h1 { font-size: clamp(3.2rem, 7.4vw, 7.3rem); line-height: 1.08; letter-spacing: -.09em; margin: 0 0 1.5rem -.065em; padding-right: .08em; }
.hero-lead { margin-bottom: 1.8rem; max-width: 35rem; font-size: clamp(1.03rem, 1.58vw, 1.28rem); line-height: 1.78; }
.hero-home .hero-lead { max-width: 28rem; }
.hero-actions .button { min-height: 50px; padding-inline: 1.35rem; }
.hero-visual { min-width: 0; position: relative; }
.hero-visual img { width: 100%; object-fit: contain; }
.hero-illustration {
isolation: isolate;
border: 1px solid #cad9f6;
border-radius: 1.8rem;
background:
radial-gradient(circle, #a9bce9 1px, transparent 1.3px) 0 0 / 20px 20px,
#eaf0fd;
padding: clamp(.45rem, 1.8vw, 1.7rem);
box-shadow: 0 22px 85px -44px #204dba65;
}
.hero-illustration img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.15rem; mix-blend-mode: multiply; }
.app-frame, .hero-service-art {
border: 1px solid #c9d7ef;
border-radius: var(--radius);
background: #e7eefd;
padding: clamp(.5rem, 1.4vw, 1.2rem);
box-shadow: 0 28px 60px -42px #204ea791;
}
.app-frame img, .hero-service-art img { border-radius: calc(var(--radius) / 2); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.35rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumb-divider { color: #74859d; }
.hero-directory {
display: flex;
border: 1px solid var(--line);
border-radius: .85rem .85rem 0 0;
background: #ffffffb8;
min-height: 7rem;
border-bottom: 0;
}
.hero-directory > * { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .12rem; padding: .75rem clamp(.6rem, 2vw, 1.85rem); overflow-wrap: anywhere; }
.hero-directory a { color: var(--ink); text-decoration: none; border-inline-start: 1px solid var(--line); transition: background-color 160ms ease, color 160ms ease; }
.hero-directory a:hover { color: var(--accent); background: #fff; }
.hero-directory a span { font-size: 1.12rem; font-weight: 670; }
.hero-directory small { color: var(--muted); font-size: .875rem; }
.hero-copy, .hero-visual { animation: enter 560ms cubic-bezier(.2,.7,.3,1) both; }
.hero-visual { animation-delay: 80ms; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.section-nav-inner { display: flex; flex-wrap: wrap; gap: .2rem clamp(1rem, 4vw, 2.8rem); padding-block: .3rem; }
.section-nav a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; text-decoration: none; }
.section-nav a:hover { color: var(--accent); text-decoration: underline; }
.section { padding-block: var(--space-section); }
.section + .section { border-top: 1px solid var(--line); }
.section-tinted, .network { background: var(--paper); }
.section-heading { margin-bottom: clamp(1.75rem, 4.3vw, 3.75rem); }
.section-heading h1, .section-heading h2 { margin: 0; }
.section-heading p { font-size: clamp(1.02rem, 1.55vw, 1.2rem); margin: .9rem 0 0; max-width: 45rem; }
.inline-heading { display: flex; flex-wrap: wrap; gap: .9rem 1.75rem; justify-content: space-between; align-items: center; }
.rich > :last-child, .rich article > :last-child, .rich article > div > :last-child { margin-bottom: 0; }
.rich h3 { margin-bottom: .65rem; }
.rich p { line-height: 1.78; }
.rich strong { color: var(--ink); }
.rich ul, .rich ol { padding-left: 1.3rem; }
.rich :where(a,img,video) { transition: transform 180ms ease, color 180ms ease; }
.rich a:not(.button):hover { text-decoration-thickness: .14em; }
.rich img { border-radius: .45rem; }
.rich > img { max-width: min(100%, 46rem); }
.rich > p:not([class]) { max-width: 47rem; }
.rich a > img:hover, .project > div:first-child:hover img { transform: scale(1.02); }
.project-stack { display: grid; gap: 2.15rem; }
.project {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
align-items: center;
gap: clamp(1.4rem, 5vw, 5rem);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: clamp(1rem, 2.4vw, 2.15rem);
}
.project:nth-child(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.project:nth-child(even) > div:first-child { order: 2; }
.project > div:first-child { overflow: hidden; border-radius: .75rem; background: #edf2fe; }
.project img { width: 100%; border-radius: .75rem; }
.project h3 { font-size: clamp(1.7rem, 3.15vw, 3rem); margin: .55rem 0 .75rem; }
.project p { margin-bottom: 1rem; }
.section-about { position: relative; overflow: hidden; isolation: isolate; color: white; background: var(--navy); }
.section-about::before {
content: "";
position: absolute;
z-index: -1;
inset: 0;
background: repeating-radial-gradient(circle at 90% 72%, transparent 0 33px, #5e8ff822 34px 35px, transparent 36px 60px), linear-gradient(135deg, #111f3b, #142b5f);
pointer-events: none;
}
.section-about.moment-active::before { animation: iris 900ms ease-out both; }
@keyframes iris { from { clip-path: circle(14% at 80% 60%); } to { clip-path: circle(100% at 70% 57%); } }
.section-about .section-heading { margin-bottom: 1.45rem; }
.section-about .rich p { color: #dbe7ff; font-size: clamp(1.2rem, 2.4vw, 1.7rem); max-width: 50rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.65rem; }
.content-card {
border: 1px solid var(--line);
background: var(--white);
border-radius: var(--radius);
padding: clamp(1.15rem, 2.5vw, 2.1rem);
min-width: 0;
line-height: 1.65;
}
.content-card > img:first-child, .content-card > a:first-child img { width: 2.75rem; height: 2.75rem; object-fit: contain; margin-bottom: 1rem; }
.feature-card p { margin-bottom: .9rem; }
.feature-card a { display: inline-flex; align-items: center; min-height: 44px; }
.price-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.price-card { display: flex; flex-direction: column; min-width: 0; }
.price-card h3 { margin-bottom: .55rem; }
.price-card .price-value { color: var(--accent); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.15; margin: .4rem 0 .85rem; font-weight: 650; }
.price-value small { font-weight: 450; font-size: .9rem; color: var(--muted); }
.price-note { font-size: .875rem; }
.price-card ul { margin-block: .75rem 1.2rem; }
.price-card li + li { margin-top: .35rem; }
.price-card > .button, .price-card > .availability { margin-top: auto; align-self: start; }
.price-card .availability { color: var(--muted); font-size: .9rem; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card img { max-width: 10rem; }
.contact-card > img:first-child { width: 3rem; }
.contact-card a { min-height: 44px; display: inline-flex; align-items: center; }
.testimonials .content-card h3 + h3 { font-size: .96rem; color: var(--muted); font-weight: 500; }
.demo-row { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: center; gap: 2.1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.demo-row video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); }
.table-scroll table { width: 100%; min-width: 39rem; border-collapse: collapse; text-align: left; font-size: .94rem; }
th, td { padding: .85rem 1rem; line-height: 1.55; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
thead { background: var(--accent-light); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.section-description, .fine-print { color: var(--muted); font-size: .9rem; }
.progress-note { margin-top: 1.75rem; max-width: 34rem; }
.progress-note label { display: block; margin-bottom: .6rem; font-weight: 600; }
progress { width: 100%; height: .8rem; accent-color: var(--accent); }
.contact-panel { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; align-items: center; }
.contact-panel img { width: 10rem; border: 1px solid var(--line); }
.resource-box { max-width: 46rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.05rem 2.5rem 1.05rem 0; min-height: 48px; position: relative; list-style: none; font-weight: 630; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .5rem; top: .75rem; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { max-width: 55rem; padding-bottom: .95rem; }
.article-list, .network-list { list-style: none; margin: 0; padding: 0; }
.article-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: .8rem 1.3rem; align-items: baseline; color: var(--ink); padding: 1.3rem .2rem; text-decoration: none; border-block-start: 1px solid var(--line); min-height: 55px; transition: background-color 160ms ease, transform 160ms ease; }
.article-list li:last-child .article-row { border-bottom: 1px solid var(--line); }
.article-row:hover { background: var(--paper); transform: translateY(-2px); }
.article-category { font-weight: 640; color: var(--accent); font-size: .875rem; }
.article-row-title { font-weight: 630; font-size: clamp(1.05rem, 2vw, 1.34rem); }
.article-row-title small { display: block; margin-top: .4rem; color: var(--muted); font-size: .93rem; font-weight: 400; }
.article-row time { color: var(--muted); font-size: .875rem; font-family: var(--mono); }
.network-group + .network-group { margin-top: 2.2rem; }
.network-group h3 { margin-bottom: .8rem; }
.network-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .7rem; }
.network-list li { display: flex; flex-direction: column; gap: .35rem; }
.network-list li > * { display: flex; align-items: center; gap: .75rem; min-height: 4rem; border-radius: .65rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; padding: .75rem; transition: transform 160ms ease, border-color 160ms ease; }
.network-list li > :first-child { flex: 1; }
.network-list a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.network-list img { max-width: 3rem; max-height: 1.8rem; object-fit: contain; object-position: left; }
.network-list img[src$="oneprovider_invert.svg"] { background: #29354a; border-radius: .25rem; padding: .21rem; }
.article-page { min-height: 44vh; background: var(--white); }
.article-page h1 { font-size: clamp(2.45rem, 5.25vw, 4.7rem); }
.reading-wrap { max-width: 55rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; font-weight: 600; }
.article-meta { display: flex; gap: 1.15rem; color: var(--muted); align-items: center; margin-block: 1rem .85rem; }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-top: 2rem; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--paper); border-radius: .5rem; }
.prose code { font-family: var(--mono); }
.filter-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.filter-nav a { display: inline-flex; align-items: center; min-height: 44px; background: var(--paper); color: var(--muted); padding: .3rem .85rem; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; }
.filter-nav a:hover, .filter-nav a[aria-current] { color: var(--accent); background: var(--accent-light); border-color: #b8cafa; }
.pagination { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.empty-state { background: var(--paper); padding: 1rem; border-radius: .6rem; }
.site-footer { padding: clamp(2.5rem, 5.8vw, 5.5rem) 0 2rem; background: #e4ecfc; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem clamp(2rem, 7vw, 7rem); }
.footer-company { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo img { width: clamp(8.125rem, 13vw, 10rem); height: auto; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.footer-links ul { padding: 0; margin: 0; list-style: none; }
.footer-grid a, .footer-meta a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover, .footer-meta a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid a { min-height: 40px; display: inline-flex; align-items: center; }
.footer-company p, .footer-label { color: var(--ink); font-weight: 640; margin: .2rem 0 .35rem; }
.footer-label { font-size: 1.05rem; line-height: 1.35; }
.footer-company p { margin-top: .6rem; }
.footer-company .footer-payment-label { margin: .25rem 0 0; color: var(--muted); font-size: .87rem; font-weight: 500; }
.footer-company address { color: var(--muted); max-width: 26rem; font-size: .95rem; }
.footer-meta { display: grid; gap: .35rem; padding-top: 1.2rem; margin-top: 1.6rem; border-top: 1px solid var(--line); font-size: .875rem; }
.footer-meta p { margin: 0; }
@media (max-width: 62rem) {
.masthead-inner { gap: .85rem; }
.primary-nav { gap: clamp(.75rem, 2.3vw, 1.45rem); }
.hero-inner { min-height: 33rem; }
.hero-home .hero-inner { min-height: 32rem; }
.hero-directory { min-height: 6rem; }
.hero-directory a span { font-size: 1rem; }
.hero-directory small { font-size: .81rem; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
html { scroll-padding-top: 5rem; }
.masthead-inner { grid-template-columns: 1fr auto; min-height: 4rem; }
.masthead-action { display: none; }
.primary-nav .mobile-contact { display: grid; }
.primary-nav { grid-column: 1 / -1; justify-content: flex-start; }
.primary-nav.has-toggle { display: none; width: 100%; padding-bottom: .75rem; }
.primary-nav.has-toggle.is-open { display: grid; gap: .15rem; }
.primary-nav.is-open a { padding-inline: .65rem; }
.menu-toggle { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: white; border: 1px solid var(--line); border-radius: .5rem; }
.menu-toggle span:not(.sr-only) { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 160ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.hero-inner, .hero-home .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 2.75rem 2.1rem; gap: 1.8rem; }
.hero-home h1 { font-size: clamp(3.25rem, 13vw, 5.5rem); }
.hero-label { margin-bottom: .85rem; }
.hero h1 { margin-bottom: 1rem; }
.hero-lead { margin-bottom: 1.3rem; }
.hero-illustration { border-radius: 1.15rem; }
.hero-illustration img { border-radius: .8rem; }
.hero-directory { flex-wrap: wrap; margin-top: .2rem; }
.hero-directory > * { flex-basis: 50%; }
.hero-directory > .directory-label { flex-basis: 100%; border-top: 0; }
.hero-directory a { border-top: 1px solid var(--line); min-height: 4rem; padding-inline: .8rem; }
.hero-directory > a:nth-child(odd of :not(.directory-label)) { border-inline-start: 0; }
.section-nav-inner { column-gap: 1.1rem; }
.section-nav a { font-size: .875rem; }
.project, .project:nth-child(even) { grid-template-columns: 1fr; gap: 1rem; }
.project > div:first-child, .project:nth-child(even) > div:first-child { order: 2; }
.card-grid { grid-template-columns: 1fr; }
.demo-row { grid-template-columns: 1fr; gap: .55rem; }
.article-row { grid-template-columns: minmax(0, 1fr) auto; }
.article-category { grid-column: 1; grid-row: 1; }
.article-row-title { grid-column: 1 / -1; grid-row: 2; }
.article-row time { grid-column: 2; grid-row: 1; }
.footer-grid { grid-template-columns: 1fr; }
.footer-company { align-items: center; text-align: center; }
.footer-links, .footer-meta { text-align: center; }
}
@media (max-width: 23rem) {
.hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.payment-methods { display: flex; gap: .65rem; align-items: center; margin-block: .5rem; }
.payment-methods img { width: 1.625rem; height: 1.625rem; object-fit: contain; }
.hero-inner.hero-text-only { grid-template-columns: minmax(0, 1fr); min-height: 28rem; }
.hero-directory > .directory-label { border-inline-start: 0; }
.catalog-hero { background: var(--paper); padding-block: clamp(3rem, 6vw, 6rem); }
.catalog-hero h1 { margin-bottom: .85rem; }
.catalog-hero p { margin: 0; font-size: 1.15rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.catalog-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.catalog-image { aspect-ratio: 16 / 8; padding: clamp(.8rem, 3vw, 1.8rem); background: var(--paper); display: grid; place-items: center; }
.catalog-image img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.catalog-content { padding: clamp(1.25rem, 3vw, 2rem); flex: 1; display: flex; flex-direction: column; }
.catalog-content h3 { font-size: clamp(1.45rem, 3vw, 2.6rem); margin-bottom: .7rem; }
.catalog-content .overline { margin-bottom: .4rem; }
.catalog-content .actions { margin-top: auto; padding-top: 1rem; }
.hero h1 .hero-heading-primary { color: inherit; }
.studio-accent { display: block; }
[data-studio-editing] .hero:has(> [data-studio-hero-content][hidden]):not(:has(> .hero-directory-slot)) { display: none; }
[data-studio-editing] [contenteditable], [data-studio-editing] [data-studio-action],
[data-studio-editing] [data-studio-navigation] a, [data-studio-editing] [data-studio-hero-image] {
outline: 1px dashed #7896d5;
outline-offset: 3px;
}
[data-studio-editing] [contenteditable]:focus { outline: 2px solid #4477f9; }
[data-studio-editing] :is([data-studio-action], [data-studio-navigation] a, [data-studio-hero-image], .rich :is(img, video, audio)) { cursor: pointer; }
[data-studio-editing] [data-studio-placeholder]:empty::before {
content: attr(data-studio-placeholder);
color: var(--muted);
font: 400 1rem / 1.5 var(--sans);
}
.studio-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: center; }
.studio-split > img { width: 100%; }
.studio-banner { padding: clamp(1.25rem, 4vw, 3.25rem); border-radius: var(--radius); background: var(--accent-light); }
@media (max-width: 44rem) { .studio-split { grid-template-columns: 1fr; } }
:where(img, video, audio, .hero-visual)[class*="studio-media-"] { max-width: 100%; }
:is(.rich, .hero-inner, .editor-preview) [class*="studio-media-"] { width: var(--studio-media-width, auto); }
.studio-media-10 { --studio-media-width: 10%; }
.studio-media-11 { --studio-media-width: 11%; }
.studio-media-12 { --studio-media-width: 12%; }
.studio-media-13 { --studio-media-width: 13%; }
.studio-media-14 { --studio-media-width: 14%; }
.studio-media-15 { --studio-media-width: 15%; }
.studio-media-16 { --studio-media-width: 16%; }
.studio-media-17 { --studio-media-width: 17%; }
.studio-media-18 { --studio-media-width: 18%; }
.studio-media-19 { --studio-media-width: 19%; }
.studio-media-20 { --studio-media-width: 20%; }
.studio-media-21 { --studio-media-width: 21%; }
.studio-media-22 { --studio-media-width: 22%; }
.studio-media-23 { --studio-media-width: 23%; }
.studio-media-24 { --studio-media-width: 24%; }
.studio-media-25 { --studio-media-width: 25%; }
.studio-media-26 { --studio-media-width: 26%; }
.studio-media-27 { --studio-media-width: 27%; }
.studio-media-28 { --studio-media-width: 28%; }
.studio-media-29 { --studio-media-width: 29%; }
.studio-media-30 { --studio-media-width: 30%; }
.studio-media-31 { --studio-media-width: 31%; }
.studio-media-32 { --studio-media-width: 32%; }
.studio-media-33 { --studio-media-width: 33%; }
.studio-media-34 { --studio-media-width: 34%; }
.studio-media-35 { --studio-media-width: 35%; }
.studio-media-36 { --studio-media-width: 36%; }
.studio-media-37 { --studio-media-width: 37%; }
.studio-media-38 { --studio-media-width: 38%; }
.studio-media-39 { --studio-media-width: 39%; }
.studio-media-40 { --studio-media-width: 40%; }
.studio-media-41 { --studio-media-width: 41%; }
.studio-media-42 { --studio-media-width: 42%; }
.studio-media-43 { --studio-media-width: 43%; }
.studio-media-44 { --studio-media-width: 44%; }
.studio-media-45 { --studio-media-width: 45%; }
.studio-media-46 { --studio-media-width: 46%; }
.studio-media-47 { --studio-media-width: 47%; }
.studio-media-48 { --studio-media-width: 48%; }
.studio-media-49 { --studio-media-width: 49%; }
.studio-media-50 { --studio-media-width: 50%; }
.studio-media-51 { --studio-media-width: 51%; }
.studio-media-52 { --studio-media-width: 52%; }
.studio-media-53 { --studio-media-width: 53%; }
.studio-media-54 { --studio-media-width: 54%; }
.studio-media-55 { --studio-media-width: 55%; }
.studio-media-56 { --studio-media-width: 56%; }
.studio-media-57 { --studio-media-width: 57%; }
.studio-media-58 { --studio-media-width: 58%; }
.studio-media-59 { --studio-media-width: 59%; }
.studio-media-60 { --studio-media-width: 60%; }
.studio-media-61 { --studio-media-width: 61%; }
.studio-media-62 { --studio-media-width: 62%; }
.studio-media-63 { --studio-media-width: 63%; }
.studio-media-64 { --studio-media-width: 64%; }
.studio-media-65 { --studio-media-width: 65%; }
.studio-media-66 { --studio-media-width: 66%; }
.studio-media-67 { --studio-media-width: 67%; }
.studio-media-68 { --studio-media-width: 68%; }
.studio-media-69 { --studio-media-width: 69%; }
.studio-media-70 { --studio-media-width: 70%; }
.studio-media-71 { --studio-media-width: 71%; }
.studio-media-72 { --studio-media-width: 72%; }
.studio-media-73 { --studio-media-width: 73%; }
.studio-media-74 { --studio-media-width: 74%; }
.studio-media-75 { --studio-media-width: 75%; }
.studio-media-76 { --studio-media-width: 76%; }
.studio-media-77 { --studio-media-width: 77%; }
.studio-media-78 { --studio-media-width: 78%; }
.studio-media-79 { --studio-media-width: 79%; }
.studio-media-80 { --studio-media-width: 80%; }
.studio-media-81 { --studio-media-width: 81%; }
.studio-media-82 { --studio-media-width: 82%; }
.studio-media-83 { --studio-media-width: 83%; }
.studio-media-84 { --studio-media-width: 84%; }
.studio-media-85 { --studio-media-width: 85%; }
.studio-media-86 { --studio-media-width: 86%; }
.studio-media-87 { --studio-media-width: 87%; }
.studio-media-88 { --studio-media-width: 88%; }
.studio-media-89 { --studio-media-width: 89%; }
.studio-media-90 { --studio-media-width: 90%; }
.studio-media-91 { --studio-media-width: 91%; }
.studio-media-92 { --studio-media-width: 92%; }
.studio-media-93 { --studio-media-width: 93%; }
.studio-media-94 { --studio-media-width: 94%; }
.studio-media-95 { --studio-media-width: 95%; }
.studio-media-96 { --studio-media-width: 96%; }
.studio-media-97 { --studio-media-width: 97%; }
.studio-media-98 { --studio-media-width: 98%; }
.studio-media-99 { --studio-media-width: 99%; }
.studio-media-100 { --studio-media-width: 100%; }
.rich :is(img, video)[class*="studio-media-"] { height: auto; max-width: 100%; }
.hero-visual[class*="studio-media-"] { justify-self: center; }
[data-studio-editing] [data-studio-selected] { outline: 1px dashed #315ef0; outline-offset: 3px; }
.rich .studio-intro { max-width: 47rem; }
.rich .studio-intro h3, .rich .studio-cover h3 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
.rich .studio-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); background: var(--paper); padding: clamp(.8rem, 3vw, 2rem); border-radius: var(--radius); }
.rich .studio-cover img { width: 100%; }
.rich .studio-cover p { margin-bottom: .85rem; }
.rich .studio-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rich .studio-quick-nav { display: flex; flex-wrap: wrap; gap: .55rem 1rem; list-style: none; padding: .75rem; border: 1px solid var(--line); border-radius: .6rem; }
.rich .studio-quick-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .4rem; font-weight: 600; }
@media (max-width: 44rem) {
.rich .studio-cover, .rich .studio-two-column { grid-template-columns: minmax(0, 1fr); }
}
.article-feed-note { margin-top: 1.15rem; }
.article-cover { display: block; max-height: 28rem; width: auto; margin-bottom: 1.75rem; object-fit: contain; }
.article-tabs { margin-bottom: .85rem; }
.article-tabs button { padding: .38rem .8rem; background: white; border: 1px solid var(--line); border-radius: .45rem; color: inherit; cursor: pointer; }
.article-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.network-list .network-detail { min-height: 0; padding-block: .2rem; font-size: .85rem; }
.article-feed-archive { margin: 1rem 0 0; }
.studio-notice { padding: clamp(1rem, 3vw, 1.8rem); border-inline-start: 3px solid var(--accent); border-radius: .55rem; background: var(--accent-light); }
.studio-notice p, .studio-testimonials p:last-child, .studio-timeline li p:last-child { margin-bottom: 0; }
.studio-gallery, .studio-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.studio-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--line); background: var(--paper); }
.studio-split video { width: 100%; aspect-ratio: 16 / 9; border-radius: .6rem; background: var(--navy); object-fit: contain; }
.studio-metrics { margin-block: 0 1rem; }
.studio-metrics div { padding: 1rem; border-block-start: 1px solid var(--line); }
.studio-metrics dd { margin: .4rem 0 0; color: var(--accent); font-size: clamp(1.65rem, 5vw, 3rem); font-weight: 700; }
.studio-testimonials blockquote { margin: 0; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: .6rem; }
.studio-testimonials .studio-attribution { font-size: .88rem; color: var(--muted); }
.rich .studio-timeline { padding-inline-start: 1.4rem; border-inline-start: 1px solid var(--line); }
.studio-timeline li + li, .studio-checklist li + li { margin-top: .7rem; }
.studio-timeline li::marker, .studio-checklist li::marker { color: var(--accent); font-weight: 700; }
.studio-timeline h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.rich .studio-resources { list-style: none; padding: 0; border-block-start: 1px solid var(--line); }
.studio-resources li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; padding: .7rem 0; border-block-end: 1px solid var(--line); }
.studio-resources span { font-size: .875rem; color: var(--muted); }
.studio-divider { width: 100%; margin-block: 1.25rem; border: 0; border-block-start: 1px solid var(--line); }
.studio-code { max-width: 100%; overflow: auto; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
@media (max-width: 36rem) {
.studio-gallery { grid-template-columns: 1fr; }
.studio-metrics { gap: .45rem; }
.studio-metrics div { padding: .55rem .3rem; }
}
.studio-align-left {
--studio-margin-left: 0; --studio-margin-right: auto; --studio-justify: start;
text-align: left; justify-self: start;
}
.studio-align-center {
--studio-margin-left: auto; --studio-margin-right: auto; --studio-justify: center;
text-align: center; justify-self: center;
}
.studio-align-right {
--studio-margin-left: auto; --studio-margin-right: 0; --studio-justify: end;
text-align: right; justify-self: end;
}
:is(.hero-lead, .section-heading > p, .rich > p)[class*="studio-align-"] {
margin-left: var(--studio-margin-left);
margin-right: var(--studio-margin-right);
}
.rich > p:is(.studio-align-left, .studio-align-center, .studio-align-right) { max-width: 47rem; }
:is(.rich, .editor-preview) :is(img, video, audio, a, ol, ul)[class*="studio-align-"] {
margin-left: var(--studio-margin-left);
margin-right: var(--studio-margin-right);
}
:is(.rich, .editor-preview) :is(img, video, audio)[class*="studio-align-"] { display: block; max-width: 100%; }
:is(.rich, .editor-preview) a[class*="studio-align-"] { display: flex; width: fit-content; max-width: 100%; }
:is(.rich, .editor-preview) :is(ol, ul)[class*="studio-align-"] { width: fit-content; max-width: 100%; }
.rich > img[class*="studio-align-"]:not([class*="studio-media-"]) { max-width: min(100%, 46rem); }
.rich table[class*="studio-align-"] :is(th, td) { text-align: inherit; }
.hero-visual[class*="studio-align-"] { justify-self: var(--studio-justify); }
.hero-actions[class*="studio-align-"] { justify-content: var(--studio-justify); }
.studio-lead { font-size: 1.2rem; color: var(--ink); }
.studio-definitions { margin: 0; }
.studio-definitions dt { font-weight: 650; }
.studio-definitions dd { margin: .2rem 0 .8rem; color: var(--muted); }
.studio-definitions dd:last-child { margin-bottom: 0; }
.studio-spacer { height: clamp(1.5rem, 4vw, 4rem); }
[data-studio-editing] .studio-spacer { border: 1px dashed var(--line); }
.studio-banner-two, .studio-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.studio-banner-two p, .studio-contact p { margin-bottom: 0; }
.studio-banner-two .actions { margin: 0; }
.studio-contact { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 4vw, 2rem); }
.studio-releases article { padding: 1.05rem 0; border-block-start: 1px solid var(--line); }
.studio-releases article:last-child { border-block-end: 1px solid var(--line); }
.studio-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 36rem) { .studio-pricing { grid-template-columns: 1fr; } }
.hero-directory-slot > [data-studio-part="body"] { min-height: 2.2rem; }
[data-studio-editing] [data-studio-dynamic] { cursor: pointer; }
[data-studio-editing] [data-studio-dynamic]:focus-visible { outline: 1px solid var(--accent); }
.studio-module-note { margin: 1rem 0 0; color: var(--accent-deep); padding: .6rem .8rem; background: var(--accent-light); border-radius: .4rem; }
.studio-badge { display: inline-flex; padding: .13rem .63rem; border-radius: 999px; background: var(--accent-light); color: var(--accent-deep); font-size: .85rem; }
.studio-progress progress { width: min(100%, 28rem); accent-color: var(--accent); display: block; }
.studio-progress p { margin-bottom: .3rem; }
.studio-empty { text-align: center; border: 1px dashed var(--line); border-radius: .6rem; padding: clamp(1.25rem, 4vw, 2.7rem); }
.studio-success-note { border-inline-start-color: #257b50; background: #e7f6ed; }
.rich .hero-directory { border-bottom: 1px solid var(--line); border-radius: .85rem; }
.hero:is(.hero-services, .hero-articles, .hero-contact) .hero-text-only { min-height: auto; }
.button-primary { color: var(--button-ink, #fff); }
.button-primary:hover { color: var(--button-ink, #fff); }
.button-underline, .button-plain { color: var(--accent-deep); background: transparent; border-color: transparent; }
.button-underline { text-decoration: underline; }
.button-plain { padding-inline: .35rem; }
.site-brand { color: var(--ink); font-weight: 690; text-decoration: none; overflow-wrap: anywhere; }
.site-brand img { width: auto; height: auto; max-width: min(11rem, 48vw); max-height: 3.25rem; object-fit: contain; }
.masthead .masthead-inner { display: flex; align-items: center; flex-wrap: wrap; }
.masthead .primary-nav { margin-inline: auto; }
.masthead .site-account { margin-inline-start: auto; }
.masthead .site-account + .masthead-action { margin-inline-start: 0; }
.masthead-center .masthead-inner { justify-content: center; }
.masthead-center .site-brand { flex-basis: 100%; justify-content: center; }
.masthead-center .primary-nav { margin-inline: 0; }
.site-account { flex-shrink: 0; }
.account-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
.account-initial { display: inline-grid; place-items: center; background: var(--accent-light); color: var(--accent-deep); }
.account-panel .account-avatar { width: 3.5rem; height: 3.5rem; }
.account-panel form { margin-block: 1rem; }
.site-footer-components { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; }
.site-footer-columns .site-footer-components { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.site-footer-compact { padding-block: 1rem; }
.site-footer-band { --paper: #171e2e; --ink: #fff; --muted: #e1e6f1; color: var(--ink); background: var(--paper); }
.site-footer-text { max-width: 48ch; white-space: pre-line; margin: 0; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
@media (max-width: 44rem) {
.masthead .menu-toggle { margin-inline-start: auto; }
.masthead .primary-nav { order: 10; width: 100%; }
.masthead .masthead-action { display: inline-flex; min-height: 40px; padding: .45rem .7rem; }
.masthead .site-account { margin-inline-start: 0; }
}
+70
View File
@@ -0,0 +1,70 @@
'use strict';
jQuery(function ($) {
const $toggle = $('.menu-toggle');
const $nav = $('.primary-nav');
if ($toggle.length && $nav.length) {
$toggle.prop('hidden', false);
$nav.addClass('has-toggle');
const setMenu = (open) => {
$toggle.attr('aria-expanded', String(open));
$nav.toggleClass('is-open', open);
};
$toggle.on('click', () => setMenu($toggle.attr('aria-expanded') !== 'true'));
$nav.on('click', 'a', () => setMenu(false));
$(document).on('keydown', (event) => {
if (event.key === 'Escape' && $toggle.attr('aria-expanded') === 'true') {
setMenu(false);
$toggle.trigger('focus');
}
});
}
$('[data-article-tabs]').each(function () {
const $feed = $(this);
const $list = $feed.children('[data-tab-list]');
const $panels = $feed.children('[data-tab-panel]');
const $tabs = $list.children('[role="tab"]');
function selectTab(index, focus = false) {
$tabs.each(function (number) {
$(this).attr({'aria-selected': String(index === number), tabindex: index === number ? '0' : '-1'});
});
$panels.prop('hidden', true).eq(index).prop('hidden', false);
if (focus) $tabs.eq(index).trigger('focus');
}
$panels.each(function (index) {
$(this).attr({role: 'tabpanel', 'aria-labelledby': $tabs.eq(index).attr('id'), tabindex: '0'});
}).children('[data-tab-heading]').prop('hidden', true);
$list.prop('hidden', false);
selectTab(0);
$tabs.on('click', function () {
selectTab($tabs.index(this));
}).on('keydown', function (event) {
const index = $tabs.index(this);
const last = $tabs.length - 1;
const destinations = {ArrowLeft: index === 0 ? last : index - 1, ArrowRight: index === last ? 0 : index + 1, Home: 0, End: last};
if (!Object.hasOwn(destinations, event.key)) return;
event.preventDefault();
selectTab(destinations[event.key], true);
});
});
if ('IntersectionObserver' in window && !matchMedia('(prefers-reduced-motion: reduce)').matches) {
const observer = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
$(entry.target).addClass('moment-active');
observer.unobserve(entry.target);
}
}
}, {threshold: 0.35});
$('[data-moment]').each(function () {
observer.observe(this);
});
}
});
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 NHN Cloud Corp.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+162
View File
@@ -0,0 +1,162 @@
/*!
* TOAST UI Editor : i18n
* @version 3.2.2
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
* @license MIT
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("@toast-ui/editor"));
else if(typeof define === 'function' && define.amd)
define(["@toast-ui/editor"], factory);
else {
var a = typeof exports === 'object' ? factory(require("@toast-ui/editor")) : factory(root["toastui"]["Editor"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function(__WEBPACK_EXTERNAL_MODULE__213__) {
return /******/ (function() { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 213:
/***/ (function(module) {
module.exports = __WEBPACK_EXTERNAL_MODULE__213__;
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ !function() {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function() { return module['default']; } :
/******/ function() { return module; };
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ !function() {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = function(exports, definition) {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ }();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ !function() {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ }();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
!function() {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _editorCore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(213);
/* harmony import */ var _editorCore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_editorCore__WEBPACK_IMPORTED_MODULE_0__);
/**
* @fileoverview I18N for Chinese
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
*/
_editorCore__WEBPACK_IMPORTED_MODULE_0___default().setLanguage('zh-CN', {
Markdown: 'Markdown',
WYSIWYG: '所见即所得',
Write: '编辑',
Preview: '预览',
Headings: '标题',
Paragraph: '文本',
Bold: '加粗',
Italic: '斜体字',
Strike: '删除线',
Code: '内嵌代码',
Line: '水平线',
Blockquote: '引用块',
'Unordered list': '无序列表',
'Ordered list': '有序列表',
Task: '任务',
Indent: '缩进',
Outdent: '减少缩进',
'Insert link': '插入链接',
'Insert CodeBlock': '插入代码块',
'Insert table': '插入表格',
'Insert image': '插入图片',
Heading: '标题',
'Image URL': '图片网址',
'Select image file': '选择图片文件',
'Choose a file': '选择一个文件',
'No file': '没有文件',
Description: '说明',
OK: '确认',
More: '更多',
Cancel: '取消',
File: '文件',
URL: 'URL',
'Link text': '链接文本',
'Add row to up': '向上添加行',
'Add row to down': '在下方添加行',
'Add column to left': '在左侧添加列',
'Add column to right': '在右侧添加列',
'Remove row': '删除行',
'Remove column': '删除列',
'Align column to left': '左对齐',
'Align column to center': '居中对齐',
'Align column to right': '右对齐',
'Remove table': '删除表格',
'Would you like to paste as table?': '需要粘贴为表格吗?',
'Text color': '文字颜色',
'Auto scroll enabled': '自动滚动已启用',
'Auto scroll disabled': '自动滚动已禁用',
'Choose language': '选择语言',
});
}();
/******/ return __webpack_exports__;
/******/ })()
;
});