Giter VIP home page Giter VIP logo

dotcom's People

Contributors

antzed avatar athurg avatar azzamsa avatar boojack avatar c1c0 avatar dependabot[bot] avatar drauku avatar dubzer avatar enpaul avatar fabfischer avatar ganyuke avatar gradypark86 avatar greirson avatar h3arn avatar hqwuzhaoyi avatar hu3rror avatar hyoban avatar johnnyjoygh avatar jxpsert avatar lbcmk avatar lincolnthalles avatar m3nu avatar michaelyuhe avatar mudkipme avatar nalderto avatar neomod avatar quanru avatar ryojerryyu avatar sao-coding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotcom's Issues

'Live demo' and 'discord' button not visible on home page

On home page the 'Live Demo' and 'Discord' buttons are not visible on the image,
The image is so clear so that the buttons seems like they are inside the image and users can't recognize that the buttons are actually clickable and are not inside the image.

Steps to regenerate the issue:

  1. Go to home page of memos -> https://usememos.com/
  2. scroll down to see the image
  3. you can now find the buttons are not visible
    Screenshot 2023-09-14 000445

way to resolve the issue:
-> this issue can be resolved if we blur the image little bit so that the button are clearly visible to the users

`connect: connection refused` documentation

Hi, ๐Ÿ‘‹๐Ÿฝ

During the migration from sqlite to postgres. I always get connect: connection refused error.
I solve this issue using depends_on: keyword in my compose.yml file.

Where should I explain about this in the docs?

version: '3'

services:

  memos:
    image: neosmemo/memos:stable
    restart: always
+    depends_on:
+      - db
    ports:
      - "8084:5230"
    environment:
      - MEMOS_DRIVER=postgres
      - MEMOS_DSN=user=${DB_USERNAME} password=${DB_PASSWORD} dbname=${DB_NAME} host=db sslmode=disable

  db:
    # https://endoflife.date/postgresql
    image: postgres:16.1
    restart: unless-stopped
    volumes: # Don't remove permanent storage for index database files!
      - "./database:/var/lib/postgresql/data/"
    environment:
      POSTGRES_USER: $DB_USERNAME
      POSTGRES_PASSWORD: $DB_PASSWORD
      POSTGRES_DB: $DB_NAME

Correction of Docs regarding DB backup

In the docs at https://www.usememos.com/docs/install/self-hosting it is written:

  1. Although optional, it's advisable to back up your database:
    cp -r ~/.memos/memos_prod.db ~/.memos/memos_prod.db.bak

Looking at /root/.memos by FTP on the server there are:

image

The data is saved with the file memos_prod.db-wal and not with the file memos_prod.db.

So I assume the docs should be changed to:

  1. Although optional, it's advisable to back up your database:
    cp -r ~/.memos/memos_prod.db-wal ~/.memos/memos_prod.db-wal.bak

Further, memos_prod.db-shm gets updated every time a note is saved. So this file should probably be part of the backup?

'Live demo' and 'discord' button not visible on home page

On home page the 'Live Demo' and 'Discord' buttons are not visible on the image,

The image is so clear so that the buttons seems like they are inside the image and users can't recognize that the buttons are actually clickable and are not inside the image.

Steps to regenerate the issue:

  1. Go to home page of memos -> https://usememos.com/
  2. scroll down to see the image
  3. you can now find the buttons are not visible
    Screenshot 2023-09-14 000445

way to resolve the issue:

-> this issue can be resolved if we blur the image little bit so that the button are clearly visible to the users

Documentation need to be updated: code = InvalidArgument desc = filter is required

Describe the bug

Seems like curl example need to be update.

Also wound be nice to have some documentation published for the service api

Steps to reproduce

  1. Go to https://www.usememos.com/docs/security/access-tokens
  2. Try to use curl example
  3. See output
curl https://demo.usememos.com/api/v1/memos    -H "Accept: application/json"    -H "Authorization: Bearer {YOUR_ACCESS_TOKEN}"
{"code":3, "message":"failed to build find memos with filter: rpc error: code = InvalidArgument desc = filter is required", "details":[]}

The version of Memos you're using

0.22.0

Screenshots or additional context

image

Unable to set up the dev server following the "Development" doc

Environment:
ObrStack on macOS,
Docker version 24.0.7, build afdd53b.

At the third step, which is "Set up the environment", I ran docker compose run api go install github.com/cosmtrek/air@latest, but it showed an error message as follow:

> docker compose run api go install github.com/cosmtrek/air@latest

[+] Building 0.0s (0/0)                                                 docker:orbstack
[+] Building 0.0s (0/0)                                                 docker:orbstack

  __    _   ___
 / /\  | | | |_)
/_/--\ |_| |_| \_ (devel), built with Go go1.21.3

watching .
watching api
...
...
...
watching web/src/types/utils
watching web/src/utils
building...
running...
Error: unknown command "go" for "memos"
Run 'memos --help' for usage.
panic: unknown command "go" for "memos"

goroutine 1 [running]:
main.main()
	/work/main.go:13 +0x38

Also, when running docker compose run web npm install, it prompted:

> docker compose run web npm install

[+] Building 0.0s (0/0)                                                 docker:orbstack
[+] Creating 1/0
 โœ” Container memos-api-1  Running                                                  0.0s
[+] Building 0.0s (0/0)                                                 docker:orbstack
npm <command>

Usage:

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term>
npm help npm       more involved overview

All commands:

    access, adduser, audit, bugs, cache, ci, completion,
    config, dedupe, deprecate, diff, dist-tag, docs, doctor,
    edit, exec, explain, explore, find-dupes, fund, get, help,
    help-search, hook, init, install, install-ci-test,
    install-test, link, ll, login, logout, ls, org, outdated,
    owner, pack, ping, pkg, prefix, profile, prune, publish,
    query, rebuild, repo, restart, root, run-script, search,
    set, shrinkwrap, star, stars, start, stop, team, test,
    token, uninstall, unpublish, unstar, update, version, view,
    whoami

Specify configs in the ini-formatted file:
    /root/.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

[email protected] /usr/local/lib/node_modules/npm

However, it was wired that when running docker compose run web "npm install", the packages were installed correctly.

note about the `dsn`

Hi, ๐Ÿ‘‹

I would like to add a note about the dsn.
Many had issues with database connections.
One of them comes from not escaping the symbols in dsn such as escaping ! or @.

Percent-encoding may be used to include symbols with special meaning in any of the URI parts, e.g., replace = with %3D.

https://www.postgresql.org/docs/11/libpq-connect.html#id-1.7.3.8.3.6

You can use something like https://www.urlencoder.org/.


I would like make a PR for this. Where should I add this info?

Thanks for Memos ๐Ÿฅ—

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.