-
Notifications
You must be signed in to change notification settings - Fork 5
Feat/military affiliation #426
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
Merged
isabeleliassen
merged 32 commits into
csg-org:development
from
InspiringApps:feat/militar-affiliation
Jan 13, 2025
Merged
Changes from 27 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2ec7af7
init
3872d12
some military status styling
ee1cff3
start modal functioning
af5eb88
wip
16fe11e
work
ede71d8
network
0f31020
style
726f81e
work
caa4e6f
work
5a30197
Merge branch 'development' into feat/militar-affiliation
ab46e79
work
33c036c
working upload
069df91
mostly done
3ea127d
full basic functionality
d953253
work
1f5ec7e
merge
cbf12d5
check user military status
3767b74
fix multi-line label radio-group
1123a61
model tests
ceda142
work
3de6867
mock api and form feedback
c05a916
style tweaks
2308234
finish tests
63805e9
finish ui
284d627
handle warnings
461ca46
fix build warnings
5abf182
linter issue
e3f85c9
pr fixes
4217dda
fix validation message
eb430fb
pr fixes
832a294
file name change
c2cec5b
pr fixes
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
37 changes: 37 additions & 0 deletions
37
webroot/src/components/MilitaryDocumentRow/MilitaryDocumentRow.less
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,37 @@ | ||
// | ||
// MilitaryDocumentRow.less | ||
// InspiringApps modules | ||
// | ||
// Created by InspiringApps on 4/30/2021. | ||
// | ||
|
||
.example-row { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0.8rem 0; | ||
border-bottom: 0.1rem solid @midGrey; | ||
|
||
@media @tabletWidth { | ||
flex-direction: row; | ||
} | ||
|
||
.cell { | ||
flex-basis: 0; | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
color: @veryDarkGrey; | ||
|
||
&.is-header { | ||
display: none; | ||
font-weight: @fontWeightBold; | ||
|
||
@media @tabletWidth { | ||
display: flex; | ||
} | ||
} | ||
|
||
.cell-title { | ||
font-weight: @fontWeightBold; | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
webroot/src/components/MilitaryDocumentRow/MilitaryDocumentRow.spec.ts
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,23 @@ | ||
// | ||
// MilitaryDocumentRow.spec.ts | ||
// InspiringApps modules | ||
// | ||
// Created by InspiringApps on 4/30/2021. | ||
// | ||
|
||
import { expect } from 'chai'; | ||
import { mountShallow } from '@tests/helpers/setup'; | ||
import MilitaryDocumentRow from '@components/MilitaryDocumentRow/MilitaryDocumentRow.vue'; | ||
|
||
describe('MilitaryDocumentRow component', async () => { | ||
it('should mount the component', async () => { | ||
const wrapper = await mountShallow(MilitaryDocumentRow, { | ||
props: { | ||
item: {}, | ||
} | ||
}); | ||
|
||
expect(wrapper.exists()).to.equal(true); | ||
expect(wrapper.findComponent(MilitaryDocumentRow).exists()).to.equal(true); | ||
}); | ||
}); |
14 changes: 14 additions & 0 deletions
14
webroot/src/components/MilitaryDocumentRow/MilitaryDocumentRow.ts
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,14 @@ | ||
// | ||
// MilitaryDocumentRow.ts | ||
// InspiringApps modules | ||
// | ||
// Created by InspiringApps on 4/30/2021. | ||
// | ||
|
||
import { Component, Prop, Vue } from 'vue-facing-decorator'; | ||
|
||
@Component | ||
export default class MilitaryDocumentRow extends Vue { | ||
@Prop({ required: true }) item!: any; | ||
@Prop({ default: false }) isHeaderRow?: boolean; | ||
} |
22 changes: 22 additions & 0 deletions
22
webroot/src/components/MilitaryDocumentRow/MilitaryDocumentRow.vue
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,22 @@ | ||
<!-- | ||
MilitaryDocumentRow.vue | ||
InspiringApps modules | ||
|
||
Created by InspiringApps on 4/30/2021. | ||
--> | ||
|
||
<template> | ||
<li class="example-row"> | ||
<div class="cell name" :class="{ 'is-header': isHeaderRow }"> | ||
<span v-if="$matches.phone.only" class="cell-title">{{ $t('military.fileName') }}:</span> | ||
{{ item.name }} | ||
</div> | ||
<div class="cell size" :class="{ 'is-header': isHeaderRow }"> | ||
<span v-if="$matches.phone.only" class="cell-title">{{ $t('military.dateUploaded') }}:</span> | ||
{{ item.date }} | ||
ChiefStief marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
</li> | ||
</template> | ||
|
||
<script lang="ts" src="./MilitaryDocumentRow.ts"></script> | ||
<style scoped lang="less" src="./MilitaryDocumentRow.less"></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
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.