Compare commits
13 Commits
live-searc
...
main
Author | SHA1 | Date | |
---|---|---|---|
d001041c62 | |||
be486844bf | |||
2e2fbc6e68 | |||
78ae9187d5 | |||
81ef2089e0 | |||
46075c641b | |||
18a74e3b0b | |||
6939828b38 | |||
32618ced22 | |||
8f6387ea72 | |||
12a7e712d8 | |||
4fa0dd31eb | |||
98d8652116 |
7
.gitea/.excludes
Normal file
7
.gitea/.excludes
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
archive/
|
||||||
|
README.md
|
||||||
|
public/
|
||||||
|
.gitea/
|
||||||
|
.git/
|
||||||
|
.DS_Store
|
||||||
|
FavouriteQuotes.json
|
@ -2,6 +2,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths-ignore:
|
||||||
|
- .gitignore
|
||||||
|
- README.md
|
||||||
|
- LICENSE
|
||||||
|
pull_request:
|
||||||
name: deploy updated site
|
name: deploy updated site
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -14,8 +19,8 @@ jobs:
|
|||||||
uses: easingthemes/ssh-deploy@v5.1.0
|
uses: easingthemes/ssh-deploy@v5.1.0
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ARGS: '-avz --delete'
|
ARGS: '-avz --delete --exclude-from=.gitea/.excludes'
|
||||||
SOURCE: public/
|
SOURCE: .
|
||||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
TARGET: ${{ secrets.TARGET }}
|
TARGET: ${{ secrets.TARGET }}
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
publish:
|
|
||||||
image: appleboy/drone-scp
|
|
||||||
settings:
|
|
||||||
host:
|
|
||||||
from_secret: jupiterIP
|
|
||||||
username: camille
|
|
||||||
key:
|
|
||||||
from_secret: DOPrivateKey
|
|
||||||
target: /u/jsquotes
|
|
||||||
source: ./src
|
|
||||||
strip_components: 2
|
|
||||||
|
|
||||||
restart:
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
|
||||||
host:
|
|
||||||
from_secret: jupiterIP
|
|
||||||
username: camille
|
|
||||||
key:
|
|
||||||
from_secret: DOPrivateKey
|
|
||||||
script:
|
|
||||||
- docker restart quotes
|
|
||||||
branches: master
|
|
@ -1,66 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"quote": "Everything has its wonders, even darkness and silence, and I learn, whatever state I may be in , therein to be content.",
|
|
||||||
"author": "Helen Keller"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "Tomorrow, and tomorrow, and tomorrow, Creeps in this petty pace from day to day, To the last syllable of recorded time; And all our yesterdays have lighted fools The way to dusty death. Out, out, brief candle! Life's but a walking shadow, a poor player That struts and frets his hour upon the stage And then is heard no more. It is a tale Told by an idiot, full of sound and fury Signifying nothing.",
|
|
||||||
"author": "Macbeth \n (Act 5, Scene 5, lines 19-28)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "He who has health has hope. And he who has hope, has everything.",
|
|
||||||
"author": "Arabian Proverb"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "In the midst of movement and chaos, keep stillness inside of you.",
|
|
||||||
"author": "Deepak Chopra"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "The worst sin toward our fellow creatures is not to hate them, but to be indifferent to them: that's the essence of inhumanity.",
|
|
||||||
"author": "George Bernard Shaw; \n Irish dramatist & socialist (1856 - 1950)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.",
|
|
||||||
"author": "Sam Keen"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "A friend is someone who understands your past, believes in your future, and accepts you just the way you are",
|
|
||||||
"author": "Paul Holdorsen"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "Ambition is the last refuge of failure",
|
|
||||||
"author": "Oscar Wilde"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "Love never dies a natural death. It dies because we don't know how to replenish its source. It dies of blindness and errors and betrayals. It dies of illness and wounds; it dies of weariness, of withering, of tarnishing.",
|
|
||||||
"author": "Anais Nin"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "Few people think more than two or three times a year; I have made an international reputation for myself by thinking once or twice a week.",
|
|
||||||
"author": "George Bernard Shaw; \n Irish dramatist & socialist (1856 - 1950)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "It doesn't interest me where or what or with whom you have studied. I want to know what sustains you from the inside when all else falls away. I want to know if you can be alone with yourself and if you truly like the company you keep in the empty moments.",
|
|
||||||
"author": "from ... The Invitation, \n Oriah Mountain Dreamer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "You never really understand a person until you consider things from his point of view... until you climb into his skin and walk around in it.",
|
|
||||||
"author": "Harper Lee, \n To Kill a Mockingbird"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "I think there's just one kind of folks. Folks.",
|
|
||||||
"author": "Harper Lee, \n To Kill a Mockingbird"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "The Best Things In Life... \n Hot showers on a cold night \n Snow flurries and moonlight \n The smell of freshly washed towels \n Fog over fields and fireflies \n Country storms \n Being home",
|
|
||||||
"author": "Camille Frantz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "Nothing is original. Steal from anywhere that resonates with inspiration or fuels your imagination. Devour old films, new films, books, paintings, photographs, poems, dreams, random conversations, architecture, bridges, street signs, trees..., clouds, bodies of water, light and shadows. Select only things to steal from that speak directly to your soul. If you do this, your work (and theft) will be authentic. Authenticity is invaluable; originality is non-existent. And don't bother concealing your thievery - celebrate it if you feel like it. In any case, always remember what Jean-Luc Godard said: 'it's not where you take things from - its where you take them to.'",
|
|
||||||
"author": "Jim Jarmusch"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"quote": "I have come to believe that caring for myself is not self indulgent. Caring for myself is an act of survival.",
|
|
||||||
"author": "Audre Lorde"
|
|
||||||
}
|
|
||||||
]
|
|
24
LICENSE
Normal file
24
LICENSE
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
This is free and unencumbered software released into the public domain.
|
||||||
|
|
||||||
|
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||||
|
distribute this software, either in source code form or as a compiled
|
||||||
|
binary, for any purpose, commercial or non-commercial, and by any
|
||||||
|
means.
|
||||||
|
|
||||||
|
In jurisdictions that recognize copyright laws, the author or authors
|
||||||
|
of this software dedicate any and all copyright interest in the
|
||||||
|
software to the public domain. We make this dedication for the benefit
|
||||||
|
of the public at large and to the detriment of our heirs and
|
||||||
|
successors. We intend this dedication to be an overt act of
|
||||||
|
relinquishment in perpetuity of all present and future rights to this
|
||||||
|
software under copyright law.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
For more information, please refer to <https://unlicense.org>
|
26
README.md
26
README.md
@ -1,9 +1,27 @@
|
|||||||
# Reading json and randomly posting content
|
# Quotes library
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
1. Read quotes in from https://cdn.fyrfli.link/FavouriteQuotes.json
|
||||||
|
2. Display them all in a grid fashion
|
||||||
|
3. Has a live search feature that allows you to filter quotes based on a case-insensitive input field
|
||||||
|
|
||||||
|
## To Do
|
||||||
|
|
||||||
|
1. Abstract it so that you can pick the file
|
||||||
|
2. Create a Docker file to build an image if desired
|
||||||
|
|
||||||
|
## Releases
|
||||||
|
Dowload [here](https://fyrfli.dev/fyrfli/jsquotes/src/tag/3.0)
|
||||||
|
|
||||||
|
2024-11-08 12:18:15
|
||||||
|
|
||||||
|
|
||||||
|
~~# Reading json and randomly posting content~~
|
||||||
|
|
||||||
~~I wanted to create an "app" that would read in JSON and print out the results randomly based on a randomly generated number. It took me a while to get right, mostly because of the JSON file format. I have it down now. This is my result.~~
|
~~I wanted to create an "app" that would read in JSON and print out the results randomly based on a randomly generated number. It took me a while to get right, mostly because of the JSON file format. I have it down now. This is my result.~~
|
||||||
|
|
||||||
This started out as a looping display of random quotes and evolved to be just one large grid with all the quotes. It's getting to be a pretty large page so the next step for this is to make all items the same size with a "more..." indicator that when clicked will open up a css popover with the full quote and an "X" to close.
|
~~This started out as a looping display of random quotes and evolved to be just one large grid with all the quotes. It's getting to be a pretty large page so the next step for this is to make all items the same size with a "more..." indicator that when clicked will open up a css popover with the full quote and an "X" to close.~~
|
||||||
|
|
||||||
19-Mar-2024
|
|
||||||
|
|
||||||
|
~~19-Mar-2024~~
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in New Issue
Block a user