Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

chore(deps-dev): bump prettier from 2.8.8 to 3.1.1 #3603

Merged
merged 3 commits into from
Jan 2, 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
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/provider-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ body:
label: Where is the issue?
description: Where is the code/text that needs change/update?
options:
- Install instruction
- qiskit.org - Transpile
- qiskit.org - Sample a Bell State
- qiskit.org - Run VQE
- Other (include where in the next field)
- Install instruction
- qiskit.org - Transpile
- qiskit.org - Sample a Bell State
- qiskit.org - Run VQE
- Other (include where in the next field)
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/brokenlink-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://qiskit.org
cmd_params: "--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --exclude=\"(https://qiskit.org/documentation|https://qiskit.org/ecosystem/.*|https://medium.com/Qiskit|https://qiskit.org/cdn-cgi/l/email-protection)\" --timeout=60"
cmd_params: '--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --exclude="(https://qiskit.org/documentation|https://qiskit.org/ecosystem/.*|https://medium.com/Qiskit|https://qiskit.org/cdn-cgi/l/email-protection)" --timeout=60'
2 changes: 1 addition & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_CATEGORY: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_CATEGORY }}
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_INSTANCE_ID: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_INSTANCE_ID }}
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_KEY: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_KEY_STAGING }}
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ENABLED: 'true'
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ENABLED: "true"
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE }}
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE_TYPE: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE_TYPE }}
NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_TITLE: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_TITLE }}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Qiskit is an open-source quantum computing software development framework for le
- [🚀 Get Up and Running](#-get-up-and-running)
- [💻 Technology Used](#-technology-used)
- [🏭 Content Generation](#-content-generation)
- [🥸 Mocking content](#-mocking-content)
- [🥸 Mocking content](#-mocking-content)
- [🏷️ Naming Conventions](#️-naming-conventions)
- [Nuxt Components](#nuxt-components)
- [✏️ How to Contribute](#️-how-to-contribute)
Expand All @@ -69,9 +69,9 @@ Qiskit is an open-source quantum computing software development framework for le

3. **Create an .env file**

```shell
cp .env.example .env
```
```shell
cp .env.example .env
```

4. **Run a local server with hot reload at [localhost:3000](localhost:3000)**

Expand Down
4 changes: 2 additions & 2 deletions assets/scss/helpers/_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $breakpoints: sm, md, lg, xlg, max;
.hide-in-#{$breakpoint},
.hide-in-#{$breakpoint}::after {
display: block;

@include carbon.breakpoint-down($breakpoint) {
display: none !important;
}
Expand All @@ -28,4 +28,4 @@ $breakpoints: sm, md, lg, xlg, max;
display: none;
}
}
}
}
2 changes: 1 addition & 1 deletion assets/scss/helpers/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@forward "./variables";
@forward "./functions";
@forward "./mixins";
@forward "./mixins";
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const filteredAdvocates = computed(() => {
return noRegionFilters
? advocates
: advocates.filter((advocate) =>
regionFilters.value.includes(advocate.region)
regionFilters.value.includes(advocate.region),
);
});

Expand All @@ -104,7 +104,7 @@ const isRegionFilterChecked = (filterValue: string): boolean =>

function updateRegionFilter(option: string, isChecked: boolean) {
const filteredRegionFilters = regionFilters.value.filter(
(oldOption) => oldOption !== option
(oldOption) => oldOption !== option,
);

if (isChecked) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const props = withDefaults(defineProps<Props>(), {
const formattedRegion = computed(() => (props.region ? [props.region] : []));

const location = computed(() =>
[props.city, props.country].filter((e) => !!e).join(", ")
[props.city, props.country].filter((e) => !!e).join(", "),
);
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ useSchemaOrg([
url: `${config.public.siteUrl}/fall-fest`,
name: event.title,
image: event.image,
})
}),
),
itemListOrder: "Ascending",
numberOfItems: sortedEvents.length,
Expand Down
9 changes: 6 additions & 3 deletions components/Home/LeadSpace/HomeLeadSpaceBackgroundGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const positions = computed<CellSpecification[][]>(() =>
}

return generateRows();
})()
)
})(),
),
);

