From 0724715919fbac9df8e0fbc2c716d93aa4471d16 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 3 Oct 2024 16:18:21 +0300 Subject: [PATCH] ImageDiff demos added --- apps/showcase/assets/menu/menu.json | 5 ++ .../doc/imagediff/AccessibilityDoc.vue | 9 ++ apps/showcase/doc/imagediff/BasicDoc.vue | 37 ++++++++ apps/showcase/doc/imagediff/ImportDoc.vue | 18 ++++ apps/showcase/doc/imagediff/pt/PTViewer.vue | 22 +++++ apps/showcase/doc/imagediff/pt/index.vue | 35 ++++++++ .../doc/imagediff/theming/TailwindDoc.vue | 8 ++ apps/showcase/doc/imagediff/theming/index.vue | 56 ++++++++++++ apps/showcase/pages/imagediff/index.vue | 39 ++++++++ packages/themes/scripts/build-tokens.js | 89 ++++++++++++++++++- .../src/presets/aura/imagediff/index.js | 1 + .../src/presets/aura/imagediff/package.json | 5 ++ 12 files changed, 323 insertions(+), 1 deletion(-) create mode 100644 apps/showcase/doc/imagediff/AccessibilityDoc.vue create mode 100644 apps/showcase/doc/imagediff/BasicDoc.vue create mode 100644 apps/showcase/doc/imagediff/ImportDoc.vue create mode 100644 apps/showcase/doc/imagediff/pt/PTViewer.vue create mode 100644 apps/showcase/doc/imagediff/pt/index.vue create mode 100644 apps/showcase/doc/imagediff/theming/TailwindDoc.vue create mode 100644 apps/showcase/doc/imagediff/theming/index.vue create mode 100644 apps/showcase/pages/imagediff/index.vue create mode 100644 packages/themes/src/presets/aura/imagediff/index.js create mode 100644 packages/themes/src/presets/aura/imagediff/package.json diff --git a/apps/showcase/assets/menu/menu.json b/apps/showcase/assets/menu/menu.json index 7ecbd3729..781612878 100644 --- a/apps/showcase/assets/menu/menu.json +++ b/apps/showcase/assets/menu/menu.json @@ -414,6 +414,11 @@ { "name": "Image", "to": "/image" + }, + { + "name": "ImageDiff", + "to": "/imagediff", + "badge": "NEW" } ] }, diff --git a/apps/showcase/doc/imagediff/AccessibilityDoc.vue b/apps/showcase/doc/imagediff/AccessibilityDoc.vue new file mode 100644 index 000000000..05d727668 --- /dev/null +++ b/apps/showcase/doc/imagediff/AccessibilityDoc.vue @@ -0,0 +1,9 @@ + diff --git a/apps/showcase/doc/imagediff/BasicDoc.vue b/apps/showcase/doc/imagediff/BasicDoc.vue new file mode 100644 index 000000000..667168f10 --- /dev/null +++ b/apps/showcase/doc/imagediff/BasicDoc.vue @@ -0,0 +1,37 @@ + + + diff --git a/apps/showcase/doc/imagediff/ImportDoc.vue b/apps/showcase/doc/imagediff/ImportDoc.vue new file mode 100644 index 000000000..6d1c0e4de --- /dev/null +++ b/apps/showcase/doc/imagediff/ImportDoc.vue @@ -0,0 +1,18 @@ + + + diff --git a/apps/showcase/doc/imagediff/pt/PTViewer.vue b/apps/showcase/doc/imagediff/pt/PTViewer.vue new file mode 100644 index 000000000..6a442b24d --- /dev/null +++ b/apps/showcase/doc/imagediff/pt/PTViewer.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/showcase/doc/imagediff/pt/index.vue b/apps/showcase/doc/imagediff/pt/index.vue new file mode 100644 index 000000000..605d9671f --- /dev/null +++ b/apps/showcase/doc/imagediff/pt/index.vue @@ -0,0 +1,35 @@ + + + diff --git a/apps/showcase/doc/imagediff/theming/TailwindDoc.vue b/apps/showcase/doc/imagediff/theming/TailwindDoc.vue new file mode 100644 index 000000000..4daa6c5f8 --- /dev/null +++ b/apps/showcase/doc/imagediff/theming/TailwindDoc.vue @@ -0,0 +1,8 @@ + diff --git a/apps/showcase/doc/imagediff/theming/index.vue b/apps/showcase/doc/imagediff/theming/index.vue new file mode 100644 index 000000000..21123430c --- /dev/null +++ b/apps/showcase/doc/imagediff/theming/index.vue @@ -0,0 +1,56 @@ + + + diff --git a/apps/showcase/pages/imagediff/index.vue b/apps/showcase/pages/imagediff/index.vue new file mode 100644 index 000000000..aa5e52f8c --- /dev/null +++ b/apps/showcase/pages/imagediff/index.vue @@ -0,0 +1,39 @@ + + + + diff --git a/packages/themes/scripts/build-tokens.js b/packages/themes/scripts/build-tokens.js index 4db76672a..c9141dcf1 100644 --- a/packages/themes/scripts/build-tokens.js +++ b/packages/themes/scripts/build-tokens.js @@ -2,7 +2,94 @@ const fs = require('fs'); const path = require('path'); // prettier-ignore -const THEME_COMPONENTS = ['Accordion','AutoComplete','Avatar','Badge','BlockUI','Breadcrumb','Button','Card','Carousel','CascadeSelect','Checkbox','Chip','ColorPicker','ConfirmDialog','ConfirmPopup','ContextMenu','DataTable','DataView','DatePicker','Dialog','Divider','Dock','Drawer','Editor','Fieldset','FileUpload','FloatLabel','Galleria','IconField','IftaLabel','Image','InlineMessage','Inplace','InputChips','InputGroup','InputNumber','InputText','Knob','Listbox','MegaMenu','Menu','Menubar','Message','MeterGroup','MultiSelect','OrderList','OrganizationChart','OverlayBadge','Paginator','Panel','PanelMenu','Password','PickList','Popover','ProgressBar','ProgressSpinner','RadioButton','Rating','Ripple','ScrollPanel','Select','SelectButton','Skeleton','Slider','SpeedDial','SplitButton','Splitter','Stepper','Steps','Tabmenu','Tabs','TabView','Tag','Terminal','Textarea','TieredMenu','Timeline','Toast','ToggleButton','ToggleSwitch','Toolbar','Tooltip','Tree','TreeSelect','TreeTable']; +const THEME_COMPONENTS = [ + 'Accordion', + 'AutoComplete', + 'Avatar', + 'Badge', + 'BlockUI', + 'Breadcrumb', + 'Button', + 'Card', + 'Carousel', + 'CascadeSelect', + 'Checkbox', + 'Chip', + 'ColorPicker', + 'ConfirmDialog', + 'ConfirmPopup', + 'ContextMenu', + 'DataTable', + 'DataView', + 'DatePicker', + 'Dialog', + 'Divider', + 'Dock', + 'Drawer', + 'Editor', + 'Fieldset', + 'FileUpload', + 'FloatLabel', + 'Galleria', + 'IconField', + 'IftaLabel', + 'Image', + 'ImageDiff', + 'InlineMessage', + 'Inplace', + 'InputChips', + 'InputGroup', + 'InputNumber', + 'InputText', + 'Knob', + 'Listbox', + 'MegaMenu', + 'Menu', + 'Menubar', + 'Message', + 'MeterGroup', + 'MultiSelect', + 'OrderList', + 'OrganizationChart', + 'OverlayBadge', + 'Paginator', + 'Panel', + 'PanelMenu', + 'Password', + 'PickList', + 'Popover', + 'ProgressBar', + 'ProgressSpinner', + 'RadioButton', + 'Rating', + 'Ripple', + 'ScrollPanel', + 'Select', + 'SelectButton', + 'Skeleton', + 'Slider', + 'SpeedDial', + 'SplitButton', + 'Splitter', + 'Stepper', + 'Steps', + 'Tabmenu', + 'Tabs', + 'TabView', + 'Tag', + 'Terminal', + 'Textarea', + 'TieredMenu', + 'Timeline', + 'Toast', + 'ToggleButton', + 'ToggleSwitch', + 'Toolbar', + 'Tooltip', + 'Tree', + 'TreeSelect', + 'TreeTable' +]; const themeName = 'aura'; const rootDir = path.resolve(__dirname, '../'); diff --git a/packages/themes/src/presets/aura/imagediff/index.js b/packages/themes/src/presets/aura/imagediff/index.js new file mode 100644 index 000000000..ff8b4c563 --- /dev/null +++ b/packages/themes/src/presets/aura/imagediff/index.js @@ -0,0 +1 @@ +export default {}; diff --git a/packages/themes/src/presets/aura/imagediff/package.json b/packages/themes/src/presets/aura/imagediff/package.json new file mode 100644 index 000000000..b1aea50fa --- /dev/null +++ b/packages/themes/src/presets/aura/imagediff/package.json @@ -0,0 +1,5 @@ +{ + "main": "./index.js", + "module": "./index.js", + "types": "../types/imagediff/index.d.ts" +}