Skip to content

Commit

Permalink
Merge pull request #77 from lara-zeus/add-helen
Browse files Browse the repository at this point in the history
update and add helen assets
  • Loading branch information
atmonshi authored Dec 8, 2023
2 parents 07b64a7 + e432cd9 commit ee1d3b0
Show file tree
Hide file tree
Showing 12 changed files with 603 additions and 466 deletions.
1,022 changes: 564 additions & 458 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"purge": "filament-purge -i ./resources/dist/filament-tail.css -o ./resources/dist/lara-zeus.css -v 3.x"
},
"devDependencies": {
"dom-to-image": "^2.6.0",
"file-saver": "^2.0.5",
"sortablejs": "^1.15.0",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/typography": "^0.5.10",
Expand Down
2 changes: 1 addition & 1 deletion resources/dist/filament-tail.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/dist/frontend.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/dist/helen.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/dist/lara-zeus.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions resources/js/helen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import domtoimage from 'dom-to-image';
//import {saveAs} from 'file-saver';
window.download = function (domain) {
var node = document.querySelector('#qrcode svg');
domtoimage.toBlob(node)
.then(function (blob) {
window.saveAs(blob, domain + '.png');
})
.catch(function (error) {
console.error('oops, something went wrong!', error);
});
}
5 changes: 3 additions & 2 deletions resources/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"/dist/plugin.js": "/dist/plugin.js?id=d8eae76b5e99023184aa18c28e75a3e1",
"/dist/frontend.css": "/dist/frontend.css?id=b7453bf0fd646c6eb11fa33d139303d9",
"/dist/filament-tail.css": "/dist/filament-tail.css?id=ab7af5d8158a0129916aecc9d3de4c12"
"/dist/helen.js": "/dist/helen.js?id=e93ae080b629c1083436a584c77ce0e5",
"/dist/frontend.css": "/dist/frontend.css?id=812f029b5bc8387ae59910407bd26f18",
"/dist/filament-tail.css": "/dist/filament-tail.css?id=c6fbd0ce2bb7698a44ba9a2950423bc9"
}
2 changes: 2 additions & 0 deletions src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ public function packageBooted(): void
'wind',
'sky',
'bolt',
'bolt-pro',
'thunder',
'rain',
'rhea',
'artemis',
'hermes',
'helen',
'tyche',
])
->filter(fn (string $package): bool => InstalledVersions::isInstalled("lara-zeus/{$package}"))
Expand Down
4 changes: 4 additions & 0 deletions tailwind-frontend.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ module.exports = {
// Thunder
'../thunder/resources/views/themes/**/*.blade.php',
'../thunder/src/Models/TicketsStatus.php',
// helen
'./vendor/lara-zeus/helen/resources/views/**/*.blade.php',
'./vendor/lara-zeus/helen/src/Filament/Resources/LinksResource.php',
'./vendor/lara-zeus/helen/src/Facades/Helen.php',
// hermes
'../hermes/resources/views/themes/**/*.blade.php',
// Rain
Expand Down
5 changes: 2 additions & 3 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ mix
])

.js('resources/js/plugin.js', 'resources/dist/plugin.js')

.setPublicPath('resources')
;
.js("resources/js/helen.js", "resources/dist/helen.js")
.setPublicPath('resources');

if (mix.inProduction()) {
mix.version();
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2652,6 +2652,11 @@ dom-serializer@^1.0.1:
domhandler "^4.2.0"
entities "^2.0.0"

dom-to-image@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/dom-to-image/-/dom-to-image-2.6.0.tgz#8a503608088c87b1c22f9034ae032e1898955867"
integrity sha512-Dt0QdaHmLpjURjU7Tnu3AgYSF2LuOmksSGsUcE6ItvJoCWTBEmiMXcqBdNSAm9+QbbwD7JMoVsuuKX6ZVQv1qA==

domain-browser@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
Expand Down Expand Up @@ -2949,6 +2954,11 @@ file-loader@^6.2.0:
loader-utils "^2.0.0"
schema-utils "^3.0.0"

file-saver@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38"
integrity sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==

file-type@^12.0.0:
version "12.4.2"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-12.4.2.tgz#a344ea5664a1d01447ee7fb1b635f72feb6169d9"
Expand Down

0 comments on commit ee1d3b0

Please sign in to comment.