Skip to content

Commit

Permalink
Install fontawesome package
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinDossoki committed Feb 9, 2023
1 parent c7ddd01 commit 8a524a7
Show file tree
Hide file tree
Showing 22 changed files with 204 additions and 162 deletions.
72 changes: 72 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"tauri": "tauri"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.3.0",
"@fortawesome/free-solid-svg-icons": "^6.3.0",
"@fortawesome/vue-fontawesome": "^3.0.3",
"@tauri-apps/api": "^1.1.0",
"@vueuse/core": "^9.12.0",
"flowbite": "^1.6.3",
Expand Down
6 changes: 0 additions & 6 deletions src/assets/fontawesome-free-6.2.1-web/css/all.min.css

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/fontawesome-free-6.2.1-web/css/brands.min.css

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/fontawesome-free-6.2.1-web/css/fontawesome.min.css

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/fontawesome-free-6.2.1-web/css/regular.min.css

This file was deleted.

6 changes: 0 additions & 6 deletions src/assets/fontawesome-free-6.2.1-web/css/solid.min.css

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
90 changes: 45 additions & 45 deletions src/components/AppFooter.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<template>


<footer
class="flex fixed bottom-0 left-0 z-20 w-full p-4 bg-white border-t border-gray-200 shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600">
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2022 <a target="_blank"
href="https://www.linkedin.com/in/husseindossoki/" class="hover:underline">Hussein Dossoki</a>. All
Rights
Reserved.
</span>
<footer
class="flex fixed bottom-0 left-0 z-20 w-full p-4 bg-white border-t border-gray-200 shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600">
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2022 <a target="_blank"
href="https://www.linkedin.com/in/husseindossoki/" class="hover:underline">Hussein Dossoki</a>. All
Rights
Reserved.
</span>

<div class="ml-auto">
<input type="checkbox" class="checkbox" id="theme-checkbox" @change="toggleDark(); checkBackground()">
<label for="theme-checkbox" class="checkbox-label">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
<span class="ball"></span>
</label>
</div>
<div class="ml-auto">
<input type="checkbox" class="checkbox" id="theme-checkbox" @change="toggleDark(); checkBackground()">
<label for="theme-checkbox" class="checkbox-label">
<font-awesome-icon icon="fa-solid fa-sun" />
<font-awesome-icon icon="fa-solid fa-moon" />
<span class="ball"></span>
</label>
</div>

</footer>
</footer>

</template>

Expand All @@ -27,55 +27,55 @@ import { useDark, useToggle } from "@vueuse/core";
const isDark = useDark();
const toggleDark = useToggle(isDark);
function checkBackground() {
console.log(document.documentElement.classList.contains('dark'));
if (!document.documentElement.classList.contains('dark')) {
document.body.style.backgroundColor = '#1F2937'; // OR #1F2937, #0d1117
} else {
document.body.style.backgroundColor = '#fff';
}
console.log(document.documentElement.classList.contains('dark'));
if (!document.documentElement.classList.contains('dark')) {
document.body.style.backgroundColor = '#1F2937'; // OR #1F2937, #0d1117
} else {
document.body.style.backgroundColor = '#fff';
}
}
</script>

