Skip to content

Commit

Permalink
Merge pull request #38 from laravelcompany/dev
Browse files Browse the repository at this point in the history
Changed app port to 1100 and 1101
  • Loading branch information
izdrail authored Jan 22, 2025
2 parents 8b2f32d + 52e2737 commit bf6b21d
Show file tree
Hide file tree
Showing 6 changed files with 255 additions and 6 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ Powerful marketing, automations, Voip communication and transactional emails, se
- Edit, send, and track transactional emails directly in Laravel Mail.

Check our website on how to [Get started](https://laravelmail.com/).


## Developers

1. While working you will need to add laravelmail.com domain to hosts file.
2 changes: 1 addition & 1 deletion docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ loglevel=debug

[program:backend]
directory=/home/backend
command=uvicorn main:app --host 0.0.0.0 --port 11001 --reload
command=uvicorn main:app --host 0.0.0.0 --port 1101 --reload
autostart=true
autorestart=true
startsecs=5
Expand Down
243 changes: 243 additions & 0 deletions frontend/.astro/astro/content.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
declare module 'astro:content' {
interface Render {
'.mdx': Promise<{
Content: import('astro').MarkdownInstance<{}>['Content'];
headings: import('astro').MarkdownHeading[];
remarkPluginFrontmatter: Record<string, any>;
components: import('astro').MDXInstance<{}>['components'];
}>;
}
}

declare module 'astro:content' {
interface RenderResult {
Content: import('astro/runtime/server/index.js').AstroComponentFactory;
headings: import('astro').MarkdownHeading[];
remarkPluginFrontmatter: Record<string, any>;
}
interface Render {
'.md': Promise<RenderResult>;
}

export interface RenderedContent {
html: string;
metadata?: {
imagePaths: Array<string>;
[key: string]: unknown;
};
}
}

declare module 'astro:content' {
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;

export type CollectionKey = keyof AnyEntryMap;
export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;

export type ContentCollectionKey = keyof ContentEntryMap;
export type DataCollectionKey = keyof DataEntryMap;

type AllValuesOf<T> = T extends any ? T[keyof T] : never;
type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
ContentEntryMap[C]
>['slug'];

/** @deprecated Use `getEntry` instead. */
export function getEntryBySlug<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
// Note that this has to accept a regular string too, for SSR
entrySlug: E,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;

/** @deprecated Use `getEntry` instead. */
export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
collection: C,
entryId: E,
): Promise<CollectionEntry<C>>;

export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
collection: C,
filter?: (entry: CollectionEntry<C>) => entry is E,
): Promise<E[]>;
export function getCollection<C extends keyof AnyEntryMap>(
collection: C,
filter?: (entry: CollectionEntry<C>) => unknown,
): Promise<CollectionEntry<C>[]>;

export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(entry: {
collection: C;
slug: E;
}): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(entry: {
collection: C;
id: E;
}): E extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
slug: E,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(
collection: C,
id: E,
): E extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;

/** Resolve an array of entry references from the same collection */
export function getEntries<C extends keyof ContentEntryMap>(
entries: {
collection: C;
slug: ValidContentEntrySlug<C>;
}[],
): Promise<CollectionEntry<C>[]>;
export function getEntries<C extends keyof DataEntryMap>(
entries: {
collection: C;
id: keyof DataEntryMap[C];
}[],
): Promise<CollectionEntry<C>[]>;

export function render<C extends keyof AnyEntryMap>(
entry: AnyEntryMap[C][string],
): Promise<RenderResult>;

export function reference<C extends keyof AnyEntryMap>(
collection: C,
): import('astro/zod').ZodEffects<
import('astro/zod').ZodString,
C extends keyof ContentEntryMap
? {
collection: C;
slug: ValidContentEntrySlug<C>;
}
: {
collection: C;
id: keyof DataEntryMap[C];
}
>;
// Allow generic `string` to avoid excessive type errors in the config
// if `dev` is not running to update as you edit.
// Invalid collection names will be caught at build time.
export function reference<C extends string>(
collection: C,
): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;

type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
>;

type ContentEntryMap = {
"docs": {
"campaigns.mdx": {
id: "campaigns.mdx";
slug: "campaigns";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"configuration.mdx": {
id: "configuration.mdx";
slug: "configuration";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"deployment.mdx": {
id: "deployment.mdx";
slug: "deployment";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"email-services.mdx": {
id: "email-services.mdx";
slug: "email-services";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"index.mdx": {
id: "index.mdx";
slug: "index";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"messages.mdx": {
id: "messages.mdx";
slug: "messages";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"package-instalation.mdx": {
id: "package-instalation.mdx";
slug: "package-instalation";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"subscribers.mdx": {
id: "subscribers.mdx";
slug: "subscribers";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"tags.mdx": {
id: "tags.mdx";
slug: "tags";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"templates.mdx": {
id: "templates.mdx";
slug: "templates";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
"workspaces.mdx": {
id: "workspaces.mdx";
slug: "workspaces";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".mdx"] };
};

};

type DataEntryMap = {

};

type AnyEntryMap = ContentEntryMap & DataEntryMap;

export type ContentConfig = typeof import("../../src/content/config.js");
}
3 changes: 2 additions & 1 deletion frontend/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ export default defineConfig({
allowedHosts:[
'localhost',
'127.0.0.1',
'0.0.0.0',
'laravelmail.com',
'frontend.laravelmail.com'
],
proxy: {
'/backend/': {
target: 'http//127.0.0.1:11001/',
target: 'http//127.0.0.1:1101/',
secure: false,
autoRewrite: true,
changeOrigin: true,
Expand Down
6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "leadscaptain",
"description": "A self-hosted marketing platform for your business.",
"description": "A self-hosted marketing platform for your laravel business.",
"version": "0.0.1",
"author": "Stefan Izdrail",
"homepage": "https://leadscaptain.com/",
"scripts": {
"dev": "astro dev --host laravelmail.com --port 11000 --reload",
"dev": "astro dev --host laravelmail.com --port 1100 --reload",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview --host laravelmail.com --port 11000 --reload"
"preview": "astro preview --host laravelmail.com --port 1100 --reload"
},
"dependencies": {
"@astrojs/check": "^0.8.2",
Expand Down
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"./src/*"
],
"config": [
"src/config.ts"
"./src/config.ts"
]
}
}
Expand Down

0 comments on commit bf6b21d

Please sign in to comment.