-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
253b4e5
commit 9f6e5d8
Showing
165 changed files
with
15,370 additions
and
23 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
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Title: About Us | ||
Date: 2023-11-20 | ||
Author: Slash | ||
|
||
# About Our Website | ||
|
||
|
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,33 @@ | ||
{ | ||
"name": "techstocksinsight.github.io", | ||
"version": "1.0.0", | ||
"description": "Welcome to the cool side of finance — where charts tell stories and success is just a click away!", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "webpack serve --mode development --open", | ||
"build": "webpack --mode production && mkdir -p themes/stocks/static/js && cp dist/bundle.js themes/stocks/static/js/bundle.js && cp dist/styles.css themes/stocks/static/stylesheet/styles.css" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/core": "^7.23.3", | ||
"@babel/preset-env": "^7.23.3", | ||
"babel-loader": "^9.1.3", | ||
"css-loader": "^6.8.1", | ||
"html-webpack-plugin": "^5.5.3", | ||
"mini-css-extract-plugin": "^2.7.6", | ||
"node-sass": "^9.0.0", | ||
"sass-loader": "^13.3.2", | ||
"style-loader": "^3.3.3", | ||
"webpack": "^5.89.0", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-dev-server": "^4.15.1" | ||
}, | ||
"dependencies": { | ||
"bootstrap": "^5.3.2", | ||
"highcharts": "^11.2.0", | ||
"jquery": "^3.7.1" | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,27 @@ | ||
<!-- src/index.html --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>My NPM Project</title> | ||
</head> | ||
<body> | ||
<h1>Hello, NPM Project!</h1> | ||
|
||
<div id="chartContainer" style="height: 300px;"></div> | ||
|
||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
highcharts.chart('chartContainer', { | ||
title: { | ||
text: 'My Chart' | ||
}, | ||
series: [{ | ||
data: [1, 3, 2, 4] | ||
}] | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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,30 @@ | ||
// src/index.js | ||
import 'bootstrap'; | ||
import 'bootstrap/dist/css/bootstrap.min.css'; | ||
import highcharts from 'highcharts'; | ||
|
||
import Highcharts from 'highcharts'; | ||
|
||
console.log('Hello from index.js!'); | ||
|
||
// Dynamic chart logic | ||
function createDynamicChart() { | ||
// Get chart container and attributes | ||
const chartContainer = document.getElementById('chartContainer'); | ||
const title = chartContainer.getAttribute('data-chart-title') || 'Dynamic Chart'; | ||
const dataAttribute = chartContainer.getAttribute('data-chart-data'); | ||
const chartData = dataAttribute ? JSON.parse(dataAttribute) : [5, 2, 8, 1]; | ||
|
||
// Create Highcharts chart | ||
Highcharts.chart(chartContainer, { | ||
title: { | ||
text: title | ||
}, | ||
series: [{ | ||
data: chartData | ||
}] | ||
}); | ||
} | ||
|
||
// Trigger the dynamic chart creation | ||
createDynamicChart(); |
Oops, something went wrong.