strnow 1.0.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +66 -9
  3. package/dist/strnow.cjs +36 -0
  4. package/dist/strnow.js +12 -0
  5. package/package.json +42 -11
  6. package/demo.js +0 -3
  7. package/docs/asset-manifest.json +0 -25
  8. package/docs/favicon.ico +0 -0
  9. package/docs/index.html +0 -1
  10. package/docs/logo192.png +0 -0
  11. package/docs/logo512.png +0 -0
  12. package/docs/manifest.json +0 -25
  13. package/docs/precache-manifest.bb2fdff31f6c4ecc48e906f867f88907.js +0 -30
  14. package/docs/robots.txt +0 -3
  15. package/docs/service-worker.js +0 -39
  16. package/docs/static/css/2.de424728.chunk.css +0 -7
  17. package/docs/static/css/2.de424728.chunk.css.map +0 -1
  18. package/docs/static/css/main.c2c1f5e2.chunk.css +0 -15
  19. package/docs/static/css/main.c2c1f5e2.chunk.css.map +0 -1
  20. package/docs/static/js/2.e17ed3b5.chunk.js +0 -3
  21. package/docs/static/js/2.e17ed3b5.chunk.js.LICENSE.txt +0 -38
  22. package/docs/static/js/2.e17ed3b5.chunk.js.map +0 -1
  23. package/docs/static/js/main.5360092b.chunk.js +0 -2
  24. package/docs/static/js/main.5360092b.chunk.js.map +0 -1
  25. package/docs/static/js/runtime-main.f74c613d.js +0 -2
  26. package/docs/static/js/runtime-main.f74c613d.js.map +0 -1
  27. package/page/README.md +0 -68
  28. package/page/package-lock.json +0 -13503
  29. package/page/package.json +0 -45
  30. package/page/public/favicon.ico +0 -0
  31. package/page/public/index.html +0 -44
  32. package/page/public/logo192.png +0 -0
  33. package/page/public/logo512.png +0 -0
  34. package/page/public/manifest.json +0 -25
  35. package/page/public/robots.txt +0 -3
  36. package/page/src/App.css +0 -38
  37. package/page/src/App.js +0 -18
  38. package/page/src/App.test.js +0 -9
  39. package/page/src/Components/Header/index.js +0 -21
  40. package/page/src/Components/Header/style.css +0 -3
  41. package/page/src/css/bootstrap.dark.min.css +0 -12
  42. package/page/src/index.css +0 -13
  43. package/page/src/index.js +0 -17
  44. package/page/src/logo.svg +0 -7
  45. package/page/src/serviceWorker.js +0 -141
  46. package/page/src/setupTests.js +0 -5
  47. package/strnow.js +0 -6
