Kaynağa Gözat

fix preloader profile page

makstravm 2 yıl önce
ebeveyn
işleme
4af09589ca

+ 6 - 0
hipstagram/.htaccess

@@ -0,0 +1,6 @@
+RewriteEngine on
+# If a directory or a file exists, use the request directly
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+# Otherwise forward the request to index.html
+RewriteRule . index.html [L]

+ 19 - 0
hipstagram/asset-manifest.json

@@ -0,0 +1,19 @@
+{
+  "files": {
+    "main.css": "/static/css/main.31db6286.css",
+    "main.js": "/static/js/main.cffecb2b.js",
+    "static/js/787.5a005b54.chunk.js": "/static/js/787.5a005b54.chunk.js",
+    "static/media/authBg.png": "/static/media/authBg.f7f69a3c13e85fcee4e8.png",
+    "static/media/logo.svg": "/static/media/logo.ef2592534d9fb839b214d8bc818a7bc4.svg",
+    "static/media/nodata.png": "/static/media/nodata.fe4becab5f85688d698e.png",
+    "static/media/profile-post-no.jpeg": "/static/media/profile-post-no.293c7e6fb92d93f71b91.jpeg",
+    "index.html": "/index.html",
+    "main.31db6286.css.map": "/static/css/main.31db6286.css.map",
+    "main.cffecb2b.js.map": "/static/js/main.cffecb2b.js.map",
+    "787.5a005b54.chunk.js.map": "/static/js/787.5a005b54.chunk.js.map"
+  },
+  "entrypoints": [
+    "static/css/main.31db6286.css",
+    "static/js/main.cffecb2b.js"
+  ]
+}

BIN
hipstagram/favicon.ico


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
hipstagram/index.html


BIN
hipstagram/logo192.png


BIN
hipstagram/logo512.png


+ 25 - 0
hipstagram/manifest.json

@@ -0,0 +1,25 @@
+{
+  "short_name": "React App",
+  "name": "Create React App Sample",
+  "icons": [
+    {
+      "src": "favicon.ico",
+      "sizes": "64x64 32x32 24x24 16x16",
+      "type": "image/x-icon"
+    },
+    {
+      "src": "logo192.png",
+      "type": "image/png",
+      "sizes": "192x192"
+    },
+    {
+      "src": "logo512.png",
+      "type": "image/png",
+      "sizes": "512x512"
+    }
+  ],
+  "start_url": ".",
+  "display": "standalone",
+  "theme_color": "#000000",
+  "background_color": "#ffffff"
+}

+ 3 - 0
hipstagram/robots.txt

@@ -0,0 +1,3 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
+Disallow:

Dosya farkı çok büyük olduğundan ihmal edildi
+ 12 - 0
hipstagram/static/css/main.31db6286.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
hipstagram/static/css/main.31db6286.css.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 2 - 0
hipstagram/static/js/787.5a005b54.chunk.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
hipstagram/static/js/787.5a005b54.chunk.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
hipstagram/static/js/main.cffecb2b.js


+ 88 - 0
hipstagram/static/js/main.cffecb2b.js.LICENSE.txt

@@ -0,0 +1,88 @@
+/*
+    object-assign
+    (c) Sindre Sorhus
+    @license MIT
+    */
+
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/
+
+/*!
+  Copyright (c) 2018 Jed Watson.
+  Licensed under the MIT License (MIT), see
+  http://jedwatson.github.io/classnames
+*/
+
+/**
+ * Checks if an event is supported in the current execution environment.
+ *
+ * NOTE: This will not work correctly for non-generic events such as `change`,
+ * `reset`, `load`, `error`, and `select`.
+ *
+ * Borrows from Modernizr.
+ *
+ * @param {string} eventNameSuffix Event name, e.g. "click".
+ * @param {?boolean} capture Check if the capture phase is supported.
+ * @return {boolean} True if the event is supported.
+ * @internal
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
+ */
+
+/** @license React v0.20.2
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v16.13.1
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react-jsx-runtime.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+//! moment.js

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
hipstagram/static/js/main.cffecb2b.js.map


BIN
hipstagram/static/media/authBg.f7f69a3c13e85fcee4e8.png


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
hipstagram/static/media/logo.ef2592534d9fb839b214d8bc818a7bc4.svg


BIN
hipstagram/static/media/nodata.fe4becab5f85688d698e.png


BIN
hipstagram/static/media/profile-post-no.293c7e6fb92d93f71b91.jpeg


+ 1 - 4
src/App.js

@@ -28,7 +28,6 @@ const Main = ({ children }) =>
 const Content = ({ children }) =>
     <>{children}</>
 
-
 const AppContent = ({ isToken }) => {
     const isTabletDevice = useMediaQuery({
         query: "(max-width: 786px)"
@@ -56,7 +55,7 @@ const AppContent = ({ isToken }) => {
                         <Redirect from='/*' to='/tape' />
                     </Switch>
                 </Main>
-                {isTabletDevice && <FooterComponet  />}
+                {isTabletDevice && <FooterComponet />}
             </Content >
         }
     </Router >
@@ -65,10 +64,8 @@ const AppContent = ({ isToken }) => {
 
 const CAppContent = connect(state => ({ isToken: state.auth?.token }))(AppContent)
 
-
 store.subscribe(() => console.log(store.getState()))
 
-
 function App() {
     return (
         <Provider store={store}>

+ 1 - 1
src/pages/ProfilePage.jsx

@@ -161,7 +161,7 @@ const ProfilePage = ({ match: { params: { _id } }, getProfileUser, clearProfileD
 
     return (
         <Container>
-            <CPreloader promiseName='userOneDataPosts'/>
+            <CPreloader promiseName='userOneData'/>
             <CProfilePageData />
             <CGalleryMediaPostsUser />
         </Container>