Skip to content

Commit e1beab7

Browse files
committed
feat(analog-sanity-blog-example): new project using visual-editing
1 parent 6d3f971 commit e1beab7

60 files changed

Lines changed: 10324 additions & 2660 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ Thumbs.db
4545

4646
# Local Netlify folder
4747
.netlify
48+
49+
.env*.local
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
VITE_SANITY_PROJECT_ID=
2+
VITE_SANITY_DATASET=
3+
SANITY_API_READ_TOKEN=
4+
5+
BYPASS_TOKEN=
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>AnalogSanityBlogExample</title>
6+
<base href="/">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<link rel="icon" type="image/x-icon" href="favicon.ico">
9+
<link rel="stylesheet" href="/src/styles.css" />
10+
</head>
11+
<body>
12+
<app-root></app-root>
13+
<script type="module" src="/src/main.ts"></script>
14+
</body>
15+
</html>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "analog-sanity-blog-example",
3+
"type": "module",
4+
"dependencies": {
5+
"@analogjs/router": "1.8.0",
6+
"@angular/common": "~18.1.1",
7+
"@angular/core": "~18.1.1",
8+
"@angular/platform-browser": "~18.1.1",
9+
"@angular/platform-server": "~18.1.1",
10+
"@angular/router": "~18.1.1",
11+
"@sanity/client": "^6.21.1",
12+
"@sanity/image-url": "^1.0.2",
13+
"@sanity/preview-url-secret": "^1.6.20",
14+
"date-fns": "^4.1.0",
15+
"groq": "^3.53.0",
16+
"rxjs": "~7.8.0",
17+
"sitemap": "^8.0.0",
18+
"zone.js": "~0.14.0"
19+
},
20+
"devDependencies": {
21+
"@analogjs/content": "1.8.0",
22+
"@analogjs/platform": "1.8.0",
23+
"marked-highlight": "^2.1.4",
24+
"rollup-plugin-typescript-paths": "^1.5.0",
25+
"vite": "^5.4.0",
26+
"vite-plugin-webfont-dl": "^3.9.4",
27+
"vite-tsconfig-paths": "^4.2.0"
28+
}
29+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const { join } = require('node:path');
2+
3+
module.exports = {
4+
plugins: {
5+
tailwindcss: {
6+
config: join(__dirname, 'tailwind.config.ts'),
7+
},
8+
autoprefixer: {},
9+
},
10+
};
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"name": "analog-sanity-blog-example",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"sourceRoot": "apps/analog-sanity-blog-example/src",
6+
"prefix": "app",
7+
"targets": {
8+
"build": {
9+
"executor": "@analogjs/platform:vite",
10+
"options": {
11+
"main": "apps/analog-sanity-blog-example/src/main.ts",
12+
"configFile": "apps/analog-sanity-blog-example/vite.config.ts",
13+
"outputPath": "dist/apps/analog-sanity-blog-example/client",
14+
"tsConfig": "apps/analog-sanity-blog-example/tsconfig.app.json"
15+
},
16+
"outputs": [
17+
"{options.outputPath}",
18+
"{workspaceRoot}/dist/apps/analog-sanity-blog-example/.nitro",
19+
"{workspaceRoot}/dist/apps/analog-sanity-blog-example/ssr",
20+
"{workspaceRoot}/dist/apps/analog-sanity-blog-example/analog"
21+
],
22+
"configurations": {
23+
"development": {
24+
"mode": "development"
25+
},
26+
"production": {
27+
"sourcemap": false,
28+
"mode": "production"
29+
}
30+
},
31+
"defaultConfiguration": "production"
32+
},
33+
"serve": {
34+
"executor": "@analogjs/platform:vite-dev-server",
35+
"options": {
36+
"buildTarget": "analog-sanity-blog-example:build",
37+
"port": 4200
38+
},
39+
"configurations": {
40+
"production": {
41+
"buildTarget": "analog-sanity-blog-example:build:production"
42+
},
43+
"development": {
44+
"buildTarget": "analog-sanity-blog-example:build:development",
45+
"hmr": true
46+
}
47+
},
48+
"defaultConfiguration": "development"
49+
}
50+
}
51+
}

apps/analog-sanity-blog-example/public/.gitkeep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Loading
1.6 KB
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
import { RouterOutlet } from '@angular/router';
3+
4+
import { VisualEditingComponent } from '@limitless-angular/sanity/visual-editing';
5+
import { AlertBannerComponent } from './pages/(blog)/components/alert-banner.component';
6+
7+
@Component({
8+
selector: 'app-root',
9+
standalone: true,
10+
imports: [RouterOutlet, VisualEditingComponent, AlertBannerComponent],
11+
template: `<router-outlet />`,
12+
styles: `
13+
:host {
14+
display: contents;
15+
}
16+
`,
17+
changeDetection: ChangeDetectionStrategy.OnPush,
18+
})
19+
export class AppComponent {}

0 commit comments

Comments
 (0)