Skip to content

Commit 85f05e4

Browse files
committed
init
0 parents  commit 85f05e4

15 files changed

+13386
-0
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

.eslintrc.js

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
module.exports = {
2+
"globals": {
3+
"define": true
4+
},
5+
"env": {
6+
"browser": true,
7+
"commonjs": true,
8+
"node": true
9+
},
10+
"extends": "eslint:recommended",
11+
"rules": {
12+
"indent": [
13+
"error",
14+
2
15+
],
16+
"linebreak-style": [
17+
"error",
18+
"unix"
19+
],
20+
"quotes": [
21+
"error",
22+
"single"
23+
],
24+
"semi": [
25+
"error",
26+
"always"
27+
],
28+
"no-warning-comments": [
29+
1,
30+
{
31+
"terms": ["todo", "fixme"],
32+
"location": "anywhere"
33+
}
34+
],
35+
"object-curly-spacing": [
36+
"error",
37+
"never"
38+
],
39+
"react/jsx-uses-vars": "error",
40+
"react/jsx-uses-react": "error"
41+
},
42+
"plugins": [
43+
"html",
44+
"react",
45+
"eslint-plugin-react"
46+
],
47+
"parser": "babel-eslint",
48+
"parserOptions": {
49+
"sourceType": "module",
50+
"ecmaFeatures": {
51+
"jsx": true,
52+
"experimentalObjectRestSpread": true
53+
}
54+
}
55+
};

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_*
2+
/dist
3+
/node_modules
4+
/README.html
5+
/npm-debug.log

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Ulf Bartel ([email protected])
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
ens-redirect
2+
============
3+
4+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/berlincode/ens-redirect/blob/master/LICENSE)
5+
6+
This is a small ENS (ethereum Name system) name resolver that redirects to an ipfs Gateway.
7+
Works with all browsers.
8+
9+
It should help start adoption of ENS until all major Browsers are aware of ENS/IPFS natively.
10+
11+
Test it now:
12+
------------
13+
14+
We've deployed this project to liquidmode.com. So if you want to visit e.g. **www.digioptions**.eth you
15+
can now use [**www.digioptions**.liquidmode.com](http://www.digioptions.liquidmode.com).
16+
17+
Again, this should work in all Browsers.
18+
19+
20+
Build
21+
-----
22+
Just clone this repository. Add your infura project id to 'js/client.js'.
23+
24+
Now run
25+
26+
```bash
27+
npm install
28+
29+
npm run build
30+
```
31+
32+
You will find the result as 'dist/index.html'
33+
34+
Deployment
35+
----------
36+
37+
It is important to deploy this to script to a wildcard subdomain and serve 'dist/index.html' for
38+
all URL paths!
39+
40+
Do not forget to register your domain as "whitelist origin" in infura's project setting.
41+
This hast to be (of course) a wildcard like '\*.example.com'.
42+
43+
44+
Additional information
45+
----------------------
46+
47+
This service makes use of Infura's Ethereum RPC provider
48+
[https://mainnet.infura.io](https://mainnet.infura.io) as well as Infura's IPFS gateway at
49+
[https://ipfs.infura.io/ipfs/](https://ipfs.infura.io/ipfs/). Both may be set/changed in the source code.
50+
51+
52+
This project makes use of ENS contenthash name resolution [EIP-1577](https://eips.ethereum.org/EIPS/eip-1577).
53+
54+
55+
Public repository
56+
-----------------
57+
58+
[https://github.com/berlincode/ens-redirect](https://github.com/berlincode/ens-redirect)
59+
60+
Copyright and license
61+
---------------------
62+
63+
Code and documentation copyright Ulf Bartel. Code is licensed under the
64+
[MIT license](./LICENSE).
65+
66+

0 commit comments

Comments
 (0)