Skip to content

Commit 8f9d82e

Browse files
committed
added multiple HTML buttons
1 parent 100b46f commit 8f9d82e

File tree

9 files changed

+61
-7
lines changed

9 files changed

+61
-7
lines changed

src/components/composables/useExportComponent.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ export function useExportComponent() {
4848
"list-ul": ["<ul>", "</ul>"],
4949
input: ["<input />", ""],
5050
navbar: ["<nav>", "</nav>"],
51+
header:["<header>", "</header>"],
52+
footer:["<footer>", "</footer>"],
53+
meta: ["<meta>", "</meta>"],
54+
h1:["<h1>", "</h1>"],
55+
h2:["<h2>", "</h2>"],
56+
h3:["<h3>", "</h3>"],
57+
h4:["<h4>", "</h4>"],
58+
h5:["<h5>", "</h5>"],
59+
h6:["<h6>", "</h6>"],
5160
};
5261
// function to loop through nested elements
5362
const writeNested = (childrenArray, indent) => {

src/components/left-sidebar/ComponentTab/ImportComponent.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ export default {
127127
"list-ul": ["<ul>", "</ul>"],
128128
input: ["<input />", ""],
129129
navbar: ["<nav>", "</nav>"],
130+
header:["<header>", "</header>"],
131+
footer:["<footer>", "</footer>"],
132+
meta: ["<meta>", "</meta>"],
133+
h1:["<h1>", "</h1>"],
134+
h2:["<h2>", "</h2>"],
135+
h3:["<h3>", "</h3>"],
136+
h4:["<h4>", "</h4>"],
137+
h5:["<h5>", "</h5>"],
138+
h6:["<h6>", "</h6>"],
130139
};
131140
132141

src/components/nav-buttons/ExportMenu.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ export default {
129129
"list-ul": ["<ul>", "</ul>"],
130130
input: ["<input />", ""],
131131
navbar: ["<nav>", "</nav>"],
132+
header:["<header>", "</header>"],
133+
footer:["<footer>", "</footer>"],
134+
meta: ["<meta>", "</meta>"],
135+
h1:["<h1>", "</h1>"],
136+
h2:["<h2>", "</h2>"],
137+
h3:["<h3>", "</h3>"],
138+
h4:["<h4>", "</h4>"],
139+
h5:["<h5>", "</h5>"],
140+
h6:["<h6>", "</h6>"],
132141
};
133142
// function to loop through nested elements
134143
function writeNested(childrenArray, indent) {

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ export default {
9595
"list-ul": ["<ul>", "</ul>"],
9696
input: ["<input />", ""],
9797
navbar: ["<nav>", "</nav>"],
98+
header:["<header>", "</header>"],
99+
footer:["<footer>", "</footer>"],
100+
meta: ["<meta>", "</meta>"],
101+
h1:["<h1>", "</h1>"],
102+
h2:["<h2>", "</h2>"],
103+
h3:["<h3>", "</h3>"],
104+
h4:["<h4>", "</h4>"],
105+
h5:["<h5>", "</h5>"],
106+
h6:["<h6>", "</h6>"],
98107
};
99108
100109
// Helper function that recursively iterates through the given html element's children and their children's children.

src/components/right-sidebar/ComponentDetails.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ Description:
2121
<q-tab name="code" label="Code Snippet" class="label-text" />
2222
<q-tab name="html" label="HTML Elements" class="label-text" />
2323
<q-tab name="state" label="Component Properties" class="label-text" />
24-
<!-- <q-tab name="actions" label="Component Actions" class="label-text" />
25-
<q-tab name="props" label="Component Props" class="label-text" /> -->
2624
</q-tabs>
2725
<q-tab-panels v-model="tab" animated class="html-bg text-white">
2826
<q-tab-panel name="code">
@@ -206,5 +204,7 @@ i {
206204
207205
.componentProperties {
208206
margin-bottom:2em;
207+
209208
}
209+
210210
</style>

src/index.template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
<meta name="msapplication-tap-highlight" content="no">
1010
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
1111

12-
<script src="https://kit.fontawesome.com/647682ac21.js" crossorigin="anonymous" data-auto-add-css="false"></script>
12+
<script src="https://kit.fontawesome.com/050e20b677.js" crossorigin="anonymous" data-auto-add-css="false"></script>
1313

1414

15-
1615
<link rel="icon" type="image/png" href="statics/app-logo-128x128.png">
1716
<link rel="icon" type="image/png" sizes="16x16" href="statics/icons/favicon-16x16.png">
1817
<link rel="icon" type="image/png" sizes="32x32" href="statics/icons/favicon-32x32.png">

src/store/state/htmlElementMap.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ const htmlElementMap = {
99
'list-ol': ['<ol>', '</ol>'],
1010
'list-ul': ['<ul>', '</ul>'],
1111
input: ['<input />', ''],
12-
navbar: ['<nav>', '</nav>']
12+
navbar: ['<nav>', '</nav>'],
13+
header:['<header>', '</header>'],
14+
footer:['<footer>', '</footer>'],
15+
meta: ['<meta>', '</meta>'],
16+
h1:['<h1>', '</h1>'],
17+
h2:['<h2>', '</h2>'],
18+
h3:['<h3>', '</h3>'],
19+
h4:['<h4>', '</h4>'],
20+
h5:['<h5>', '</h5>'],
21+
h6:['<h6>', '</h6>'],
1322
}
1423

1524
export default htmlElementMap

src/store/state/icons.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ const icons = {
99
'list-ol': 'fas fa-list-ol fa-lg',
1010
'list-ul': 'fas fa-list-ul fa-lg',
1111
input: 'fas fa-pen fa-lg',
12-
navbar: 'fas fa-window-maximize fa-lg'
12+
navbar: 'fas fa-window-maximize fa-lg',
13+
header:['fa-solid fa-heading'],
14+
footer:['fa-solid fa-shoe-prints'],
15+
meta: ['fa-solid fa-book'],
16+
h1:['fa-regular fa-1'],
17+
h2:['fa-regular fa-2'],
18+
h3:['fa-regular fa-3'],
19+
h4:['fa-regular fa-4'],
20+
h5:['fa-regular fa-5'],
21+
h6:['fa-regular fa-6'],
1322
}
1423

24+
1525
export default icons

test/jest/__tests__/openProject.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("Test Suite for Image Upload", () => {
2828
const App = {}
2929
const app = createApp(App);
3030
app.use(Quasar, Vuex, { components });
31-
const payload = {"icons":{"div":"far fa-square fa-lg","button":"fas fa-toggle-off fa-lg","form":"fab fa-wpforms fa-lg","img":"far fa-image fa-lg","link":"fas fa-link fa-lg","list":"fas fa-circle fa-lg","paragraph":"fas fa-paragraph fa-lg","list-ol":"fas fa-list-ol fa-lg","list-ul":"fas fa-list-ul fa-lg","input":"fas fa-pen fa-lg","navbar":"fas fa-window-maximize fa-lg"},
31+
const payload = {"icons":{"div":"far fa-square fa-lg","button":"fas fa-toggle-off fa-lg","form":"fab fa-wpforms fa-lg","img":"far fa-image fa-lg","link":"fas fa-link fa-lg","list":"fas fa-circle fa-lg","paragraph":"fas fa-paragraph fa-lg","list-ol":"fas fa-list-ol fa-lg","list-ul":"fas fa-list-ul fa-lg","input":"fas fa-pen fa-lg","navbar":"fas fa-window-maximize fa-lg", "unicorn":"fa-duotone fa-alicorn"},
3232
"htmlElementMap":{"div":["<div>","</div>"],"button":["<button>","</button>"],"form":["<form>","</form>"],"img":["<img>",""],"link":["<a href=\"#\"/>",""],"list":["<li>","</li>"],"paragraph":["<p>","</p>"],"list-ol":["<ol>","</ol>"],"list-ul":["<ul>","</ul>"],"input":["<input />",""],"navbar":["<nav>","</nav>"]},
3333
"componentMap":{"App":{"componentName":"App","children":["HomeView","b"],"htmlList":[]},
3434
"HomeView":{"componentName":"HomeView","children":["a"],"htmlList":[]},

0 commit comments

Comments
 (0)