forked from brantje/nextnote
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 783d2db
Showing
289 changed files
with
32,945 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Authors | ||
|
||
* Ben Curtis: <no-spam @ no-domain . com> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
owncloud-ownnote (0.0.1) | ||
* First release |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ownNote | ||
The official release information and downloads can be found at: https://apps.owncloud.com/content/show.php/ownNote+-+Notes+Application?content=168512 | ||
|
||
## Installation | ||
- Place this app in **owncloud/apps/ownnote** (Rename the extracted ZIP to "ownnote" or you will receive errors) | ||
- Note: *custom_csp_policy* changes are no longer required | ||
|
||
## Mobile Apps | ||
ownNote for Android in the Google Play store: http://goo.gl/pHjQY9 | ||
|
||
ownNote for iOS: *In development* | ||
|
||
|
||
## Importing from Evernote or other html notes | ||
The import process will take HTML files on your local hard drive and import the images into the notes as Base64. To import notes: | ||
- Export your notes from Evernote using default settings as individual *html* files | ||
- If you are importing notes that are not from Evernote, ensure they use the *html* extension, not the *htm* extension. | ||
- Copy the *html* files and the folders created containing the images into the */Notes* folder in ownCloud | ||
- Load the Notes listing screen. This will import all of the images into the *html* notes, and rename them to *htm* | ||
- Once the rename has taken place, you can safely delete all the image folders that were copied | ||
- NOTE: Windows Explorer links the *html* file to it folder of images. If you delete the folder, Windows will sometimes delete the newly renamed *htm* file as well. It is recommended you delete the folders from within the Web Interface to be safe. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
OCP\User::checkAdminUser(); | ||
|
||
$tmpl = new OCP\Template('ownnote', 'admin'); | ||
$tmpl->assign('folder', OCP\Config::getAppValue('ownnote', 'folder', '')); | ||
$tmpl->assign('sharemode', OCP\Config::getAppValue('ownnote', 'sharemode', '')); | ||
$tmpl->assign('disableAnnouncement', OCP\Config::getAppValue('ownnote', 'disableAnnouncement', '')); | ||
|
||
return $tmpl -> fetchPage(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* ownCloud - ownnote | ||
* | ||
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Ben Curtis <[email protected]> | ||
* @copyright Ben Curtis 2015 | ||
*/ | ||
|
||
namespace OCA\OwnNote\AppInfo; | ||
|
||
$l = \OC::$server->getL10N('ownnote'); | ||
|
||
\OCP\Share::registerBackend ('ownnote', '\OCA\OwnNote\ShareBackend\OwnnoteShareBackend'); | ||
\OCP\App::registerAdmin('ownnote', 'admin'); | ||
|
||
$config = \OC::$server->getConfig(); | ||
|
||
\OCP\App::addNavigationEntry(array( | ||
// the string under which your app will be referenced in owncloud | ||
'id' => 'ownnote', | ||
|
||
"appname" => 'ownnote', | ||
|
||
// sorting weight for the navigation. The higher the number, the higher | ||
// will it be listed in the navigation | ||
'order' => 10, | ||
|
||
// the route that will be shown on startup | ||
'href' => \OCP\Util::linkToRoute('ownnote.page.index'), | ||
|
||
// the icon that will be shown in the navigation | ||
// this file needs to exist in img/ | ||
'icon' => \OCP\Util::imagePath('ownnote', 'app.svg'), | ||
|
||
// the title of your application. This will be used in the | ||
// navigation or on the settings page of your app | ||
//'name' => \OC_L10N::get('ownnote')->t('Own Note') | ||
'name' => $l->t('Notes') | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
/** | ||
* ownCloud - ownnote | ||
* | ||
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Ben Curtis <[email protected]> | ||
* @copyright Ben Curtis 2015 | ||
*/ | ||
namespace OCA\OwnNote\AppInfo; | ||
|
||
use \OCP\AppFramework\App; | ||
use \OCP\IContainer; | ||
|
||
use \OCA\OwnNote\Controller\PageController; | ||
use \OCA\OwnNote\Controller\OwnnoteApiController; | ||
use \OCA\OwnNote\Controller\OwnnoteAjaxController; | ||
|
||
class Application extends App { | ||
|
||
public function __construct(array $urlParams = array()) { | ||
parent::__construct ( 'ownnote', $urlParams ); | ||
|
||
$container = $this->getContainer (); | ||
|
||
/** | ||
* Controllers | ||
*/ | ||
$container->registerService ( 'PageController', function (IContainer $c) { | ||
return new PageController ( $c->query ( 'AppName' ), $c->query ( 'Request' ), $c->query ( 'UserId' ) ); | ||
} ); | ||
|
||
$container->registerService ( 'OwnnoteApiController', function ($c) { | ||
return new OwnnoteApiController ( $c->query ( 'AppName' ), $c->query ( 'Request' ), $c->query ( 'UserManager' ), $c->query ( 'Logger' ) ); | ||
} ); | ||
|
||
$container->registerService ( 'OwnnoteAjaxController', function ($c) { | ||
return new OwnnoteAjaxController ( $c->query ( 'AppName' ), $c->query ( 'Request' ), $c->query ( 'UserManager' ), $c->query ( 'Logger' ) ); | ||
} ); | ||
|
||
/** | ||
* Core | ||
*/ | ||
$container->registerService ( 'UserId', function (IContainer $c) { | ||
return \OCP\User::getUser (); | ||
} ); | ||
|
||
$container->registerService ( 'UserManager', function ($c) { | ||
return $c->query ( 'ServerContainer' )->getUserManager (); | ||
} ); | ||
|
||
$container->registerService ( 'Logger', function ($c) { | ||
return $c->query ( 'ServerContainer' )->getLogger (); | ||
} ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<database> | ||
<name>ownnote</name> | ||
<create>true</create> | ||
<overwrite>false</overwrite> | ||
<charset>utf8</charset> | ||
<table> | ||
<name>*dbprefix*ownnote</name> | ||
<declaration> | ||
<field> | ||
<name>id</name> | ||
<type>integer</type> | ||
<default>0</default> | ||
<notnull>true</notnull> | ||
<autoincrement>1</autoincrement> | ||
<length>32</length> | ||
</field> | ||
<field> | ||
<name>uid</name> | ||
<type>text</type> | ||
<notnull>true</notnull> | ||
<length>255</length> | ||
</field> | ||
<field> | ||
<name>name</name> | ||
<type>text</type> | ||
<notnull>true</notnull> | ||
<length>255</length> | ||
</field> | ||
<field> | ||
<name>grouping</name> | ||
<type>text</type> | ||
<notnull>true</notnull> | ||
<length>255</length> | ||
</field> | ||
<field> | ||
<name>shared</name> | ||
<type>clob</type> | ||
<notnull>true</notnull> | ||
<default></default> | ||
</field> | ||
<field> | ||
<name>mtime</name> | ||
<type>integer</type> | ||
<notnull>true</notnull> | ||
<length>32</length> | ||
</field> | ||
<field> | ||
<name>deleted</name> | ||
<type>integer</type> | ||
<notnull>true</notnull> | ||
<default>0</default> | ||
<length>1</length> | ||
</field> | ||
<field> | ||
<name>note</name> | ||
<type>clob</type> | ||
<notnull>true</notnull> | ||
</field> | ||
</declaration> | ||
</table> | ||
<table> | ||
<name>*dbprefix*ownnote_parts</name> | ||
<declaration> | ||
<field> | ||
<name>pid</name> | ||
<type>integer</type> | ||
<default>0</default> | ||
<notnull>true</notnull> | ||
<autoincrement>1</autoincrement> | ||
<length>32</length> | ||
</field> | ||
<field> | ||
<name>id</name> | ||
<type>integer</type> | ||
<default>0</default> | ||
<notnull>true</notnull> | ||
<length>32</length> | ||
</field> | ||
<field> | ||
<name>note</name> | ||
<type>clob</type> | ||
<notnull>true</notnull> | ||
</field> | ||
</declaration> | ||
</table> | ||
</database> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<info> | ||
<id>ownnote</id> | ||
<name>OwnNote</name> | ||
<description>ownnote</description> | ||
<licence>AGPL</licence> | ||
<author>Ben Curtis</author> | ||
<version>1.1</version> | ||
<requiremin>9.1</requiremin> | ||
<namespace>OwnNote</namespace> | ||
<dependencies> | ||
<lib>curl</lib> | ||
<owncloud min-version="9.1" max-version="9.2" /> | ||
<nextcloud min-version="9" max-version="13"/> | ||
</dependencies> | ||
</info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
/** | ||
* ownCloud - ownnote | ||
* | ||
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Ben Curtis <[email protected]> | ||
* @copyright Ben Curtis 2015 | ||
*/ | ||
|
||
namespace OCA\OwnNote\AppInfo; | ||
|
||
/** | ||
* Create your routes in here. The name is the lowercase name of the controller | ||
* without the controller part, the stuff after the hash is the method. | ||
* e.g. page#index -> PageController->index() | ||
* | ||
* The controller class has to be registered in the application.php file since | ||
* it's instantiated in there | ||
*/ | ||
$application = new Application(); | ||
|
||
$application->registerRoutes($this, array('routes' => array( | ||
array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'), | ||
array('name' => 'ownnote_ajax#ajaxsetval', 'url' => '/ajax/v0.2/ajaxsetval', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxgetsharemode', 'url' => '/ajax/v0.2/ajaxgetsharemode', 'verb' => 'GET'), | ||
array('name' => 'ownnote_api#index', 'url' => '/api/v0.2/ownnote', 'verb' => 'GET'), | ||
array('name' => 'ownnote_ajax#ajaxindex', 'url' => '/ajax/v0.2/ownnote/ajaxindex', 'verb' => 'GET'), | ||
array('name' => 'ownnote_api#remoteindex', 'url' => '/api/v0.2/ownnote/remoteindex', 'verb' => 'GET'), | ||
array('name' => 'ownnote_api#mobileindex', 'url' => '/api/v0.2/ownnote/mobileindex', 'verb' => 'GET'), | ||
array('name' => 'ownnote_api#announcement', 'url' => '/api/v0.2/ownnote/announcement', 'verb' => 'GET'), | ||
array('name' => 'ownnote_ajax#ajaxannouncement', 'url' => '/ajax/v0.2/ownnote/ajaxannouncement', 'verb' => 'GET'), | ||
array('name' => 'ownnote_api#version', 'url' => '/api/v0.2/ownnote/version', 'verb' => 'GET'), | ||
array('name' => 'ownnote_ajax#ajaxversion', 'url' => '/ajax/v0.2/ownnote/ajaxversion', 'verb' => 'GET'), | ||
|
||
array('name' => 'ownnote_api#ren', 'url' => '/api/v0.2/ownnote/ren', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxren', 'url' => '/ajax/v0.2/ownnote/ajaxren', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#edit', 'url' => '/api/v0.2/ownnote/edit', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxedit', 'url' => '/ajax/v0.2/ownnote/ajaxedit', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#del', 'url' => '/api/v0.2/ownnote/del', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxdel', 'url' => '/ajax/v0.2/ownnote/ajaxdel', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#share', 'url' => '/api/v0.2/ownnote/share', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxshare', 'url' => '/ajax/v0.2/ownnote/ajaxshare', 'verb' => 'POST'), | ||
|
||
array('name' => 'ownnote_shares#getshares', 'url' => '/api/v0.2/ownnote/shares', 'verb' => 'GET'), | ||
array('name' => 'ownnote_shares#share', 'url' => '/api/v0.2/ownnote/shares', 'verb' => 'POST'), | ||
array('name' => 'ownnote_shares#unshare', 'url' => '/api/v0.2/ownnote/shares/{itemSource}', 'verb' => 'DELETE', 'requirements' => array('itemSource' => '.+')), | ||
array('name' => 'ownnote_shares#setpermissions', 'url' => '/api/v0.2/ownnote/shares/{itemSource}/permissions', 'verb' => 'PUT', 'requirements' => array('itemSource' => '.+')), | ||
|
||
array('name' => 'ownnote_api#save', 'url' => '/api/v0.2/ownnote/save', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxsave', 'url' => '/ajax/v0.2/ownnote/ajaxsave', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#create', 'url' => '/api/v0.2/ownnote/create', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxcreate', 'url' => '/ajax/v0.2/ownnote/ajaxcreate', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#delgroup', 'url' => '/api/v0.2/ownnote/delgroup', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxdelgroup', 'url' => '/ajax/v0.2/ownnote/ajaxdelgroup', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#rengroup', 'url' => '/api/v0.2/ownnote/rengroup', 'verb' => 'POST'), | ||
array('name' => 'ownnote_ajax#ajaxrengroup', 'url' => '/ajax/v0.2/ownnote/ajaxrengroup', 'verb' => 'POST'), | ||
array('name' => 'ownnote_api#preflighted_cors', 'url' => '/api/v0.2/{path}', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')), | ||
))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.1 |
Oops, something went wrong.