@myxtra/authentication-green 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -17
- package/dist/{App-b8d0f682.mjs → App-c57e7c72.mjs} +754 -748
- package/dist/icons/bouMenuIcons.html +74 -0
- package/dist/{index-c468a93b.mjs → index-97a2898d.mjs} +3550 -3544
- package/dist/xtra-authentication.mjs +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>SVG Icons - Authentication - Xtra</title>
|
|
6
|
+
<link
|
|
7
|
+
rel="shortcut icon"
|
|
8
|
+
href="http://ecustomermwstatic.colruytgroup.com/ecustomermw/static/xtra/assets/ico/favicon.ico"
|
|
9
|
+
/>
|
|
10
|
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
11
|
+
<style>
|
|
12
|
+
.icon {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 24px;
|
|
17
|
+
padding: 8px;
|
|
18
|
+
border-bottom: 1px solid black;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
p,
|
|
22
|
+
dl,
|
|
23
|
+
dt,
|
|
24
|
+
dd {
|
|
25
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<h1>SVG Icons</h1>
|
|
32
|
+
<div class="icons">
|
|
33
|
+
<header class="icon">
|
|
34
|
+
<p>Icon</p>
|
|
35
|
+
<p>Id</p>
|
|
36
|
+
</header>
|
|
37
|
+
</div>
|
|
38
|
+
<script type="module">
|
|
39
|
+
const href = './bouMenuIcons.svg';
|
|
40
|
+
|
|
41
|
+
const loadSVG = async () => {
|
|
42
|
+
const svgResponse = await fetch('./bouMenuIcons.svg');
|
|
43
|
+
|
|
44
|
+
if (!svgResponse.ok) {
|
|
45
|
+
throw new Error('SVG not found');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const svgString = await svgResponse.text();
|
|
49
|
+
const svgContainer = document.createElement('div');
|
|
50
|
+
svgContainer.innerHTML = svgString;
|
|
51
|
+
const symbols = svgContainer.querySelectorAll('svg > symbol');
|
|
52
|
+
|
|
53
|
+
const container = document.querySelector('.icons');
|
|
54
|
+
symbols.forEach((symbol) => {
|
|
55
|
+
const id = symbol.getAttribute('id');
|
|
56
|
+
container.innerHTML += `
|
|
57
|
+
<dl class="icon">
|
|
58
|
+
<dt>
|
|
59
|
+
<svg width="24" height="24" viewBox="0 0 24 24">
|
|
60
|
+
<use href="${href}#${id}"></use>
|
|
61
|
+
</svg>
|
|
62
|
+
</dt>
|
|
63
|
+
<dd>${id}</dd>
|
|
64
|
+
</dl>
|
|
65
|
+
`;
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
loadSVG()
|
|
70
|
+
.then(() => console.log('Successfully loaded SVG'))
|
|
71
|
+
.catch((error) => console.error(error));
|
|
72
|
+
</script>
|
|
73
|
+
</body>
|
|
74
|
+
</html>
|