web: reconstructed project

* Added initial README.md
 * Removed old Make command for webv2
 * Created js, css folders and moved files accordingly
This commit is contained in:
Thomas Mathews 2022-11-12 08:43:23 -08:00
parent 81d62fd25a
commit 353eb0872f
19 changed files with 45 additions and 13 deletions

View file

@ -11,8 +11,4 @@ emojiregex: fake
dist: dist:
rsync -avzP ./ charon:/www/damus.io/web/ rsync -avzP ./ charon:/www/damus.io/web/
distv2:
rsync -avzP ./ charon:/www/damus.io/webv2/
.PHONY: fake .PHONY: fake

36
web/README.md Normal file
View file

@ -0,0 +1,36 @@
# Damus PWA
Here lies the code for the Damus web app, a client for the Nostr protocol. The
goal of this client is to be a better version of Twitter, but not to reproduce
all of it's functionality.
## Contribution Guide
There are rules to contributing to this client. Please ensure you read them
before making changes and supplying patch notes.
1. No transpilers. All source code should work out of the box.
2. Keep source code organised. Refer to the folder structure. If you have a
question, ask it.
3. Do not include your personal tools in the source code. Use your own scripts
outside of the project. This does not include build tools such as Make.
4. Spaces, no tabs.
5. Do not include binary files.
6. No NPM (and kin) environments. If you need a file from an external resource
mark the location in the "sources" file and add it to the repo.
7. Do not write code using experimental browser APIs.
8. Do not write animations in JavaScript, CSS only. Keep them short and snappy.
Animations should not be a forefront, but an enjoyable addition.
9. All new & modified code should be properly documented.
TODO Write about code style requirements & add number of spaces.
## Style Guide
TODO Write about the style guide.
## Terminology
* Sign Out - Not log out, logout, log off, etc.
* Sign In - Not Login, Log In, etc.

View file

@ -4,9 +4,9 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Damus</title> <title>Damus</title>
<link rel="stylesheet" href="styles.css?v=109"> <link rel="stylesheet" href="css/styles.css?v=109">
<link rel="stylesheet" href="damus.css?v=211"> <link rel="stylesheet" href="css/damus.css?v=211">
<link rel="stylesheet" href="fontawesome.css?v=2"> <link rel="stylesheet" href="css/fontawesome.css?v=2">
</head> </head>
<body> <body>
<div id="container"> <div id="container">
@ -31,8 +31,8 @@
</button></div> </button></div>
--> -->
<div> <div>
<button onclick="press_logout()" class="nav icon"> <button onclick="press_logout()" title="Sign Out" class="nav icon">
<i class="fa fa-fw fa-arrow-right-from-bracket"></i><span class="hide">Logout</span> <i class="fa fa-fw fa-arrow-right-from-bracket"></i><span class="hide">Sign Out</span>
</button></div> </button></div>
</div> </div>
<div id="content"> <div id="content">
@ -63,10 +63,10 @@
</div> </div>
</div> </div>
</div> </div>
<script src="noble-secp256k1.js?v=1"></script> <script src="js/noble-secp256k1.js?v=1"></script>
<script src="bech32.js?v=1"></script> <script src="js/bech32.js?v=1"></script>
<script src="nostr.js?v=6"></script> <script src="js/nostr.js?v=6"></script>
<script src="damus.js?v=65"></script> <script src="js/damus.js?v=65"></script>
<script> <script>
// I have to delay loading to wait for nos2x // I have to delay loading to wait for nos2x
const relay = setTimeout(damus_web_init, 100) const relay = setTimeout(damus_web_init, 100)