-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-flag-creator.html
More file actions
49 lines (44 loc) · 1.5 KB
/
test-flag-creator.html
File metadata and controls
49 lines (44 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flag Creator Test</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* Override any z-index issues */
#flag-creator-modal-body {
z-index: 2147483647 !important;
}
</style>
</head>
<body class="bg-gray-900 text-white">
<div class="p-8">
<h1 class="text-2xl mb-4">Flag Creator Test</h1>
<button id="openFlagCreator" class="bg-blue-600 hover:bg-blue-700 px-6 py-3 rounded-lg">
Open Flag Creator
</button>
</div>
<!-- Import the flag creator component -->
<flag-creator id="flagCreator"></flag-creator>
<script type="module">
// Mock the auth service
window.SimpleAuthService = {
getInstance: () => ({
getAccountTier: () => 'free'
})
};
// Import the flag creator
import('./src/client/components/flag-creator/FlagCreator.js').then(() => {
const flagCreator = document.getElementById('flagCreator');
const openBtn = document.getElementById('openFlagCreator');
openBtn.addEventListener('click', () => {
flagCreator.open = true;
});
flagCreator.addEventListener('close', () => {
console.log('Flag creator closed');
});
});
</script>
</body>
</html>