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

fix: add missing country id and emits declaration to pass linting #5601

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions src/components/15Years/15YearsHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const countryQuery = gql`query featuredCountry {
lend {
countryFacets {
country {
id
name
numLoansFundraising
fundsLentInCountry
Expand Down
1 change: 1 addition & 0 deletions src/components/BorrowerProfile/BorrowerCountry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default {
latitude
longitude
country {
id
geocode {
latitude
longitude
Expand Down
2 changes: 2 additions & 0 deletions src/components/BorrowerProfile/CountryInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export default {
latitude
longitude
country {
id
numLoansFundraising
ppp
isoCode
Expand All @@ -149,6 +150,7 @@ export default {
}
countryFacets {
country {
id
isoCode
region
}
Expand Down
1 change: 1 addition & 0 deletions src/components/BorrowerProfile/HeroBackground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default {
city
state
country {
id
isoCode
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/BorrowerProfile/ShareButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default {
};
},
inject: ['apollo', 'cookieStore'],
emits: ['lightbox-closed'],
props: {
lender: {
type: Object,
Expand Down
1 change: 1 addition & 0 deletions src/components/BorrowerProfile/SummaryCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const mountQuery = gql`
city
state
country {
id
name
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Categories/LoanSpotlight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const spotlightLoanQuery = gql`
geocode {
city
country {
id
name
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Checkout/DepositIncentiveUpsell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const upsellLoansQuery = gql`query upsellLoansQuery(
name
geocode {
country {
id
name
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ const filterOptionsQuery = gql`
lend {
countryFacets {
country {
id
isoCode
name
numLoansFundraising
Expand Down
1 change: 1 addition & 0 deletions src/components/Kv/KvSocialShareButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default {
KvLightbox,
KvMaterialIcon
},
emits: ['lightbox-closed'],
props: {
/**
* Title in the pop up modal
Expand Down
1 change: 1 addition & 0 deletions src/components/LoanCards/NewHomePageLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
distributionModel
geocode {
country {
id
name
}
}
Expand All @@ -180,7 +181,7 @@

const loanCardQuery = gql`
${loanFieldsFragment}
query welcomeLoanCard($loanId: Int!, $publicId: String!) {

Check warning on line 184 in src/components/LoanCards/NewHomePageLoanCard.vue

View workflow job for this annotation

GitHub Actions / build

Variable "$publicId" is never used in operation "welcomeLoanCard"
lend {
loan(id: $loanId) {
id
Expand Down
1 change: 1 addition & 0 deletions src/components/LoanCards/RecommendedLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const loanQuery = gql`query recLoanCard($basketId: String, $loanId: Int!) {
id
geocode {
country {
id
name
isoCode
}
Expand Down
1 change: 1 addition & 0 deletions src/components/WwwFrame/LendMenu/TheLendMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default {
countryFacets {
count
country {
id
name
region
isoCode
Expand Down
1 change: 1 addition & 0 deletions src/graphql/fragments/loanCardFields.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fragment loanCardFields on LoanBasic {
# state is used for US loans on LoanChannelCategoryPage
state
country {
id
isoCode
name
region
Expand Down
3 changes: 2 additions & 1 deletion src/graphql/fragments/loanCardFieldsExtended.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fragment loanCardFieldsExtended on LoanBasic {
# state is used for US loans on LoanChannelCategoryPage
state
country {
id
isoCode
name
region
Expand Down Expand Up @@ -62,7 +63,7 @@ fragment loanCardFieldsExtended on LoanBasic {
unreservedAmount @client
fundraisingPercent @client
fundraisingTimeLeft @client

... on LoanPartner {
partnerName
themes
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/autolending/countryList.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ query countryList {
lend {
countryFacets {
country {
id
name
region
isoCode
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/basketLoansInfo.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ query basketLoansInfo(
city
state
country {
id
name
isoCode
}
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/checkout/initializeCheckout.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ query initializeCheckout($basketId: String) {
}
geocode {
country {
id
name
isoCode
}
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/checkout/shopBasketUpdate.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ query shopBasketUpdate($basketId: String) {
}
geocode {
country {
id
name
isoCode
}
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/query/countriesNotLentTo.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ query countriesNotLentTo {
lend {
countryFacets {
country {
id
isoCode
name
region
Expand All @@ -13,6 +14,7 @@ query countriesNotLentTo {
lendingStats {
id
countriesLentTo {
id
isoCode
}
}
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/countryList.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ query countryList {
lend {
countryFacets {
country {
id
name
region
isoCode
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/lenderStats.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ query LenderStats ($publicId: String!) {
id
loanCount
country {
id
name
numLoansFundraising
geocode {
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/query/loanDetails.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ query loanDetails(
repaymentInterval
geocode {
country {
id
name
}
}
Expand All @@ -27,6 +28,7 @@ query loanDetails(
riskRating
currencyExchangeLossRate
countries {
id
ppp
fundsLentInCountry
numLoansFundraising
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/query/loanFacetsQuery.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ query loanFacets {
lend {
countryFacets {
country {
id
name
region
isoCode
Expand Down Expand Up @@ -31,6 +32,7 @@ query loanFacets {
id
name
countries {
id
region
}
}
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/myKiva.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ query myKivaQuery {
city
state
country {
id
name
isoCode
region
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/query/myLendingStats.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ query myLendingStats {
lendingStats {
id
countriesLentTo {
id
isoCode
name
}
Expand All @@ -28,6 +29,7 @@ query myLendingStats {
countryFacets {
count
country {
id
name
region
isoCode
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/thanksPage.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ query checkoutReceipt($checkoutId: Int!, $visitorId: String) {
geocode {
city
country {
id
name
isoCode
region
Expand Down
2 changes: 2 additions & 0 deletions src/pages/BorrowerProfile/BorrowerProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ const preFetchQuery = gql`
city
state
country {
id
name
isoCode
region
Expand Down Expand Up @@ -289,6 +290,7 @@ const mountedQuery = gql`
partner {
id
countries {
id
name
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/GetStarted/GetStartedPlaces.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ const lendingPreferencesPlaces = gql`query lendingPreferences($visitorId: String
id
countries {
values {
id
isoCode
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/GetStarted/GetStartedResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export default {
}
countries {
values {
id
isoCode
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/InstantActions/ProcessInstantLending.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const processInstantLendingContent = gql`query instantLendingContent($loanId: In
city
state
country {
id
name
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/LandingPages/CorporateCampaign/CCLandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ const basketItemsQuery = gql`query basketItemsQuery(
}
geocode {
country {
id
name
isoCode
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/Portfolio/ImpactDashboard/DistributionGraphs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default {
id
loanCount
country {
id
name
}
}
Expand Down
Loading