https://github.com/tianzonglin/imagefinder
An interesting tool to find out interesting pictures from Github or Gitee. Interesting!!
https://github.com/tianzonglin/imagefinder
gitee github imgbed jquery nodejs sqlite3 xpath
Last synced: 3 months ago
JSON representation
An interesting tool to find out interesting pictures from Github or Gitee. Interesting!!
- Host: GitHub
- URL: https://github.com/tianzonglin/imagefinder
- Owner: TianZonglin
- License: mit
- Created: 2021-01-30T15:19:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T11:23:40.000Z (about 1 year ago)
- Last Synced: 2024-12-30T02:24:24.920Z (5 months ago)
- Topics: gitee, github, imgbed, jquery, nodejs, sqlite3, xpath
- Language: JavaScript
- Homepage: https://images-finder.glitch.me
- Size: 4.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageFinder
[](https://github.com/TianZonglin)




A server that could help you to find more interesting image repositories. Also, it could be an easy way to make a gallery for your image repository. Support users to look images hosted in `Github.com` and `Gitee.com`. You can redeploy this server to build your own service or just USE the demo website directly.
To redeploy, you need to have a `nodejs` environment at first, then make sure you install all packages in `package.json`. Since I used `sqlite` to store some data, you need to manually execute some codes as follows to create a proper table with your sqlite.
```sql
CREATE TABLE CList (
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT, hot TEXT, size TEXT, ctime TEXT, ex1 TEXT, ex2 TEXT, ex3 TEXT, ex4 TEXT
)
```Next, things will be very easy: just run & look. Have fun!
(Don't know how to run a node app? see [document](https://nodejs.org/docs/latest-v13.x/api/synopsis.html))## Description
On the front-end,
- `views/index.html` hold the content of the webpage
- `public/client.js` is the javascript that runs when you load the webpage
- `public/style.css` is the styles for `views/index.html`On the back-end,
- _ImageFinder_ starts at `server.js`
- involved packages see `package.json`## Usage
Supported query rules:
- Picture url: `https://cdn.jsdelivr.net/gh/name/repo/x.jpg`
- Original link from repo: `https://github.com/name/repo`
- ~~Internal directory: `https://github.com/name/repo/tree/main/sub`~~
- ~~Default branch: `https://github.com/name/repo/sub`~~
- ~~Default prefix: `/name/repo/sub` (Github image bed only)~~
- ~~Single page rendering: directly visit `xvido.es?x=url`~~
- ~~Other image beds: `Gitee` has been supported, the rules are the same as above~~✖ Since the policy of Github and Gitee has changed, some functions are disactive now :(
## Logs
- `v0.0.1` Complete basic resolve logic and basic front-end style
- `v0.0.2` Add the function of rendering a single page, which can be used as a photo album
- `v0.0.3` Introduce `sqlite3`, add the module of `recent view`
- `v0.0.4` Completion of multiple query methods, especially only the image url method
- `v0.0.5` Add the function of `sub-directory` view, support upper and lower view operations
- `v0.0.6` Improve front-end operation steps
- `v0.0.7` Add the judgment that the operation returns an exception
- `v0.0.8` Add support for Gitee repo, the rules are the same as Github repo (Stable version)
- `v0.0.9` Create slider tool (`nstSlider.js`) to change the size of pictures smoothly.
- `v0.1.0` Kill the blank space by new layout.**Todo**
- `Bug:` Links containing Chinese will cause errors.
- `Add:` Add support for Gitee image bed!
- `Fix:` Use more suitable images layout (e.g. waterfall flow)## View


**Note:** This may invade the privacy of others, I am NOT responsible for any consequences of misusing this project.
---
Find out more. [cxmoe.com](https://www.cxmoe.com).