-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add home page #1021
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
Draft
tmilost
wants to merge
16
commits into
master
Choose a base branch
from
feat/home_page
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: add home page #1021
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4b00161
feat: rename login page component
tmilost 745120a
feat: add ui big button
tmilost d31365c
feat: discovery service api
tmilost 28aef4c
feat: add home page component
tmilost 85ab482
fix: login page import
tmilost bbbfeb0
feat: visual update
tmilost e199d94
fix: Headings must have content and the content must be accessible by…
tmilost bf69f71
feat: add support big button
tmilost 7a3ffeb
feat: styling
tmilost f6e5d75
fix: loading stuck
tmilost 7921e38
fix: styling rows
tmilost 187e734
fix: code smell
tmilost d1cbaf5
fix: remove unused margin
tmilost 8f86dfe
fix: show see more on homepage only if there are negotiations
tmilost dbe955f
fix: change text
tmilost 6f9b9df
Merge branch 'master' into feat/home_page
konradlang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <template> | ||
| <div class="big-home-button"> | ||
| <button class="btn panel-button d-flex flex-row align-items-center rounded-4 me-4 mt-2 px-4"> | ||
| <div v-if="buttonIcon" class="my-1"> | ||
| <i class="bi me-2 my-0 h4" :class="[buttonIcon]"></i> | ||
| </div> | ||
| <h4 v-if="buttonText" class="my-0 fw-bold">{{ buttonText }}</h4> | ||
| </button> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| defineProps({ | ||
| buttonIcon: { | ||
| type: String, | ||
| required: false, | ||
| default: '', | ||
| }, | ||
| buttonText: { | ||
| type: String, | ||
| required: false, | ||
| default: '', | ||
| }, | ||
| }) | ||
| </script> | ||
|
|
||
| <style scoped> | ||
| .panel-button { | ||
| background-color: #f8f8f8; | ||
|
stetsche marked this conversation as resolved.
|
||
| } | ||
| .panel-button:hover, | ||
| .panel-button:focus { | ||
| background: #3d3d3d; | ||
| color: #fff; | ||
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); | ||
| outline: none; | ||
| } | ||
| </style> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import { defineStore } from 'pinia' | ||
| import axios from 'axios' | ||
| import { apiPaths, getBearerHeaders } from '../config/apiPaths' | ||
| import { useNotificationsStore } from './notifications' | ||
|
|
||
| export const useDiscoveryServicesStore = defineStore('discoveryServices', () => { | ||
| const notifications = useNotificationsStore() | ||
|
|
||
| async function retrieveDiscoveryServices() { | ||
| return await axios | ||
| .get(`${apiPaths.DISCOVERY_SERVICES}`, { headers: getBearerHeaders() }) | ||
| .then((response) => { | ||
| return response.data | ||
| }) | ||
| .catch((error) => { | ||
| notifications.setNotification( | ||
| 'Failed to load discovery services. Please try again or contact support if the issue persists.', | ||
| 'danger', | ||
| ) | ||
| if (error.response) { | ||
| return error.response.data | ||
| } | ||
| }) | ||
| } | ||
|
|
||
| return { | ||
| retrieveDiscoveryServices, | ||
| } | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.