mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
Merge pull request #259 from php-flasher/2.x-dev
fix flasher studio select theme
This commit is contained in:
+10
-10
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"dist/main.css": "/dist/main.e7c7672c.css",
|
||||
"dist/main.js": "/dist/main.c89a204f.js",
|
||||
"dist/main.css": "/dist/main.3c7702b0.css",
|
||||
"dist/main.js": "/dist/main.3be5bc06.js",
|
||||
"dist/455.3a7b4474.css": "/dist/455.3a7b4474.css",
|
||||
"dist/455.17bc016b.js": "/dist/455.17bc016b.js",
|
||||
"dist/455.095e6545.js": "/dist/455.095e6545.js",
|
||||
"dist/411.29cd993e.css": "/dist/411.29cd993e.css",
|
||||
"dist/411.42e6794f.js": "/dist/411.42e6794f.js",
|
||||
"dist/411.277b21bc.js": "/dist/411.277b21bc.js",
|
||||
"dist/641.c0be7378.css": "/dist/641.c0be7378.css",
|
||||
"dist/641.f8750364.js": "/dist/641.f8750364.js",
|
||||
"dist/641.a938263c.js": "/dist/641.a938263c.js",
|
||||
"dist/160.554a2dcd.css": "/dist/160.554a2dcd.css",
|
||||
"dist/160.264e6e64.js": "/dist/160.264e6e64.js",
|
||||
"dist/265.396597b6.js": "/dist/265.396597b6.js",
|
||||
"dist/160.22e7905c.js": "/dist/160.22e7905c.js",
|
||||
"dist/265.52505228.js": "/dist/265.52505228.js",
|
||||
"dist/371.9523a7ff.css": "/dist/371.9523a7ff.css",
|
||||
"dist/371.324a7072.js": "/dist/371.324a7072.js",
|
||||
"dist/371.f9d2cf4e.js": "/dist/371.f9d2cf4e.js",
|
||||
"dist/735.11112420.css": "/dist/735.11112420.css",
|
||||
"dist/735.3cd4e509.js": "/dist/735.3cd4e509.js",
|
||||
"dist/735.5b8d44b1.js": "/dist/735.5b8d44b1.js",
|
||||
"dist/243.699ba66f.css": "/dist/243.699ba66f.css",
|
||||
"dist/243.991d9535.js": "/dist/243.991d9535.js",
|
||||
"dist/107.6a2ea759.css": "/dist/107.6a2ea759.css",
|
||||
"dist/107.12087179.js": "/dist/107.12087179.js"
|
||||
"dist/107.090fb6e1.js": "/dist/107.090fb6e1.js"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<!-- PHPFlasher Interactive Studio - Enhanced Edition -->
|
||||
<section class="min-h-screen relative overflow-hidden bg-gradient-to-br from-gray-50 to-gray-100 py-8">
|
||||
<section data-controller="flasher-studio" class="min-h-screen relative overflow-hidden bg-gradient-to-br from-gray-50 to-gray-100 py-8">
|
||||
<!-- Dynamic background elements -->
|
||||
<div class="absolute inset-0 z-0">
|
||||
<div class="absolute top-0 right-0 w-1/3 h-1/3 bg-gradient-to-br from-blue-500/10 to-indigo-500/10 rounded-full blur-3xl animate-float-slow"></div>
|
||||
@@ -1274,7 +1274,7 @@ async function checkStatus() {
|
||||
...options
|
||||
};
|
||||
delete notificationOptions.theme;
|
||||
flasher.use(state.theme).flash(notificationOptions);
|
||||
flasher.use(`theme.${state.theme}`).flash(notificationOptions);
|
||||
} else {
|
||||
flasher[state.type](state.message, state.title || null, options);
|
||||
}
|
||||
@@ -1292,7 +1292,6 @@ async function checkStatus() {
|
||||
} catch (e) {
|
||||
console.error("Error showing notification:", e);
|
||||
updateStatus("Error: " + e.message);
|
||||
alert("Failed to show notification: " + e.message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
import './tryit.pcss'
|
||||
|
||||
import flasher from '@flasher/flasher'
|
||||
import '@flasher/flasher-toastr'
|
||||
import '@flasher/flasher-noty'
|
||||
import '@flasher/flasher-notyf'
|
||||
import '@flasher/flasher-sweetalert'
|
||||
|
||||
import '@flasher/flasher/dist/themes/amazon/amazon'
|
||||
import '@flasher/flasher/dist/themes/amber/amber'
|
||||
import '@flasher/flasher/dist/themes/aurora/aurora'
|
||||
import '@flasher/flasher/dist/themes/crystal/crystal'
|
||||
import '@flasher/flasher/dist/themes/emerald/emerald'
|
||||
import '@flasher/flasher/dist/themes/facebook/facebook'
|
||||
import '@flasher/flasher/dist/themes/google/google'
|
||||
import '@flasher/flasher/dist/themes/ios/ios'
|
||||
import '@flasher/flasher/dist/themes/jade/jade'
|
||||
import '@flasher/flasher/dist/themes/material/material'
|
||||
import '@flasher/flasher/dist/themes/minimal/minimal'
|
||||
import '@flasher/flasher/dist/themes/neon/neon'
|
||||
import '@flasher/flasher/dist/themes/onyx/onyx'
|
||||
import '@flasher/flasher/dist/themes/ruby/ruby'
|
||||
import '@flasher/flasher/dist/themes/sapphire/sapphire'
|
||||
import '@flasher/flasher/dist/themes/slack/slack'
|
||||
|
||||
export default class extends Controller {
|
||||
initialize() {
|
||||
window.flasher = flasher
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[107],{107:function(s,e,c){c.r(e)}}]);
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[107],{9107:function(s,e,c){c.r(e)}}]);
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[160],{779:function(s,e,c){c.r(e)}}]);
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[160],{3160:function(s,e,c){c.r(e)}}]);
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[265],{265:function(s,e,c){c.r(e)}}]);
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[265],{6265:function(s,e,c){c.r(e)}}]);
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[371],{371:function(s,e,c){c.r(e)}}]);
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[371],{9371:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[411],{9792:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[411],{792:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[455],{3455:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[455],{455:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[641],{2641:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[641],{641:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[735],{735:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk_flasher_docs=self.webpackChunk_flasher_docs||[]).push([[735],{8735:function(s,e,c){c.r(e)}}]);
|
||||
Vendored
+2
-2
@@ -2,10 +2,10 @@
|
||||
"entrypoints": {
|
||||
"main": {
|
||||
"css": [
|
||||
"/dist/main.e7c7672c.css"
|
||||
"/dist/main.3c7702b0.css"
|
||||
],
|
||||
"js": [
|
||||
"/dist/main.c89a204f.js"
|
||||
"/dist/main.3be5bc06.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-2
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user