function getPosId(pos: CellSpecification): string {
Expand Down Expand Up @@ -185,7 +185,10 @@ function getRowId(index: number): string {
height: $large-cell - 1px;
background-color: white;
box-sizing: content-box;
transition: transform 300ms ease-in, opacity 300ms, border-radius 300ms;
transition:
transform 300ms ease-in,
opacity 300ms,
border-radius 300ms;

@include carbon.breakpoint-down(lg) {
width: $medium-cell - 1px;
Expand Down
3 changes: 2 additions & 1 deletion components/Ui/UiCodeSnippet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ function copyToClipboard(e: { target: any }) {

&:focus {
border-color: qiskit.$button-background-color-light;
box-shadow: inset 0 0 0 1px qiskit.$button-background-color-light,
box-shadow:
inset 0 0 0 1px qiskit.$button-background-color-light,
inset 0 0 0 2px carbon.$white-0;
}

Expand Down
4 changes: 3 additions & 1 deletion components/Ui/UiCta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ const iconPerLinkType = computed(() => {

background-size: 200% 100%;
background-position-x: 100%;
transition: background-position-x 0.3s ease-out, color 0.3s ease-out;
transition:
background-position-x 0.3s ease-out,
color 0.3s ease-out;

&_wider {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion composables/useScrollBetweenSections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function useScrollBetweenSections(): UseScrollBetweenSections {
function onSectionAppearing(
entries:
| Array<IntersectionObserverEntryWithId>
| IntersectionObserverEntry[]
| IntersectionObserverEntry[],
) {
let highestTopValue = Infinity;
(entries as Array<IntersectionObserverEntryWithId>).forEach((entry) => {
Expand Down
10 changes: 5 additions & 5 deletions composables/useSegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function configureAnalytics(
productCode: string,
productCodeType: string,
productTitle: string,
UT30: string
UT30: string,
) {
window._analytics = {
segment_key: key,
Expand Down Expand Up @@ -98,7 +98,7 @@ function installAnalytics(url: string) {
function trackPage(
context: AnalyticsContext,
routeName: string,
title: string
title: string,
) {
const runtimeConfig = useRuntimeConfig();
const { bluemixAnalytics, digitalData } = context;
Expand Down Expand Up @@ -133,7 +133,7 @@ function trackPage(
function trackClickEvent(
context: AnalyticsContext,
cta: string,
location: string
location: string,
) {
const runtimeConfig = useRuntimeConfig();
const { bluemixAnalytics, digitalData } = context;
Expand Down Expand Up @@ -194,11 +194,11 @@ export const useSegment = () => {
runtimeConfig.public.IBM_ANALYTICS_SEGMENT_PRODUCT_CODE,
runtimeConfig.public.IBM_ANALYTICS_SEGMENT_PRODUCT_CODE_TYPE,
runtimeConfig.public.IBM_ANALYTICS_SEGMENT_PRODUCT_TITLE,
runtimeConfig.public.IBM_ANALYTICS_SEGMENT_UT30
runtimeConfig.public.IBM_ANALYTICS_SEGMENT_UT30,
);

useState("analyticsReady", () =>
installAnalytics(runtimeConfig.public.IBM_ANALYTICS_SEGMENT_SCRIPT_SRC)
installAnalytics(runtimeConfig.public.IBM_ANALYTICS_SEGMENT_SCRIPT_SRC),
);
}

Expand Down
2 changes: 1 addition & 1 deletion content/fall-fest-events/fall-fest-extension-events.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
"institution": "Rice University",
"country": "United States"
}
]
]
2 changes: 1 addition & 1 deletion content/fall-fest-events/fall-fest-partner-events.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
},
"image": "/images/events/downloaded/recu4YP7eBA3IDUqB.jpg"
}
]
]
2 changes: 1 addition & 1 deletion hooks/advocate-conversion-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AdvocatesAirtableRecords extends AirtableRecords {
"Advocates",
"For website",
undefined,
recordFields
recordFields,
);
}

Expand Down
15 changes: 9 additions & 6 deletions hooks/airtable-conversion-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AirtableRecords {
tableId: string,
view: string,
id?: string,
recordFields?: Record<string, any>
recordFields?: Record<string, any>,
) {
this.apiKey = apiKey;
this.tableId = tableId;
Expand Down Expand Up @@ -93,7 +93,7 @@ class AirtableRecords {
* @returns {Promise<Record<string, string | null>>} Field names mapped to keys
*/
public getAllFieldNames(
fieldIds: Record<string, string>
fieldIds: Record<string, string>,
): Promise<Record<string, string | null>> {
const fieldNamesPromises = Object.entries(fieldIds).map(
([field, fieldId]) => {
Expand All @@ -111,13 +111,16 @@ class AirtableRecords {
console.error(`Error in setAllFieldNames: ${error}`);
return { [field]: null };
});
}
},
);

return Promise.all(fieldNamesPromises).then((results) => {
return results.reduce((acc, result) => {
return { ...acc, ...result };
}, {} as Record<string, string | null>);
return results.reduce(
(acc, result) => {
return { ...acc, ...result };
},
{} as Record<string, string | null>,
);
});
}

Expand Down
33 changes: 16 additions & 17 deletions hooks/event-conversion-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ class EventsAirtableRecords extends AirtableRecords {
constructor(
apiKey: string,
view: string,
recordFields?: Record<string, any>
recordFields?: Record<string, any>,
) {
super(
apiKey,
AIRTABLE_BASE_ID,
"Event Calendar",
view,
undefined,
recordFields
recordFields,
);
this.airtableBase = new Airtable({ apiKey: this.apiKey }).base(
AIRTABLE_BASE_ID
AIRTABLE_BASE_ID,
);
}

Expand All @@ -75,7 +75,7 @@ class EventsAirtableRecords extends AirtableRecords {
*/
private sortEventsByStartDate<T extends CommunityEvent | SeminarSeriesEvent>(
events: T[],
direction: "asc" | "desc"
direction: "asc" | "desc",
): T[] {
return events.sort((a, b) => {
const aDate = new Date(a.startDate);
Expand Down Expand Up @@ -113,7 +113,7 @@ class EventsAirtableRecords extends AirtableRecords {
*/
isEventInDateRange(
event: CommunityEvent | SeminarSeriesEvent,
days: number
days: number,
): boolean {
const { startDate, endDate } = event;
const today: Date = new Date();
Expand Down Expand Up @@ -184,12 +184,12 @@ class EventsAirtableRecords extends AirtableRecords {
}
}
nextPage();
}
},
);

const sortedCommunityEvents = this.sortEventsByStartDate(
communityEvents,
days > 0 ? "asc" : "desc"
days > 0 ? "asc" : "desc",
);
return Promise.resolve(sortedCommunityEvents);
}
Expand All @@ -212,9 +212,8 @@ class EventsAirtableRecords extends AirtableRecords {
async (records, nextPage) => {
for (const record of records) {
this.id = record.id;
const seminarSeriesEvent = await this.convertToSeminarSeriesEvent(
record
);
const seminarSeriesEvent =
await this.convertToSeminarSeriesEvent(record);

if (typeof seminarSeriesEvent.to !== "undefined") {
if (this.isEventInDateRange(seminarSeriesEvent, days)) {
Expand All @@ -223,12 +222,12 @@ class EventsAirtableRecords extends AirtableRecords {
}
}
nextPage();
}
},
);

const sortedSeminarSeriesEvents = this.sortEventsByStartDate(
seminarSeriesEvents,
days > 0 ? "asc" : "desc"
days > 0 ? "asc" : "desc",
);
return Promise.resolve(sortedSeminarSeriesEvents);
}
Expand All @@ -239,7 +238,7 @@ class EventsAirtableRecords extends AirtableRecords {
* @returns The converted CommunityEvent.
*/
async convertToCommunityEvent(
record: Record<string, any>
record: Record<string, any>,
): Promise<CommunityEvent> {
const event = {
endDate: (record.get(this.recordFields!.endDate) as string) || "",
Expand All @@ -258,7 +257,7 @@ class EventsAirtableRecords extends AirtableRecords {
image: await this.getImage(record),
startDate: this.getStartDate(record),
startDateAndTime: this.formatTime(
record.get(this.recordFields!.startDateAndTime) || null
record.get(this.recordFields!.startDateAndTime) || null,
),
types: this.getEventTypes(record),
};
Expand All @@ -271,7 +270,7 @@ class EventsAirtableRecords extends AirtableRecords {
* @returns The converted SeminarSeriesEvent.
*/
async convertToSeminarSeriesEvent(
record: Record<string, any>
record: Record<string, any>,
): Promise<SeminarSeriesEvent> {
const event = {
endDate: record.get(this.recordFields!.endDate) || "",
Expand Down Expand Up @@ -362,7 +361,7 @@ class EventsAirtableRecords extends AirtableRecords {
const valueList = (Array.isArray(value) ? value : [value]) as string[];
const communityEventTypes = this.filterWithWhitelist(
valueList,
COMMUNITY_EVENT_TYPE_OPTIONS
COMMUNITY_EVENT_TYPE_OPTIONS,
);
const noTypes = communityEventTypes.length === 0;
return noTypes ? [COMMUNITY_EVENT_TYPES.talks] : communityEventTypes;
Expand Down Expand Up @@ -411,7 +410,7 @@ class EventsAirtableRecords extends AirtableRecords {
* @returns The event's start and end dates.
*/
public getDates(
record: Record<string, any>
record: Record<string, any>,
): [Date | undefined, Date | undefined] {
const recordStartDate = this.getStartDate(record);
const recordEndDate = record.get(this.recordFields!.endDate) as
Expand Down
Loading
Loading