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 Astro DB #304

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ continuation_indent_size = 2
trim_trailing_whitespace = false

# Set default charset
[*.{ts,js,mjs,astro,scss,css,json,md,svg}] # Matches multiple files with brace expansion notation
[*.{ts,tsx,js,jsx,mjs,cjs,astro,scss,css,json,md,svg,yml,yaml}] # Matches multiple files with brace expansion notation
charset = utf-8

# Denotes whether the left part of the curly bracket should be on the next line or not
[*.{ts,js,mjs,astro,json}]
[*.{ts,tsx,js,jsx,mjs,cjs,astro,json}]
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = inside
Expand Down
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ PUBLIC_APP_URL_PRODUCTION=https://resurse.dev

# @TODO 3rd party API: CAPTCHAs

# @TODO 3rd party API: database variables
# @TODO 3rd party API: AstroDB database
ASTRO_STUDIO_APP_TOKEN=

# @TODO 3rd party API: search (Algolia) variables

Expand Down
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ node_modules/

# generated types
.astro/
!.astro/types.d.ts

# Optional npm cache directory
.npm
Expand Down Expand Up @@ -49,9 +50,19 @@ Thumbs.db
.netlify
.vercel
.vercel/*
.netlify
.turbo
lambda

# Yarn collateral
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Service worker
sw.*

Expand Down
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm build
pnpm lint --quiet
Expand Down
33 changes: 33 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"color-hex-length": "short",
"property-no-vendor-prefix": [
true,
{
"ignoreProperties": ["appearance", "text-size-adjust"]
}
],
"declaration-block-single-line-max-declarations": 20,
"at-rule-empty-line-before": [
"always",
{
"except": ["first-nested", "inside-block"],
"ignore": ["after-comment"]
}
],
"comment-empty-line-before": null,
"declaration-empty-line-before": "never",
"rule-empty-line-before": null,
"selector-class-pattern": [
"^(.*)$",
{
"message": "Selector should be written in any format (selector-class-pattern)"
}
],
"declaration-block-no-redundant-longhand-properties": null,
"no-descending-specificity": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/double-slash-comment-empty-line-before": null
}
}
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Resurse digitale: **Resurse.dev**

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ViorelMocanu/digital-resources/static.yml)](https://github.com/ViorelMocanu/digital-resources/actions) [![GitHub Pages Deploy Status](https://github.com/ViorelMocanu/digital-resources/actions/workflows/static.yml/badge.svg)](https://github.com/ViorelMocanu/digital-resources/deployments) [![Uptime Robot status](https://img.shields.io/uptimerobot/status/m795450488-8340b637195100fd9eb8309b)](https://resurse.dev) [![GitHub contributors](https://img.shields.io/github/contributors/ViorelMocanu/digital-resources.svg)](https://github.com/ViorelMocanu/digital-resources/graphs/contributors) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ViorelMocanu)](https://github.com/sponsors/ViorelMocanu/) [![ISC license](https://img.shields.io/badge/License-ISC-blue.svg?style=flat)](https://github.com/ViorelMocanu/digital-resources/blob/main/LICENSE) [![W3C Validation](https://img.shields.io/w3c-validation/html?targetUrl=https%3A%2F%2Fresurse.dev)](https://validator.w3.org/nu/?doc=https%3A%2F%2Fresurse.dev%2F&showsource=yes&showoutline=yes) ![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/ViorelMocanu/digital-resources)
[![GitHub Workflow Status][GitHub Workflow Shield]][GitHub Workflow Link] [![GitHub Pages Deploy Status][GitHub Pages Deploy Shield]][GitHub Pages Deploy Link] [![Uptime Robot status][Uptime Robot Shield]][Uptime Robot Link] [![GitHub contributors][GitHub contributors Shield]][GitHub contributors Link] [![GitHub Sponsors][GitHub Sponsors Shield]][GitHub Sponsors Link] [![ISC license][ISC license Shield]][ISC license Link] [![W3C Validation][W3C Validation Shield]][W3C Validation Link] [![Libraries.io dependency status for GitHub repo][Dependency status Badge]][Dependency Status Link] [![Project Stage Badge: Development][Project Stage Badge: Development]][Project Stage Link]

[//]: <> (Implement https://shields.io/badges/netlify once you deploy there)

Salutare!

Expand Down Expand Up @@ -210,3 +212,21 @@ Merci! ❀️
[noile componente]: https://docs.astro.build/en/guides/images/
[canalul de YouTube]: https://www.youtube.com/@ViorelMocanu
[grupul de Facebook]: https://www.facebook.com/groups/carierait
[Dependency Status Badge]: https://img.shields.io/librariesio/github/ViorelMocanu/digital-resources
[Dependency status Link]: https://github.com/ViorelMocanu/digital-resources/pulls
[GitHub Workflow Shield]: https://img.shields.io/github/actions/workflow/status/ViorelMocanu/digital-resources/static.yml
[GitHub Workflow Link]: https://github.com/ViorelMocanu/digital-resources/actions
[GitHub Pages Deploy Shield]: https://github.com/ViorelMocanu/digital-resources/actions/workflows/static.yml/badge.svg
[GitHub Pages Deploy Link]: https://github.com/ViorelMocanu/digital-resources/deployments
[Uptime Robot Shield]: https://img.shields.io/uptimerobot/status/m795450488-8340b637195100fd9eb8309b
[Uptime Robot Link]: https://resurse.dev
[GitHub contributors Shield]: https://img.shields.io/github/contributors/ViorelMocanu/digital-resources.svg
[GitHub contributors Link]: https://github.com/ViorelMocanu/digital-resources/graphs/contributors
[GitHub Sponsors Shield]: https://img.shields.io/github/sponsors/ViorelMocanu
[GitHub Sponsors Link]: https://github.com/sponsors/ViorelMocanu/
[ISC license Shield]: https://img.shields.io/badge/License-ISC-blue.svg?style=flat
[ISC license Link]: https://github.com/ViorelMocanu/digital-resources/blob/main/LICENSE
[W3C Validation Shield]: https://img.shields.io/w3c-validation/html?targetUrl=https%3A%2F%2Fresurse.dev
[W3C Validation Link]: https://validator.w3.org/nu/?doc=https%3A%2F%2Fresurse.dev%2F&showsource=yes&showoutline=yes
[Project Stage Link]: https://github.com/users/ViorelMocanu/projects/2/views/2
[Project Stage Badge: Development]: https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg
Loading
Loading