Skip to content

Commit

Permalink
chore(examples): remove source link
Browse files Browse the repository at this point in the history
  • Loading branch information
luolonghao committed Oct 22, 2024
1 parent 68e0a8c commit fae0184
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion assets/icons/code.svg

This file was deleted.

2 changes: 1 addition & 1 deletion examples/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body {
font-weight: normal;
line-height: normal;
display: grid;
grid-template-columns: 44px 1fr 38px 38px 36px;
grid-template-columns: 44px 1fr 38px 36px;
align-items: center;
padding: 8px 8px 16px 8px;
background-color: #fff;
Expand Down
1 change: 0 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div class="title"></div>
<div class="language"></div>
<div class="direction"></div>
<div class="source"></div>
</div>
<div class="lake-editor">
<div class="lake-toolbar-root"></div>
Expand Down
9 changes: 0 additions & 9 deletions examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,42 @@ const menuItems = [
{
url: './',
text: 'Default configuration',
source: 'https://github.com/lakejs/lake/blob/main/examples/default-editor.ts',
editorValue: window.defaultValue,
editor: defaultEditor,
},
{
url: './full-featured',
text: 'Full-featured editor',
source: 'https://github.com/lakejs/lake/blob/main/examples/full-editor.ts',
editorValue: window.defaultValue,
editor: fullEditor,
},
{
url: './document',
text: 'Document editor',
source: 'https://github.com/lakejs/lake/blob/main/examples/default-editor.ts',
editorValue: window.defaultValue,
editor: documentEditor,
},
{
url: './miniature',
text: 'Miniature toolbar',
source: 'https://github.com/lakejs/lake/blob/main/examples/miniature-editor.ts',
editorValue: '<p>This example shows you how to use Lake for comment box.</p>',
editor: miniatureEditor,
},
{
url: './headless',
text: 'Headless editor',
source: 'https://github.com/lakejs/lake/blob/main/examples/headless-editor.ts',
editorValue: '<p>This example shows you how to customize a toolbar that is well adapted to your needs.</p>',
editor: headlessEditor,
},
{
url: './huge-content',
text: 'Huge Content',
source: 'https://github.com/lakejs/lake/blob/main/examples/default-editor.ts',
editorValue: window.hugeValue,
editor: defaultEditor,
},
{
url: './readonly',
text: 'Read-only mode',
source: 'https://github.com/lakejs/lake/blob/main/examples/readonly-editor.ts',
editorValue: window.defaultValue,
editor: readonlyEditor,
},
Expand Down Expand Up @@ -157,8 +150,6 @@ function renderHeader(pageType: string): void {
}
const titleNode = query('.header .title');
titleNode.text(currentItem.text);
const sourceNode = query('.header .source');
sourceNode.append(`<a href="${currentItem.source}" target="_blank" title="View Source"><img src="../assets/icons/code.svg" /></a>`);
renderLanguage();
renderDirection();
const menuNode = query('.header .menu');
Expand Down

0 comments on commit fae0184

Please sign in to comment.