Skip to content

Commit

Permalink
incremented api version
Browse files Browse the repository at this point in the history
  • Loading branch information
psparacino committed Jan 10, 2024
1 parent 6c37d27 commit 1267746
Show file tree
Hide file tree
Showing 171 changed files with 5,564 additions and 3,883 deletions.
7 changes: 7 additions & 0 deletions app/components/PageHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ export const PageHead = (props: PageHeadProps) => {
return (
<Head>
{noRobots && <meta name="robots" content="noindex" />}
{!noRobots && (
<script
defer
data-domain="app.klimadao.finance"
src="https://plausible.io/js/script.outbound-links.js"
/>
)}
<title>{props.title}</title>
<meta name="description" content={props.metaDescription} />
<meta property="og:description" content={props.metaDescription} />
Expand Down
2 changes: 1 addition & 1 deletion app/locale/de/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/en-pseudo/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/es/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/fr/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/hi/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/ko/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/ru/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/zh-CN/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:52+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
17 changes: 14 additions & 3 deletions app/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { GTMScript } from "@klimadao/lib/components";
import "@klimadao/lib/theme/globals.css";
import "@klimadao/lib/theme/normalize.css";
import "@klimadao/lib/theme/variables.css";
import { useTabListener } from "@klimadao/lib/utils";
import { i18n } from "@lingui/core";
import { I18nProvider } from "@lingui/react";
import { StyledEngineProvider } from "@mui/material/styles";
import { IS_PRODUCTION } from "lib/constants";
import type { AppProps } from "next/app";
import Script from "next/script";

// StyledEngineProvider allows us to pass "injectFirst", which makes it easier to override mui styles in our css
function MyApp({ Component, pageProps }: AppProps) {
Expand All @@ -19,7 +18,19 @@ function MyApp({ Component, pageProps }: AppProps) {
<Component {...pageProps} />
</I18nProvider>
</StyledEngineProvider>
<GTMScript tag="GTM-KWFJ9R2" is_production={IS_PRODUCTION} />
<Script
id="google-analytics"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KWFJ9R2');
`,
}}
/>
</>
);
}
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/de/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/en-pseudo/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/es/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/fr/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/hi/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/ko/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/ru/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion carbon/locale/zh-CN/messages.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-01-10 17:53+0000\n"
"POT-Creation-Date: 2024-01-05 23:55+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ import type {
/**
* @description Retrieve an array of activities related to a carbon project
* @summary List project activities
* @link /activities */
export async function getActivities(
* @link /activities
*/
export async function getActivities<TData = GetActivitiesQueryResponse>(
params?: GetActivitiesQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetActivitiesQueryResponse>["data"]> {
const res = await client<GetActivitiesQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/activities`,
params,
...options,
});
return res.data;

return resData;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import type { GetCategoriesQueryResponse } from "../types/GetCategories";
/**
* @description A list of all methodology categories used to delineate every project in the marketplace. A project may belong to one or more of these categories.
* @summary Categories
* @link /categories */
export async function getCategories(
* @link /categories
*/
export async function getCategories<TData = GetCategoriesQueryResponse>(
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetCategoriesQueryResponse>["data"]> {
const res = await client<GetCategoriesQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/categories`,
...options,
});
return res.data;

return resData;
}
12 changes: 7 additions & 5 deletions carbonmark/.generated/carbonmark-api-sdk/clients/getCountries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import type { GetCountriesQueryResponse } from "../types/GetCountries";
/**
* @description Retrieve an array containing the countries that carbon projects originate from
* @summary Countries
* @link /countries */
export async function getCountries(
* @link /countries
*/
export async function getCountries<TData = GetCountriesQueryResponse>(
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetCountriesQueryResponse>["data"]> {
const res = await client<GetCountriesQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/countries`,
...options,
});
return res.data;

return resData;
}
12 changes: 7 additions & 5 deletions carbonmark/.generated/carbonmark-api-sdk/clients/getProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ import type {
/**
* @description Retrieve an array of carbon projects filtered by desired query parameters
* @summary List projects
* @link /projects */
export async function getProjects(
* @link /projects
*/
export async function getProjects<TData = GetProjectsQueryResponse>(
params?: GetProjectsQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetProjectsQueryResponse>["data"]> {
const res = await client<GetProjectsQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/projects`,
params,
...options,
});
return res.data;

return resData;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ import type {
/**
* @description Retrieve a carbon project by its project ID
* @summary Project details
* @link /projects/:id */
export async function getProjectsId(
* @link /projects/:id
*/
export async function getProjectsId<TData = GetProjectsIdQueryResponse>(
id: GetProjectsIdPathParams["id"],
params?: GetProjectsIdQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetProjectsIdQueryResponse>["data"]> {
const res = await client<GetProjectsIdQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/projects/${id}`,
params,
...options,
});
return res.data;

return resData;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ import type {
/**
* @description Retrieve an array of activities related to a carbon project
* @summary List project activities
* @link /projects/:id/activity */
export async function getProjectsIdActivity(
* @link /projects/:id/activity
*/
export async function getProjectsIdActivity<
TData = GetProjectsIdActivityQueryResponse,
>(
id: GetProjectsIdActivityPathParams["id"],
params?: GetProjectsIdActivityQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetProjectsIdActivityQueryResponse>["data"]> {
const res = await client<GetProjectsIdActivityQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/projects/${id}/activity`,
params,
...options,
});
return res.data;

return resData;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ import type {
/**
* @description Retrieve the details of a purchase by its ID (transaction hash)
* @summary Purchase details
* @link /purchases/:id */
export async function getPurchasesId(
* @link /purchases/:id
*/
export async function getPurchasesId<TData = GetPurchasesIdQueryResponse>(
id: GetPurchasesIdPathParams["id"],
params?: GetPurchasesIdQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetPurchasesIdQueryResponse>["data"]> {
const res = await client<GetPurchasesIdQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/purchases/${id}`,
params,
...options,
});
return res.data;

return resData;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ import type {
/**
* @description Get a user's profile and activity
* @summary User details
* @link /users/:walletOrHandle */
export async function getUsersWalletorhandle(
* @link /users/:walletOrHandle
*/
export async function getUsersWalletorhandle<
TData = GetUsersWalletorhandleQueryResponse,
>(
walletOrHandle: GetUsersWalletorhandlePathParams["walletOrHandle"],
params?: GetUsersWalletorhandleQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetUsersWalletorhandleQueryResponse>["data"]> {
const res = await client<GetUsersWalletorhandleQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/users/${walletOrHandle}`,
params,
...options,
});
return res.data;

return resData;
}
12 changes: 7 additions & 5 deletions carbonmark/.generated/carbonmark-api-sdk/clients/getVintages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ import type {
/**
* @description Retrieve an array of the vintages of available carbon projects
* @summary Vintages
* @link /vintages */
export async function getVintages(
* @link /vintages
*/
export async function getVintages<TData = GetVintagesQueryResponse>(
params?: GetVintagesQueryParams,
options: Partial<Parameters<typeof client>[0]> = {}
): Promise<ResponseConfig<GetVintagesQueryResponse>["data"]> {
const res = await client<GetVintagesQueryResponse>({
): Promise<ResponseConfig<TData>["data"]> {
const { data: resData } = await client<TData>({
method: "get",
url: `/vintages`,
params,
...options,
});
return res.data;

return resData;
}
Loading

0 comments on commit 1267746

Please sign in to comment.