brantje / nextnote

A full Evernote / OneNote style WYSIWYG note editor for Nextcloud / ownCloud. Join our telegram at: https://t.me/NextNote
GNU Affero General Public License v3.0
163 stars 19 forks source link
nextcloud notes

NextNote (alpha)

Scrutinizer Code Quality
This application is a rewritten verion of ownNote.
The old Android App won't work, but no worries, we plan to develop a new one.

alpha-release
Alpha means in this case 'pretty stable', but it's possible that due to an update things will break / get sent to /dev/null.
If you value your notes please wait for a stable version.

Changes:

Pull requests are very welcome!

The whole app has been rebuild, so there will be some bugs in there.
Did you find a bug? Report it or fix it and send a PR.

Screenshots

save-as-pdf-example-smaller

recipe-example

nexnote-drag-and-drop-example-bigger

Features

Todo:

Chat

There is a Telegram chatroom available.

Installation

Scripted installation

You can also use this script developed by enoch85:

#!/bin/bash

# Variables
DISTRO=$(lsb_release -sd | cut -d ' ' -f 2)
OS=$(uname -v | grep -ic "Ubuntu")

# Functions
# Whiptail auto-size
calc_wt_size() {
    WT_HEIGHT=17
    WT_WIDTH=$(tput cols)

    if [ -z "$WT_WIDTH" ] || [ "$WT_WIDTH" -lt 60 ]; then
        WT_WIDTH=80
    fi
    if [ "$WT_WIDTH" -gt 178 ]; then
        WT_WIDTH=120
    fi
    WT_MENU_HEIGHT=$((WT_HEIGHT-7))
    export WT_MENU_HEIGHT
}

msg_box() {
local PROMPT="$1"
    whiptail --msgbox "${PROMPT}" "$WT_HEIGHT" "$WT_WIDTH"
}

################

# Check Ubuntu version
echo "Checking server OS and version..."
if [ "$OS" != 1 ]
then
msg_box "Ubuntu Server is required to run this script.
Please install that distro and try again.
You can find the download link here: https://www.ubuntu.com/download/server"
    exit 1
fi

if ! version 16.04 "$DISTRO" 18.04.4; then
msg_box "Ubuntu version $DISTRO must be between 16.04 - 16.04.4"
    exit 1
fi

# Install git if not existing
if [ "$(dpkg-query -W -f='${Status}' "git" 2>/dev/null | grep -c "ok installed")" != "1" ]
then
    apt update -q4
    apt install git -y
fi

pull() {
cd /var/www/nextcloud/apps || exit
rm -rf nextnote
git clone https://github.com/brantje/nextnote.git nextnote
chown -R www-data:www-data /var/www/nextcloud/apps/nextnote
sudo -u www-data php /var/www/nextcloud/occ app:enable nextnote
}

if pull
then
    exit
else
    echo "not sucessfull pull $(date)" > /var/log/nextnote_pull.log
fi

Simply just run it everytime you want to get the latest master code.

Development

NextNotes uses a single .js file for the templates.
This gives the benefit that we don't need to request every template with XHR. For CSS we use SASS so you need ruby and sass installed. templates.js and the CSS are built with grunt, so don't edit them as your changes will be overwritten next time grunt is ran.
To watch for changes use grunt watch