Giter Site home page Giter Site logo

Comments (12)

Micraow avatar Micraow commented on August 23, 2024

我也尝试了 npm install ,但是问题依然存在。

from onedrive-cf-index.

spencerwooo avatar spencerwooo commented on August 23, 2024

npm 不知道行不行,你可以用 yarn 试一下吗

from onedrive-cf-index.

spencerwooo avatar spencerwooo commented on August 23, 2024

先将当前文件夹下的 ./node_modules 全部删除,然后用 yarn 重新安装依赖

from onedrive-cf-index.

Micraow avatar Micraow commented on August 23, 2024

@spencerwooo
我一开始就是用的是yarn,刚刚又按你所说的做里边,但是还是有相同的问题。今天是我的完整的过程。

PS C:\WINDOWS\system32> cd C:\Users\77933\Documents\od
PS C:\Users\77933\Documents\od> wrangler publish
added 183 packages from 107 contributors and audited 183 packages in 4.838s

25 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

./src/folderView.js 68:51
Module parse failed: Unexpected token (68:51)
You may need an appropriate loader to handle this file type.
| 'div',
| ['style="min-width: 600px"'],

      (!isIndex ? item('far fa-folder', '..', `${path}..`) : '') +

| items
| .map(i => {
@ ./src/index.js 7:0-47 123:32-48
Error: webpack returned an error. You may be able to resolve this issue by running npm install.
PS C:\Users\77933\Documents\od>

from onedrive-cf-index.

Micraow avatar Micraow commented on August 23, 2024

@spencerwooo
问题仍然存在。我这边所有的程序都使用的是最新版的呀。

from onedrive-cf-index.

spencerwooo avatar spencerwooo commented on August 23, 2024

@Micraow 找到问题了,我去看了你的 fork,你 51 行删多了:

image

这里的 intro 改成:

const intro = `<div class="intro markdown-body" style="text-align: left; margin-top: 2rem;">
                  <h2>Yoo, I'm Micraow Peng 👋</h2>
                  <p>This is MS's OneDrive SECRET directory . Please leave.</p>
               </div>`

这样修改之后我这边你的 fork 是可以 build 的了。

image

from onedrive-cf-index.

Micraow avatar Micraow commented on August 23, 2024

好的,谢谢!

from onedrive-cf-index.

Micraow avatar Micraow commented on August 23, 2024

额,还有一个问题啊,这是我应该在哪里更改页面上的标题?还有窗口的标题呢?
IMG_20200827_145850

from onedrive-cf-index.

spencerwooo avatar spencerwooo commented on August 23, 2024

@Micraow ./src/render/htmlWrapper.js

from onedrive-cf-index.

Micraow avatar Micraow commented on August 23, 2024

另外,我想知道缓存这一功能是否测试过了?以及我是否可以修改多大的文件可以预览,超过这一大小的文件是下载?

from onedrive-cf-index.

spencerwooo avatar spencerwooo commented on August 23, 2024

另外,我想知道缓存这一功能是否测试过了?

缓存是原作者实现的,我没使用过,你可以自己试试。

以及我是否可以修改多大的文件可以预览,超过这一大小的文件是下载?

暂时没有类似的考虑,你可以选择自己实现。

from onedrive-cf-index.

Micraow avatar Micraow commented on August 23, 2024

那,,请问你下一步准备做什么?
也许预加载要预览的文件不错。

from onedrive-cf-index.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.