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

Feat: add slider to apps preview #520

Closed
Closed
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
25 changes: 25 additions & 0 deletions decohub/apps/ai-assistants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../ai-assistants/mod.ts";

const CONFIG = {
name: "Deco AI Assistant",
author: "deco.cx",
description: "Create AI assistants on deco.cx.",
icon:
"https://raw.githubusercontent.com/deco-cx/apps/main/ai-assistants/logo.png",
images: [],
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [],
},
},
};
};
34 changes: 33 additions & 1 deletion decohub/apps/algolia.ts
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
export { default, preview } from "../../algolia/mod.ts";
import { AppRuntime } from "deco/mod.ts";
import { PreviewMarkdown } from "../components/PreviewMarkdown.tsx";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../algolia/mod.ts";

const CONFIG = {
name: "Algolia",
author: "deco.cx",
description:
"Product search & discovery that increases conversions at scale.",
icon: "https://raw.githubusercontent.com/deco-cx/apps/main/algolia/logo.png",
images: [],
};

export const preview = async (props: AppRuntime) => {
const markdownContent = await PreviewMarkdown(
new URL("../../algolia/README.md", import.meta.url).href,
);

return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: markdownContent },
],
},
},
};
};
26 changes: 26 additions & 0 deletions decohub/apps/analytics.ts
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../analytics/mod.ts";

const CONFIG = {
name: "Deco Analytics",
author: "deco.cx",
description:
"Measure your site traffic at a glance in a simple and modern web analytics dashboard.",
icon:
"https://raw.githubusercontent.com/deco-cx/apps/main/analytics/logo.png",
images: [],
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [],
},
},
};
};
24 changes: 24 additions & 0 deletions decohub/apps/blog.ts
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../blog/mod.ts";

const CONFIG = {
name: "Deco Blog",
author: "deco.cx",
description: "Manage your posts.",
icon: "https://raw.githubusercontent.com/deco-cx/apps/main/weather/logo.png",
images: [],
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [],
},
},
};
};
25 changes: 25 additions & 0 deletions decohub/apps/brand-assistant.ts
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../brand-assistant/mod.ts";

const CONFIG = {
name: "Deco Brand Assistant",
author: "deco.cx",
description: "A concierge for your ecommerce.",
icon:
"https://raw.githubusercontent.com/deco-cx/apps/main/brand-assistant/logo.png",
images: [],
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [],
},
},
};
};
30 changes: 29 additions & 1 deletion decohub/apps/crux.ts
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
export { default, Preview } from "../../crux/mod.ts";
import PreviewCrux from "../../crux/preview/Preview.tsx";

import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";
export { default } from "../../crux/mod.ts";

const CONFIG = {
name: "Chrome User Experience Report",
author: "deco.cx",
description:
"Measure your site traffic at a glance in a simple and modern web analytics dashboard.",
icon: "https://raw.githubusercontent.com/deco-cx/apps/main/crux/logo.png",
images: [],
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: PreviewCrux },
],
},
},
};
};
33 changes: 32 additions & 1 deletion decohub/apps/htmx.ts
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
export { default, preview } from "../../htmx/mod.ts";
import { AppRuntime } from "deco/mod.ts";
import { PreviewMarkdown } from "../components/PreviewMarkdown.tsx";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../htmx/mod.ts";

const CONFIG = {
name: "HTMX",
author: "deco.cx",
description: "high power tools for HTML",
icon: "https://raw.githubusercontent.com/deco-cx/apps/main/htmx/logo.png",
images: [],
};

export const preview = async (props: AppRuntime) => {
const markdownContent = await PreviewMarkdown(
new URL("../../htmx/README.md", import.meta.url).href,
);

return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: markdownContent },
],
},
},
};
};
32 changes: 31 additions & 1 deletion decohub/apps/implementation.ts
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
export { default, preview } from "../../implementation/mod.ts";
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";
import { PreviewMarkdown } from "../components/PreviewMarkdown.tsx";

