Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #8

Merged
merged 22 commits into from
Jul 28, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b1e3936
chore: Add GitHub link to HelloWorld.vue component
nilgaar Jul 20, 2024
35528f6
feat: Add GitHub Actions workflow to build and deploy frontend
nilgaar Jul 23, 2024
cf91be7
chore: Remove unnecessary pull_request trigger in build_backend.yml
nilgaar Jul 23, 2024
ba7d803
chore: Update build_frontend.yml to remove unnecessary pull_request t…
nilgaar Jul 23, 2024
e2d9aef
chore: Update build_frontend.yml to include environment variables for…
nilgaar Jul 23, 2024
e1f07b4
chore: Update build_frontend.yml to include environment variables for…
nilgaar Jul 23, 2024
04c2135
chore: Update build_frontend.yml to include environment variables for…
nilgaar Jul 23, 2024
88e03b7
chore: Update build_frontend.yml to include pull_request trigger for …
nilgaar Jul 23, 2024
2553f51
chore: Update build_frontend.yml to include "develop" branch in push …
nilgaar Jul 23, 2024
0baabc9
Merge branch 'main' into develop
nilgaar Jul 23, 2024
7051749
Merge branch 'feature/build_frontend' into develop
nilgaar Jul 23, 2024
a6f7981
chore: Update build_frontend.yml to fix directory path in SSH command
nilgaar Jul 23, 2024
cdcefe4
chore: Update build_frontend.yml to fix directory path in SSH command
nilgaar Jul 23, 2024
4f013b0
chore: Update build_frontend.yml to fix directory path in SSH command
nilgaar Jul 23, 2024
38bd580
chore: Update build_frontend.yml to fix directory path in SSH command
nilgaar Jul 23, 2024
c7e8b70
refactor: Update HelloWorld.vue component to improve layout and styling
nilgaar Jul 27, 2024
85a1fff
refactor: Improve layout and styling of HelloWorld.vue component
nilgaar Jul 27, 2024
634851d
Merge branch 'main' into develop
nilgaar Jul 27, 2024
0d54fe6
refactor: Remove console.log statement in HelloWorld.vue component
nilgaar Jul 27, 2024
0ed274c
Merge remote-tracking branch 'origin/main' into develop
nilgaar Jul 27, 2024
d711b7b
Merge branch 'develop' of https://github.com/nilgaar/PassCheck into d…
nilgaar Jul 27, 2024
8b440af
refactor: Add loading indicator to password check in HelloWorld.vue c…
nilgaar Jul 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions frontend/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
<v-btn color="primary" class="mt-3" type="submit">Check Password</v-btn>
</v-form>

<v-overlay opacity=".12" scrim="primary" :value="true"></v-overlay>
<v-overlay :value="loading">
<v-progress-circular indeterminate color="primary"></v-progress-circular>
</v-overlay>
</v-card>
</v-col>

Expand All @@ -48,30 +50,31 @@
</v-container>
</template>


<script setup lang="ts">
import { ref } from "vue";
import { sha3_512 } from "js-sha3";

const password = ref("");
const files = ref([]);
const loading = ref(false);

async function hashPassword() {
loading.value = true;
const hashedPassword = sha3_512(password.value);
console.log(hashedPassword);
fetch("https://api.checker.pops.cafe?hash=" + hashedPassword)
.then((response) => response.json())
.then((data) => {
files.value = data.data.split(', ').sort().map((file: string) => file.trim());
loading.value = false;
})
.catch((error) => {
console.error("Error:", error);
loading.value = false;
});
}
</script>

<style scoped>
/* Base text styling for white appearance */
.text-caption,
.headline,
p,
Expand All @@ -85,7 +88,7 @@ h2,
margin-top: 12px;
}

/* Responsive settings for better readability */

@media (max-width: 600px) {

.headline,
Expand All @@ -94,4 +97,4 @@ h2,
font-size: smaller;
}
}
</style>
</style>
Loading