<style scoped>
.checkbox {
opacity: 0;
position: absolute;
opacity: 0;
position: absolute;
}
.checkbox-label {
background-color: #111;
width: 50px;
height: 26px;
border-radius: 50px;
position: relative;
padding: 5px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #111;
width: 50px;
height: 26px;
border-radius: 50px;
position: relative;
padding: 5px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
.fa-moon {
color: #f1c40f;
color: #f1c40f;
}
.fa-sun {
color: #f39c12;
color: #f39c12;
}
.checkbox-label .ball {
background-color: #fff;
width: 22px;
height: 22px;
position: absolute;
left: 2px;
top: 2px;
border-radius: 50%;
transition: transform 0.2s linear;
background-color: #fff;
width: 22px;
height: 22px;
position: absolute;
left: 2px;
top: 2px;
border-radius: 50%;
transition: transform 0.2s linear;
}
.checkbox:checked+.checkbox-label .ball {
transform: translateX(24px);
transform: translateX(24px);
}
</style>
73 changes: 32 additions & 41 deletions src/components/AzureToAzure/AzureToAzure.vue
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
<template>


<ol
class="mb-5 mt-5 flex items-center w-full text-sm font-medium text-center text-gray-500 dark:text-gray-400 sm:text-base">
<li
class="flex md:w-full items-center text-blue-600 dark:text-blue-500 sm:after:content-[''] after:w-full after:h-1 after:border-b after:border-gray-200 after:border-1 after:hidden sm:after:inline-block after:mx-6 xl:after:mx-10 dark:after:border-gray-700">
<li :class="{ 'text-blue-600 dark:text-blue-500 active': azureToAzureStore.currentStep == 1 }"
class="flex md:w-full items-center sm:after:content-[''] after:w-full after:h-1 after:border-b after:border-gray-200 after:border-1 after:hidden sm:after:inline-block after:mx-6 xl:after:mx-10 dark:after:border-gray-700">
<span
class="flex items-center after:content-['/'] sm:after:hidden after:mx-2 after:font-light after:text-gray-200 dark:after:text-gray-500">
<svg aria-hidden="true" class="w-4 h-4 mr-2 sm:w-5 sm:h-5" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
clip-rule="evenodd"></path>
</svg>
<span style="width: max-content;">Git Credential</span>
<span
class="title flex items-center after:content-['/'] sm:after:hidden after:mx-2 after:font-light after:text-gray-200 dark:after:text-gray-500">
<span class="mr-2">(1)</span>
<span style="width: max-content;">Git Credential</span>
</span>
</span>
</li>
<li
<li :class="{ 'text-blue-600 dark:text-blue-500 active': azureToAzureStore.currentStep == 2 }"
class="flex md:w-full items-center after:content-[''] after:w-full after:h-1 after:border-b after:border-gray-200 after:border-1 after:hidden sm:after:inline-block after:mx-6 xl:after:mx-10 dark:after:border-gray-700">
<span
class="flex items-center after:content-['/'] sm:after:hidden after:mx-2 after:font-light after:text-gray-200 dark:after:text-gray-500">
<span class="mr-2">2</span>
class="title flex items-center after:content-['/'] sm:after:hidden after:mx-2 after:font-light after:text-gray-200 dark:after:text-gray-500">
<span class="mr-2">(2)</span>
Projects
</span>
</li>
<li class="flex items-center">
<span class="mr-2">3</span>
Submit
<li class="flex items-center"
:class="{ 'text-blue-600 dark:text-blue-500 active': azureToAzureStore.currentStep == 3 }">
<span class="title">
<span class="mr-2">(3)</span>
Submit
</span>
</li>
</ol>


<StepOne v-if="azureToAzureStore.currentStep == 1" />
<StepTwo v-if="azureToAzureStore.currentStep == 2" />
<StepThree v-if="azureToAzureStore.currentStep == 3" />
Expand All @@ -46,8 +45,16 @@
@click="azureToAzureStore.prev()" :disabled="azureToAzureStore.stillInrogress"
:class="{ 'bg-blue-400 dark:bg-blue-500 cursor-not-allowed': azureToAzureStore.stillInrogress, 'hover:bg-blue-800': !azureToAzureStore.stillInrogress }"
class="mx-3 text-white bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
<font-awesome-icon icon="fa-solid fa-chevron-left" class="mr-2" />
Previous
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 73.4-73.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-128 128z"/></svg>
</button>

<button type="button" v-if="azureToAzureStore.currentStep == 3" @click="azureToAzureStore.submit()"
:disabled="azureToAzureStore.stillInrogress"
:class="{ 'bg-blue-400 dark:bg-blue-500 cursor-not-allowed': !azureToAzureStore.isCurrentStepValid, 'hover:bg-blue-800': azureToAzureStore.isCurrentStepValid }"
class="mx-3 text-white bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
Submit
<font-awesome-icon icon="fa-solid fa-rocket" class="ml-2" />
</button>

<button type="button" v-if="azureToAzureStore.currentStep == 1 || azureToAzureStore.currentStep == 2"
Expand All @@ -56,32 +63,10 @@
class="mx-3 text-white bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
Next <span v-if="azureToAzureStore.currentStep == 2">
({{ azureToAzureStore?.selectedProjectsCount }} projects)</span>
<svg aria-hidden="true" class="w-5 h-5 ml-2 -mr-1" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
<font-awesome-icon icon="fa-solid fa-chevron-right" class="ml-2" />
</button>
</div>

<div class="row mt-4">
<div class="text-center col-12">

<button class="btn btn-secondary mx-3"
v-if="azureToAzureStore.currentStep == 2 || azureToAzureStore.currentStep == 3"
@click="azureToAzureStore.prev()" :disabled="azureToAzureStore.stillInrogress">Previous</button>
<button class="btn btn-primary mx-3"
v-if="azureToAzureStore.currentStep == 1 || azureToAzureStore.currentStep == 2"
@click="azureToAzureStore.next()" :disabled="!azureToAzureStore.isCurrentStepValid">next
<span v-if="azureToAzureStore.currentStep == 2">
({{ azureToAzureStore?.selectedProjectsCount }} projects)</span>
</button>
<button class="btn btn-success mx-3" v-if="azureToAzureStore.currentStep == 3" @click="azureToAzureStore.submit()"
:disabled="azureToAzureStore.stillInrogress">Submit</button>
</div>
</div>

<Spinner :msg="'loading...'" :show="azureToAzureStore.loading" />
</template>

Expand All @@ -100,4 +85,10 @@ const azureToAzureStore = useAzureToAzureStore();
ol li {
width: 33.3% !important;
}
ol li.active .title {
background-color: rgba(110, 95, 95, 0.15);
padding: 15px;
border-radius: 1px;
}
</style>
Loading

0 comments on commit 8a524a7

Please sign in to comment.