Skip to content

Commit

Permalink
Improve UI/UX style
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Jun 22, 2024
1 parent 2d755e3 commit e2891ff
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 34 deletions.
2 changes: 1 addition & 1 deletion assets/vendor/manager/dist/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/vendor/manager/dist/index.html

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions assets/vendor/manager/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/vendor/manager/index.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/vendor/manager/src/assets/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
}
}

.astroid-footer-links {
font-size: 0.897rem;
img {
max-width: 30px;
}
}

@for $i from 6 through 12 {
.order-#{$i} {
order: #{$i} !important;
Expand Down
5 changes: 2 additions & 3 deletions assets/vendor/manager/src/components/Heading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ watch(switcher, (newValue) => {
})
const social_menu = [
{title: 'Astroid Website', href: props.config.astroid_lib.astroid_link, icon: 'fas fa-meteor'},
{title: 'Docs', href: props.config.astroid_lib.document_link, icon: 'fas fa-book'},
{title: 'GitHub', href: props.config.astroid_lib.github_link, icon: 'fab fa-github'},
{title: 'Videos Tutorial', href: props.config.astroid_lib.video_tutorial, icon: 'fab fa-youtube'},
{title: 'Astroid Website', href: props.config.astroid_lib.astroid_link, icon: 'fas fa-meteor'},
{title: 'Buy Me a Coffee', href: props.config.astroid_lib.donate_link, icon: 'fa-solid fa-mug-saucer'}
]
function submitForm() {
const action_link = props.config.astroid_lib.astroid_action.replace(/\&amp\;/g, '&');
const toastAstroidMsg = document.getElementById('astroidMessage');
Expand Down
8 changes: 7 additions & 1 deletion assets/vendor/manager/src/components/Main.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import { onBeforeMount, ref, reactive } from 'vue';
import { onBeforeMount, ref, reactive, inject } from 'vue';
import axios from "axios";
import Fields from './helpers/Fields.vue'
Expand All @@ -11,6 +11,7 @@ const props = defineProps({
const $scope = ref(new Object());
const astroidcontentlayouts = ref(new Object());
const constant = inject('constant', {});
let action_link = '';
onBeforeMount(() => {
Expand Down Expand Up @@ -180,6 +181,11 @@ function selectPreset(event, group) {
</div>
</div>
</form>
<nav class="nav justify-content-center mb-3 astroid-footer-links">
<a class="nav-link d-inline-flex align-items-center" href="https://ko-fi.com/astroidframework" data-bs-toggle="tooltip" data-bs-title="Buy Me a Coffee" target="_blank"><img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Buy Me a Coffee" class="me-2">Support Astroid with $10</a>
<a class="nav-link" :href="constant.astroid_link" data-bs-toggle="tooltip" data-bs-title="Go to Astroid Framework" target="_blank">Astroid Framework</a>
<a class="nav-link" :href="constant.document_link" data-bs-toggle="tooltip" data-bs-title="Go to Documentation" target="_blank">Documentation</a>
</nav>
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="loadGroupPreset" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
Expand Down
3 changes: 1 addition & 2 deletions assets/vendor/manager/src/components/helpers/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const language = inject('language', []);
onBeforeMount(()=>{
layout.value = props.field.input.value;
form_template.value = constant.form_template;
if (typeof layout.value.devices === 'undefined') {
layout.value.devices = [
{ "code": "lg", "icon": "fa-solid fa-computer", "title": "Large Device" },
Expand All @@ -42,8 +43,6 @@ onBeforeMount(()=>{
// handle error
console.log(error);
});
} else {
form_template.value = constant.form_template;
}
})
onUpdated(()=>{
Expand Down
4 changes: 3 additions & 1 deletion assets/vendor/manager/src/components/helpers/SubLayouts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ function editLayout(filename = '') {
formInfo.desc = response.data.data.desc;
formInfo.thumbnail = response.data.data.thumbnail;
formInfo.name = filename;
editItem.value = true;
}
})
.catch((err) => {
console.error(err);
});
} else {
editItem.value = true;
}
editItem.value = true;
}
function onFileChange(e) {
Expand Down

0 comments on commit e2891ff

Please sign in to comment.