Commit 578022b8 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat: replace slug field with interactive permalink component

- create permalink-edit web component with slug editing and permalink copy functionalities
- add
@github/clipboard-copy-element
- update npm packages
- replace vscode extension lit-html with
lit-plugin to get css intellisense
parent 230e139e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@
    }
  },
  "extensions": [
    "bierner.lit-html",
    "bmewburn.vscode-intelephense-client",
    "bradlc.vscode-tailwindcss",
    "breezelin.phpstan",
@@ -37,6 +36,7 @@
    "kasik96.latte",
    "mikestead.dotenv",
    "naumovs.color-highlight",
    "runem.lit-plugin",
    "streetsidesoftware.code-spell-checker",
    "stylelint.vscode-stylelint",
    "wayou.vscode-todo-highlight"
+3 −3
Original line number Diff line number Diff line
@@ -20,17 +20,17 @@ if (! function_exists('render_page_links')) {
    {
        $pages = (new PageModel())->findAll();
        $links = anchor(route_to('home'), lang('Common.home'), [
            'class' => 'px-2 underline hover:no-underline',
            'class' => 'px-2 py-1 underline hover:no-underline',
        ]);
        $links .= anchor(route_to('credits'), lang('Person.credits'), [
            'class' => 'px-2 underline hover:no-underline',
            'class' => 'px-2  py-1 underline hover:no-underline',
        ]);
        $links .= anchor(route_to('map'), lang('Page.map'), [
            'class' => 'px-2 underline hover:no-underline',
        ]);
        foreach ($pages as $page) {
            $links .= anchor($page->link, $page->title, [
                'class' => 'px-2 underline hover:no-underline',
                'class' => 'px-2  py-1 underline hover:no-underline',
            ]);
        }

+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@ return [
    'more' => 'More',
    'no_data' => 'No data found!',
    'close' => 'Close',
    'edit' => 'Edit',
    'copy' => 'Copy',
    'copied' => 'Copied!',
    'home' => 'Home',
    'explicit' => 'Explicit',
    'mediumDate' => '{0,date,medium}',
+1 −2
Original line number Diff line number Diff line
@@ -67,8 +67,7 @@ return [
        'title' => 'Title',
        'title_hint' =>
            'Should contain a clear and concise episode name. Do not specify the episode or season numbers here.',
        'slug' => 'Slug',
        'slug_hint' => 'Used for generating the episode URL.',
        'permalink' => 'Permalink',
        'season_number' => 'Season',
        'episode_number' => 'Episode',
        'type' => [
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ return [
    'delete' => 'Delete page',
    'form' => [
        'title' => 'Title',
        'slug' => 'Slug',
        'permalink' => 'Permalink',
        'content' => 'Content',
        'submit_create' => 'Create page',
        'submit_edit' => 'Save',
Loading