nanoplot 0.0.1

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.
@@ -0,0 +1,61 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <HTMLCodeStyleSettings>
4
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
+ </HTMLCodeStyleSettings>
6
+ <JSCodeStyleSettings version="0">
7
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
9
+ <option name="FORCE_QUOTE_STYlE" value="true" />
10
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
11
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
12
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
13
+ </JSCodeStyleSettings>
14
+ <TypeScriptCodeStyleSettings version="0">
15
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
16
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
17
+ <option name="FORCE_QUOTE_STYlE" value="true" />
18
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
19
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
20
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
21
+ </TypeScriptCodeStyleSettings>
22
+ <VueCodeStyleSettings>
23
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
24
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
25
+ </VueCodeStyleSettings>
26
+ <codeStyleSettings language="HTML">
27
+ <option name="SOFT_MARGINS" value="140" />
28
+ <indentOptions>
29
+ <option name="CONTINUATION_INDENT_SIZE" value="4" />
30
+ <option name="USE_TAB_CHARACTER" value="true" />
31
+ </indentOptions>
32
+ </codeStyleSettings>
33
+ <codeStyleSettings language="JavaScript">
34
+ <option name="SOFT_MARGINS" value="140" />
35
+ <indentOptions>
36
+ <option name="USE_TAB_CHARACTER" value="true" />
37
+ </indentOptions>
38
+ </codeStyleSettings>
39
+ <codeStyleSettings language="SCSS">
40
+ <indentOptions>
41
+ <option name="INDENT_SIZE" value="4" />
42
+ <option name="USE_TAB_CHARACTER" value="true" />
43
+ <option name="SMART_TABS" value="true" />
44
+ </indentOptions>
45
+ </codeStyleSettings>
46
+ <codeStyleSettings language="TypeScript">
47
+ <option name="SOFT_MARGINS" value="140" />
48
+ <indentOptions>
49
+ <option name="USE_TAB_CHARACTER" value="true" />
50
+ </indentOptions>
51
+ </codeStyleSettings>
52
+ <codeStyleSettings language="Vue">
53
+ <option name="SOFT_MARGINS" value="140" />
54
+ <indentOptions>
55
+ <option name="INDENT_SIZE" value="4" />
56
+ <option name="TAB_SIZE" value="4" />
57
+ <option name="USE_TAB_CHARACTER" value="true" />
58
+ </indentOptions>
59
+ </codeStyleSettings>
60
+ </code_scheme>
61
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/nanoplotx.iml" filepath="$PROJECT_DIR$/.idea/nanoplotx.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myConfigurationMode" value="AUTOMATIC" />
5
+ <option name="myRunOnSave" value="true" />
6
+ </component>
7
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/.prettierrc ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "printWidth": 140,
3
+ "tabWidth": 4,
4
+ "useTabs": true,
5
+ "arrowParens": "always",
6
+ "parser": "typescript",
7
+ "trailingComma": "all",
8
+ "overrides": [
9
+ {
10
+ "files": "*.json",
11
+ "options": {
12
+ "parser": "json"
13
+ }
14
+ }
15
+ ]
16
+ }
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Shanon Jackson
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.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ ## Get started
2
+ ```bash
3
+ bun i
4
+ bun run dev
5
+ ```
6
+
7
+ ### Contributing Guide [Placeholder]
8
+
9
+ ### Worldmap
10
+
11
+ - Make sure countries -> paths on map are mapped correctly.
12
+ - Make sure PathUtils.center is more accurate. (gpt generated and inaccurate)
13
+ - Use flag images for every country, and find CDN that's not what it's set to currently.
14
+ - Potential gradient helpers.
15
+ - Ensure tooltips have progressive enhancement from server->client, by adding ability to position tooltip to mouse via client only code.
16
+
17
+ ### LineGraph
18
+
19
+ - Ensure tooltips have progressive enhancement from server->client
20
+ -
package/bun.lockb ADDED
Binary file
package/bunfig.toml ADDED
@@ -0,0 +1,2 @@
1
+ [test]
2
+ preload = "./happydom.ts"
@@ -0,0 +1 @@
1
+ export type Placeholder = "";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ const placeholder = "placehloder";
package/happydom.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { GlobalRegistrator } from "@happy-dom/global-registrator";
2
+
3
+ GlobalRegistrator.register();
package/next-env.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /// <reference types="next" />
2
+ /// <reference types="next/image-types/global" />
3
+
4
+ // NOTE: This file should not be edited
5
+ // see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
package/next.config.js ADDED
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ webpack: (config) => {
3
+ // camelCase style names from css modules
4
+ config.module.rules
5
+ .find(({ oneOf }) => !!oneOf)
6
+ .oneOf.filter(({ use }) => JSON.stringify(use)?.includes("css-loader"))
7
+ .reduce((acc, { use }) => acc.concat(use), [])
8
+ .forEach(({ options }) => {
9
+ if (options.modules) {
10
+ options.modules.exportLocalsConvention = "camelCaseOnly";
11
+ }
12
+ });
13
+
14
+ return config;
15
+ },
16
+ };
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "nanoplot",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "types": "dist/export/index.d.ts",
6
+ "main": "dist/index.js",
7
+ "scripts": {
8
+ "dev": "next dev",
9
+ "build": "next build",
10
+ "start": "next start",
11
+ "test": "bun test --watch"
12
+ },
13
+ "dependencies": {
14
+ "next": "15.0.3",
15
+ "react": "19.0.0-rc-66855b96-20241106",
16
+ "react-dom": "19.0.0-rc-66855b96-20241106"
17
+ },
18
+ "devDependencies": {
19
+ "@happy-dom/global-registrator": "^15.11.6",
20
+ "@testing-library/dom": "^10.4.0",
21
+ "@testing-library/react": "^16.0.1",
22
+ "@types/node": "^20",
23
+ "@types/react": "^18",
24
+ "@types/react-dom": "^18",
25
+ "bun-types": "^1.1.36",
26
+ "postcss": "^8",
27
+ "prettier": "^3.3.3",
28
+ "sass": "^1.80.6",
29
+ "tailwindcss": "^3.4.1",
30
+ "typescript": "^5"
31
+ }
32
+ }
@@ -0,0 +1,8 @@
1
+ /** @type {import('postcss-load-config').Config} */
2
+ const config = {
3
+ plugins: {
4
+ tailwindcss: {},
5
+ },
6
+ };
7
+
8
+ export default config;
@@ -0,0 +1,18 @@
1
+ import type { Config } from "tailwindcss";
2
+
3
+ export default {
4
+ content: [
5
+ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
6
+ "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
7
+ "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
8
+ ],
9
+ theme: {
10
+ extend: {
11
+ colors: {
12
+ background: "var(--background)",
13
+ foreground: "var(--foreground)",
14
+ },
15
+ },
16
+ },
17
+ plugins: [],
18
+ } satisfies Config;
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "preserve",
15
+ "incremental": true,
16
+ "types": ["bun-types"],
17
+ "plugins": [
18
+ {
19
+ "name": "next"
20
+ }
21
+ ],
22
+ "paths": {
23
+ "@/*": ["./src/*"]
24
+ }
25
+ },
26
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27
+ "exclude": ["node_modules"]
28
+ }