From 7a1c194c5385e43d7a5310a98b1cdf44968c2d31 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Thu, 14 Sep 2023 11:48:14 +0800 Subject: [PATCH] update --- MyApp/wwwroot/mjs/app.mjs | 13 +++++++++++++ .../mjs/components/VueComponentGallery.mjs | 16 ++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/MyApp/wwwroot/mjs/app.mjs b/MyApp/wwwroot/mjs/app.mjs index 66dadea..58702d3 100644 --- a/MyApp/wwwroot/mjs/app.mjs +++ b/MyApp/wwwroot/mjs/app.mjs @@ -111,3 +111,16 @@ export function init(exports) { exports.Apps = Apps } } + +/* used in :::sh and :::nuget CopyContainerRenderer */ +globalThis.copy = function(e) { + e.classList.add('copying') + let $el = document.createElement("textarea") + let text = (e.querySelector('code') || e.querySelector('p')).innerHTML + $el.innerHTML = text + document.body.appendChild($el) + $el.select() + document.execCommand("copy") + document.body.removeChild($el) + setTimeout(() => e.classList.remove('copying'), 3000) +} \ No newline at end of file diff --git a/MyApp/wwwroot/mjs/components/VueComponentGallery.mjs b/MyApp/wwwroot/mjs/components/VueComponentGallery.mjs index 93f47a6..86c0ce0 100644 --- a/MyApp/wwwroot/mjs/components/VueComponentGallery.mjs +++ b/MyApp/wwwroot/mjs/components/VueComponentGallery.mjs @@ -20,28 +20,28 @@ export default {
- + Instant customizable UIs for calling AutoQuery CRUD APIs - + DataGrid Component Examples for rendering tabular data - + Render Auto Form UIs from a Request DTO class - + Tailwind UI Input Components - + Modal Dialogs and Slide Overs - + Breadcrumbs and Link navigation components - + Tailwind Alert and Notification components - + HTML Value Formatters