瀏覽代碼

Merge branch 'master' of http://gogs.ici.ro:3000/mihai.apostol/Market_Place_NFT

Apostol Mihai 2 年之前
父節點
當前提交
eeed65b611

+ 1 - 0
Frontend/info.txt

@@ -0,0 +1 @@
+Frontend repo will be added here

+ 0 - 39
NFTmarket/assets/index.js

@@ -1,39 +0,0 @@
-import React from 'react';
-import ReactDOM from "react-dom";
-import styled from 'styled-components';
-
-function Welcome(props) {
-    return <h1>Hello, {props.name}</h1>;
-}
-
-function MenuButton(props) {
-    const { item } = props
-    return (
-        <MenuItem title={item.title}>
-          {item.title}
-        </MenuItem>
-    )
-}
-
-const MenuItem = styled.div`
-  color: black;
-  display: grid;
-  grid-template-columns: 24px auto;
-  align-items: center;
-  padding: 10px;
-  transition: 0.5s ease-out;
-  border-radius: 10px;
-
-  :hover {
-    background: rgba(255, 255, 255, 0.1);
-    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1),
-      inset 0px 0px 0px 0.5px rgba(255, 255, 255, 0.2);
-  }
-`
-const array = [{ title: "Emil"}, { title: "Mihai"}, { title: "Paul"}]
-const value = JSON.parse(document.getElementById('count').textContent);
-const root = ReactDOM.createRoot(document.getElementById('root'));
-const element = <MenuButton item={ { title: "Emil"} } />;
-const element2 = array.map( (title) => <MenuButton item={title} />)
-root.render(element2);
-alert(value);

文件差異過大導致無法顯示
+ 0 - 296
NFTmarket/static/index-bundle.js


+ 0 - 4
NFTmarket/templates/base.html

@@ -16,10 +16,6 @@
       {% block content %}
       {% endblock %}
 
-      <div id="root" />
-
-      <script src="{% static 'index-bundle.js' %}"></script>
-
   </div>
   
 </body>

+ 0 - 4
NFTmarket/templates/dashboard/home.html

@@ -3,8 +3,4 @@
 
 {% block content %}
 
-<h2>Home Page, welcome {{count}}</h2>
-
-{{ count|json_script:'count' }}
-
 {% endblock content %}

文件差異過大導致無法顯示
+ 0 - 6655
package-lock.json


+ 0 - 31
package.json

@@ -1,31 +0,0 @@
-{
-  "name": "market_place_nft",
-  "version": "1.0.0",
-  "description": "## Setup",
-  "main": "index.js",
-  "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1",
-    "dev": "webpack --mode development --watch"
-  },
-  "repository": {
-    "type": "git",
-    "url": "http://gogs.ici.ro:3000/mihai.apostol/Market_Place_NFT.git"
-  },
-  "keywords": [],
-  "author": "",
-  "license": "ISC",
-  "devDependencies": {
-    "@babel/core": "^7.17.10",
-    "@babel/preset-env": "^7.17.10",
-    "@babel/preset-react": "^7.16.7",
-    "babel-loader": "^8.2.5",
-    "webpack": "^5.72.0",
-    "webpack-cli": "^4.9.2"
-  },
-  "dependencies": {
-    "react": "^18.1.0",
-    "react-dom": "^18.1.0",
-    "scss": "^0.2.4",
-    "styled-components": "^5.3.0"
-  }
-}

+ 0 - 19
webpack.config.js

@@ -1,19 +0,0 @@
-const path = require('path');
-
-module.exports = {
-  entry: './NFTmarket/assets/index.js',  // path to our input file
-  output: {
-    filename: 'index-bundle.js',  // output bundle file name
-    path: path.resolve(__dirname, './NFTmarket/static'),  // path to our Django static directory
-  },
-  module: {
-    rules: [
-      {
-        test: /\.(js|jsx)$/,
-        exclude: /node_modules/,
-        loader: "babel-loader",
-        options: { presets: ["@babel/preset-env", "@babel/preset-react"] }
-      },
-    ]
-  }
-};