package/page/package.json DELETED
@@ -1,45 +0,0 @@
1
- {
2
- "name": "page",
3
- "version": "0.1.0",
4
- "private": true,
5
- "homepage": "http://marceloxp.github.io/strnow/",
6
- "dependencies": {
7
- "@testing-library/jest-dom": "^5.16.5",
8
- "@testing-library/react": "^13.3.0",
9
- "@testing-library/user-event": "^14.4.3",
10
- "bootstrap": "^5.2.0",
11
- "react": "^18.2.0",
12
- "react-bootstrap": "^2.5.0",
13
- "react-dom": "^18.2.0"
14
- },
15
- "devDependencies": {
16
- "npm-force-resolutions": "0.0.10",
17
- "react-scripts": "5.0.1"
18
- },
19
- "resolutions": {
20
- "nth-check": ">=2.0.1",
21
- "glob-parent": ">=5.1.2"
22
- },
23
- "scripts": {
24
- "preinstall": "npx npm-force-resolutions",
25
- "start": "react-scripts start",
26
- "build": "react-scripts build && rm -rf ../docs && mv build ../docs",
27
- "test": "react-scripts test",
28
- "eject": "react-scripts eject"
29
- },
30
- "eslintConfig": {
31
- "extends": "react-app"
32
- },
33
- "browserslist": {
34
- "production": [
35
- ">0.2%",
36
- "not dead",
37
- "not op_mini all"
38
- ],
39
- "development": [
40
- "last 1 chrome version",
41
- "last 1 firefox version",
42
- "last 1 safari version"
43
- ]
44
- }
45
- }
Binary file
@@ -1,44 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="theme-color" content="#000000" />
8
- <meta
9
- name="description"
10
- content="Get formated date and time (YYYY-MM-DD HH:mm:ss)"
11
- />
12
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
- <!--
14
- manifest.json provides metadata used when your web app is installed on a
15
- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16
- -->
17
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18
- <!--
19
- Notice the use of %PUBLIC_URL% in the tags above.
20
- It will be replaced with the URL of the `public` folder during the build.
21
- Only files inside the `public` folder can be referenced from the HTML.
22
-
23
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24
- work correctly both with client-side routing and a non-root public URL.
25
- Learn how to configure a non-root public URL by running `npm run build`.
26
- -->
27
- <title>StrNow - Demo</title>
28
- </head>
29
- <body>
30
- <noscript>You need to enable JavaScript to run this app.</noscript>
31
- <a href="https://github.com/marceloxp/strnow" target="_blank" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
32
- <div id="root"></div>
33
- <!--
34
- This HTML file is a template.
35
- If you open it directly in the browser, you will see an empty page.
36
-
37
- You can add webfonts, meta tags, or analytics to this file.
38
- The build step will place the bundled scripts into the <body> tag.
39
-
40
- To begin the development, run `npm start` or `yarn start`.
41
- To create a production bundle, use `npm run build` or `yarn build`.
42
- -->
43
- </body>
44
- </html>
Binary file
Binary file
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/page/src/App.css DELETED
@@ -1,38 +0,0 @@
1
- .App {
2
- text-align: center;
3
- }
4
-
5
- .App-logo {
6
- height: 40vmin;
7
- pointer-events: none;
8
- }
9
-
10
- @media (prefers-reduced-motion: no-preference) {
11
- .App-logo {
12
- animation: App-logo-spin infinite 20s linear;
13
- }
14
- }
15
-
16
- .App-header {
17
- background-color: #282c34;
18
- min-height: 100vh;
19
- display: flex;
20
- flex-direction: column;
21
- align-items: center;
22
- justify-content: center;
23
- font-size: calc(10px + 2vmin);
24
- color: white;
25
- }
26
-
27
- .App-link {
28
- color: #61dafb;
29
- }
30
-
31
- @keyframes App-logo-spin {
32
- from {
33
- transform: rotate(0deg);
34
- }
35
- to {
36
- transform: rotate(360deg);
37
- }
38
- }
package/page/src/App.js DELETED
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import 'bootstrap/dist/css/bootstrap.min.css';
3
- import './css/bootstrap.dark.min.css';
4
- import Header from "./Components/Header";
5
- import './App.css';
6
-
7
- function App() {
8
- return (
9
- <div className="App">
10
- <Header />
11
-
12
- <iframe height="400px" width="100%" title="StwNow - Demo" src="https://repl.it/@marceloxp/StrNow-Demo?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
13
-
14
- </div>
15
- );
16
- }
17
-
18
- export default App;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
- import App from './App';
4
-
5
- test('renders learn react link', () => {
6
- const { getByText } = render(<App />);
7
- const linkElement = getByText(/learn react/i);
8
- expect(linkElement).toBeInTheDocument();
9
- });
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { Button } from 'react-bootstrap';
3
- import './style.css';
4
-
5
- function Header() {
6
- return (
7
- <div className="jumbotron">
8
- <h1>StrNow</h1>
9
- <p>
10
- Get formated date and time
11
- <br/>
12
- <pre>YYYY-MM-DD HH:mm:ss</pre>
13
- </p>
14
- <p>
15
- <Button href="https://github.com/marceloxp/strnow/archive/master.zip" variant="primary">Download</Button>
16
- </p>
17
- </div>
18
- )
19
- }
20
-
21
- export default Header;
@@ -1,3 +0,0 @@
1
- .jumbotron {
2
- text-align: center;
3
- }