Skip to content

Commit

Permalink
adding recent additions to logic reference and updating the template …
Browse files Browse the repository at this point in the history
…list to include all available templates (#168)

Co-authored-by: Joe Kendall <joe.kendall@noop.dev>
  • Loading branch information
1800joe and software-person authored Jul 1, 2024
1 parent 427b8cd commit 2324d42
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 40 deletions.
113 changes: 80 additions & 33 deletions src/components/TemplateList.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@

---
const node_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/nodejs/nodejs-original.svg'
const django_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/django/django-plain.svg'
const pg_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/postgresql/postgresql-plain.svg'
const dynamo_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/dynamodb/dynamodb-plain.svg'
const vue_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/vuejs/vuejs-original.svg'
const go_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/go/go-original-wordmark.svg'
const mysql_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/mysql/mysql-original.svg'
const python_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/python/python-original.svg'
const rust_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/rust/rust-original.svg'
const elixir_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/elixir/elixir-plain.svg'
const phoenix_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/phoenix/phoenix-original.svg'
const astro_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/astro/astro-original.svg'
const java_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/java/java-original.svg'
const spring_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/spring/spring-original.svg'
const ts_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/typescript/typescript-plain.svg'
const next_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/nextjs/nextjs-plain.svg'
const svelte_icon = 'https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/svelte/svelte-plain.svg'
---

<div class="not-prose">

Expand All @@ -7,24 +26,25 @@
<h2 class="font-bod">Nodejs with Vue and Amazon DynamoDB</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2 block" src="/assets/docs/logos/node.svg" alt="NodeJS" height="24">
<img class="max-h-6 ml-2 block" src="/assets/docs/logos/dynamodb.png" alt="Amazon DynamoDB" width="24">
<img class="max-h-6 ml-2 block" src="/assets/docs/logos/vue.svg" alt="VueJS" width="24">
<img class="max-h-6 ml-2 block invert" src={node_icon} alt="NodeJS" height="24" width="24">
<img class="max-h-6 ml-2 block invert" src={dynamo_icon} alt="Amazon DynamoDB" width="24">
<img class="max-h-6 ml-2 block" src={vue_icon} alt="VueJS" width="24">

<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</div>
</a>
<!--
<a href="" class="py-6 flex items-center justify-between border-b border-white/20">

<!-- <a href="" class="py-6 flex items-center justify-between border-b border-white/20">
<div>
<h2 class="">Go with Gin and MySQL</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2" src="/assets/docs/logos/go.svg" alt="Golang" width="24" />
<img class="max-h-6 ml-2" src={go_icon} alt="Golang" width="24" />
<img class="max-h-6 ml-2" src={mysql_icon} alt="Golang" width="24" />
<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
Expand All @@ -36,9 +56,10 @@
<h2 class="">Python with Django and PostgreSQL</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2 block" src="/assets/docs/logos/python.svg" alt="Python Logo" height="24" width="24" />
<img class="max-h-6 ml-2 block" src="/assets/docs/logos/django.svg" alt="Django Logo" height="24" />
<img class="max-h-6 ml-2 block" src="/assets/docs/logos/postgres.png" alt="Postgres Logo" height="24" width="24" />
<img class="max-h-6 ml-2 block" src={python_icon} alt="Python Logo" height="24" width="24" />
<img class="max-h-6 ml-2 block" src={django_icon} alt="Django Logo" height="24" width="24" />
<img class="max-h-6 ml-2 block" src={pg_icon} alt="Postgres Logo" height="24" width="24" />

<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
Expand All @@ -52,24 +73,50 @@
<div class="lang-logo flex items-center ml-6">


<img class="max-h-6 ml-2 " src="/assets/docs/logos/rust.svg" alt="Rust Lang Logo" height="24">
<img class="max-h-6 ml-2 " src="/assets/docs/logos/actix.png" alt="Actix Framework" height="24">
<img class="max-h-6 ml-2 " src="/assets/docs/logos/postgres.png" alt="Postgres" height="24">
<img class="max-h-6 ml-2 " src={rust_icon} alt="Rust Lang Logo" height="24" width="24">
<img class="max-h-6 ml-2 " src={pg_icon} alt="Postgres" height="24" width="24">

<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</div>
</a>


<a href="https://github.com/noop-inc/template-typescript-next" class="py-6 flex items-center justify-between border-b border-white/20">
<div>
<h2 class="font-bod">Typescript with Next.js</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2 block invert" src={ts_icon} alt="Typescript" height="24" width="24">
<img class="max-h-6 ml-2 block invert" src={next_icon} alt="next.js" width="24">

<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</div>
</a>


<a href="https://github.com/noop-inc/template-svelte-kit" class="py-6 flex items-center justify-between border-b border-white/20">
<div>
<h2 class="font-bod">SvelteKit SSR</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2 block invert" src={svelte_icon} alt="Svelte" height="24" width="24">

<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</div>
</a>

<a href="/blog/launch-astro-site/" class="py-6 flex items-center justify-between border-b border-white/20">
<div>
<h2 class="">Static Site with Astro</h2>
</div>
<div class="lang-logo flex items-center ml-6">

<img class="max-h-6 ml-2" src="/assets/docs/logos/astro.svg" alt="Astro.build Logo" height="24">
<img class="max-h-6 ml-2" src={astro_icon} alt="Astro.build Logo" height="24" width="24">
<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
Expand All @@ -82,9 +129,9 @@
<h2 class="">Elixir with Phoenix and Postgres</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2" src="/assets/docs/logos/elixir.png" alt="Elixir" height="24">
<img class="max-h-6 ml-2" src="/assets/docs/logos/phoenix.png" alt="" height="24">
<img class="max-h-6 ml-2" src="/assets/docs/logos/postgres.png" alt="" height="24">
<img class="max-h-6 ml-2" src={elixir_icon} alt="Elixir" height="24" width="24">
<img class="max-h-6 ml-2" src={phoenix_icon} alt="" height="24" width="24">
<img class="max-h-6 ml-2" src={pg_icon} alt="" height="24" width="24">

<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
Expand All @@ -93,20 +140,20 @@
</a>


<!-- <a href="" class="py-6 flex items-center justify-between border-b border-white/20">
<div>
<h2 class="">Java with SpringBoot and Postgres</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2" src="/assets/docs/logos/java.png" alt="Java" width="24">
<img class="max-h-6 ml-2" src="/assets/docs/logos/spring.svg" alt="Spring Boot" width="24">
<img class="max-h-6 ml-2" src="/assets/docs/logos/postgres.png" alt="" width="24">
<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</div>
</a>
-->
<a href="https://noop.dev/blog/launch-spring-boot-app/" class="py-6 flex items-center justify-between border-b border-white/20">
<div>
<h2 class="">Java with SpringBoot and Postgres</h2>
</div>
<div class="lang-logo flex items-center ml-6">
<img class="max-h-6 ml-2" src={java_icon} alt="Java" width="24">
<img class="max-h-6 ml-2" src={spring_icon} alt="Spring Boot" width="24">
<img class="max-h-6 ml-2" src={pg_icon} alt="" width="24">
<svg class="h-5 w-5 flex-none text-gray-400 ml-4 block" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</div>
</a>


<a href="https://github.com/orgs/noop-inc/discussions/new?category=feature-requests-and-ideas" class="py-6 flex items-center justify-between border-b border-white/20 text-lime-500">
<div>
Expand All @@ -123,6 +170,6 @@

<style>
.lang-logo img {
filter: invert(1) grayscale(100);
filter: invert(1) grayscale(100) brightness(1.7);
}
</style>
70 changes: 63 additions & 7 deletions src/content/docs/logic-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ order: 5
---



## add

Add a list of numbers together. Strings will be converted to numbers, null is treated as 0.
Expand Down Expand Up @@ -1909,6 +1908,63 @@ reduce:
```


## search

Determines whether a substring is present within a log entry's search string, returns a boolean.

### Return Value

(`boolean`)

### Parameters

#### searchElement (`number`, `string`, `boolean`, `null`)

### Examples


*Example 1*

```yaml
search: foobar

```
*Returns*
```json
false
```


*Example 2*

```yaml
search: 123

```
*Returns*
```json
false
```


*Example 3*

```yaml
search: true

```
*Returns*
```json
false
```


## slice

Returns a portion of an array selected from start to end (end not included) where start and end represent the index of items in that array.
Expand Down Expand Up @@ -2115,7 +2171,7 @@ Determines whether a string starts with the characters of this search string. Nu
*Example 1*

```yaml
endswith:
startswith:
- Hello, friend
- Hello

Expand All @@ -2124,14 +2180,14 @@ endswith:
*Returns*

```json
false
true
```


*Example 2*

```yaml
endswith:
startswith:
- 42
- 4

Expand All @@ -2140,14 +2196,14 @@ endswith:
*Returns*

```json
false
true
```


*Example 3*

```yaml
endswith:
startswith:
- Hello, friend
- friend

Expand All @@ -2156,7 +2212,7 @@ endswith:
*Returns*

```json
true
false
```


Expand Down

0 comments on commit 2324d42

Please sign in to comment.