export { default } from "../../implementation/mod.ts";

const CONFIG = {
name: "Implementer",
author: "deco.cx",
description: "The agency that's implementing your store",
images: [],
};

export const preview = async (props: AppRuntime) => {
const markdownContent = await PreviewMarkdown(
new URL("../../implementation/README.md", import.meta.url).href,
);

return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: markdownContent },
],
},
},
};
};
26 changes: 26 additions & 0 deletions decohub/apps/linx-impulse.ts
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../linx-impulse/mod.ts";

const CONFIG = {
name: "Linx Impulse",
author: "deco.cx",
description:
"Build, manage and deliver B2B, B2C and Marketplace commerce experiences.",
icon:
"https://raw.githubusercontent.com/deco-cx/apps/main/linx-impulse/logo.png",
images: [],
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [],
},
},
};
};
34 changes: 33 additions & 1 deletion decohub/apps/linx.ts
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
export { default, preview } from "../../linx/mod.ts";
import { AppRuntime } from "deco/mod.ts";
import { PreviewMarkdown } from "../components/PreviewMarkdown.tsx";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../linx/mod.ts";

const CONFIG = {
name: "Linx",
author: "deco.cx",
description:
"Loaders, actions and workflows for adding Linx Commerce Platform to your website.",
icon: "https://raw.githubusercontent.com/deco-cx/apps/main/linx/logo.png",
images: [],
};

export const preview = async (props: AppRuntime) => {
const markdownContent = await PreviewMarkdown(
new URL("../../linx/README.md", import.meta.url).href,
);

return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: markdownContent },
],
},
},
};
};
31 changes: 30 additions & 1 deletion decohub/apps/nuvemshop.ts
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
export { default, Preview } from "../../nuvemshop/mod.ts";
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";
import PreviewNuvemshop from "../../nuvemshop/preview/index.tsx";

export { default } from "../../nuvemshop/mod.ts";

const CONFIG = {
name: "Nuvemshop",
author: "deco.cx",
description:
"Loaders, actions and workflows for adding Nuvemshop Commerce Platform to your website.",
images: [],
icon:
"https://raw.githubusercontent.com/deco-cx/apps/main/nuvemshop/logo.png",
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: PreviewNuvemshop },
],
},
},
};
};
26 changes: 26 additions & 0 deletions decohub/apps/power-reviews.ts
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";

export { default } from "../../power-reviews/mod.ts";

const CONFIG = {
name: "Power Reviews",
author: "deco.cx",
description:
"Collect more and better Ratings & Reviews and other UGC. Create UGC displays that convert. Analyze to enhance product experience and positioning",
images: [],
icon:
"https://raw.githubusercontent.com/deco-cx/apps/main/power-reviews/logo.png",
};

export const preview = (props: AppRuntime) => {
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [],
},
},
};
};
33 changes: 32 additions & 1 deletion decohub/apps/shopify.ts
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
export { default, preview } from "../../shopify/mod.ts";
import { AppRuntime } from "deco/mod.ts";
import { Preview } from "../preview/Preview.tsx";
import { PreviewMarkdown } from "../components/PreviewMarkdown.tsx";

export { default } from "../../shopify/mod.ts";

const CONFIG = {
name: "Shopify",
author: "deco.cx",
description:
"Loaders, actions and workflows for adding Shopify Commerce Platform to your website.",
images: [],
icon: "https://raw.githubusercontent.com/deco-cx/apps/main/shopify/logo.png",
};

export const preview = async (props: AppRuntime) => {
const markdownContent = await PreviewMarkdown(
new URL("../../shopify/README.md", import.meta.url).href,
);
return {
Component: Preview,
props: {
...props,
config: {
...CONFIG,
pages: [
{ title: "About", content: markdownContent },
],
},
},
};
};
Loading
Loading