-
Notifications
You must be signed in to change notification settings - Fork 4
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 b8b8a9f
Showing
46 changed files
with
19,390 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,2 @@ | ||
node_modules | ||
dist |
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,39 @@ | ||
pouchdb-fauxton-logic | ||
===================== | ||
|
||
This repository contains the JavaScript that's added to | ||
[pouchdb-fauxton-base](https://github.com/marten-de-vries/pouchdb-fauxton-base) | ||
to make a working version of Fauxton running on top of PouchDB. | ||
|
||
It does that by injecting a mock XHR object in the Fauxton page, which | ||
converts all requests made by Fauxton into | ||
[CouchDB request objects](https://docs.couchdb.org/en/latest/json-structure.html#request-object). | ||
These are then converted to PouchDB method calls by | ||
[pouchdb-route](https://www.npmjs.org/package/pouchdb-route). The result | ||
is a [CouchDB response object](https://docs.couchdb.org/en/latest/json-structure.html#response-object), | ||
which is returned by the mock xhr object as the response to the request. | ||
|
||
Tests | ||
----- | ||
|
||
npm install #first time only | ||
npm test | ||
|
||
Building | ||
-------- | ||
|
||
First, make sure the `/fauxton` directory contains the result of a build | ||
of [pouchdb-fauxton-base](https://github.com/marten-de-vries/pouchdb-fauxton-base). | ||
|
||
There are different ways to build PouchDB-Fauxton. The basic one is: | ||
|
||
npm install #first time only | ||
npm run build | ||
|
||
Put the `/fauxton` directory somewhere on a web server, and that's it! | ||
|
||
If you want to build a version of pouchdb-fauxton for use in a Firefox | ||
add-on or Chrome extension, check out their | ||
[respective](https://github.com/marten-de-vries/pouchdb-fauxton-firefox-addon) | ||
[repositories](https://github.com/marten-de-vries/pouchdb-fauxton-chrome-extension) | ||
for information on that. |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<!doctype html> | ||
|
||
<!-- | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
// use this file except in compliance with the License. You may obtain a copy of | ||
// the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
// License for the specific language governing permissions and limitations under | ||
// the License. | ||
--> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta http-equiv="Content-Language" content="en" /> | ||
|
||
<title>PouchDB Server</title> | ||
|
||
<!-- Application styles. --> | ||
<link rel="stylesheet" href="./css/index.css?v1.0"> | ||
|
||
</head> | ||
|
||
<body id="home"> | ||
<!-- Main container. --> | ||
<div role="main" id="main"> | ||
<div id="global-notifications" class="container errors-container"></div> | ||
<div id="app-container"></div> | ||
</div> | ||
|
||
<!-- Application source. --> | ||
<script src="./js/pouchdb-offline.js"></script> | ||
<script data-main="/config" src="./js/require.js?v1.0"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.