Giter VIP home page Giter VIP logo

Comments (12)

jjsty1e avatar jjsty1e commented on June 7, 2024

这是执行什么操作?

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

这是执行什么操作?

php bin/console translation:persist时候的错误,

from vmoex-framework.

jjsty1e avatar jjsty1e commented on June 7, 2024

在这之前还有两个命令没执行,具体看安装文档

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

在这之前还有两个命令没执行,具体看安装文档

是按步执行的...然后报错了

from vmoex-framework.

jjsty1e avatar jjsty1e commented on June 7, 2024

执行一下这个命令试试(webuser为你的web用户):

sudo -u <webuser>  php bin/console doctrine:cache:clear-metadata

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

我拿宝塔重装了一遍了.....现在是这个猫饼,在创建静态资源文件的时候,image

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

这红的我眼瞎了

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

执行一下这个命令试试(webuser为你的web用户):

sudo -u <webuser>  php bin/console doctrine:cache:clear-metadata

An error occurred while running:
'/www/server/nvm/versions/node/v10.15.3/bin/node' '/www/server/nvm/versions/node/v10.15.3/bin/uglifyjs' '-o' '/tmp/a
ssetic_uglifyjs2_outN9DyBc' '/tmp/assetic_uglifyjs2_inSZKe4D'

Error Output:
Parse error at /tmp/assetic_uglifyjs2_inSZKe4D:45,4
const self = window.YesknPlugins;
^
ERROR: Unexpected token: keyword «const»
at JS_Parse_Error.get (eval at (/www/server/nvm/versions/node/v10.15.3/lib/node_modules/uglify-js/to
ols/node.js:20:1), :71:23)
at fatal (/www/server/nvm/versions/node/v10.15.3/lib/node_modules/uglify-js/bin/uglifyjs:296:53)
at run (/www/server/nvm/versions/node/v10.15.3/lib/node_modules/uglify-js/bin/uglifyjs:240:9)
at Object. (/www/server/nvm/versions/node/v10.15.3/lib/node_modules/uglify-js/bin/uglifyjs:165:5)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)

Input:
$(function () {
var $modal = $('.modal');
$modal.on('show.bs.modal', function () {
$('body').addClass("modal-open-noscroll");
});

  $modal.on('hidden.bs.modal', function () {                                                                        
      $('body').removeClass("modal-open-noscroll");                                                                 
  });                                                                                                               

});

$.fn.findName = function (name) {
return $(this).find('[name='+name+']');
};

$.fn.nameVal = function (name) {
return $(this).findName(name).val();
};

$.fn.onPjax = function(event, $target, callback) {
$(this).off(event, $target);
$(this).on(event, $target, callback);
};

$.extend({
round: function (value, precision) {
if (precision === undefined) {
precision = 2;
}

      var times = Math.pow(10, precision);                                                                          
                                                                                                                    
      return Math.round(value * times) / times                                                                      
  }                                                                                                                 

});

/**
*

  • @param name 插件名称

  • @param callback 插件加载完后执行的函数

  • @param refresh 重复获取时执行的函数

  • @returns {*}
    */
    window.YesknPlugins.get = function (name, callback, refresh) {
    const self = window.YesknPlugins;

    if (self[name].initialized === true) {
    if (refresh) refresh(self[name].result);
    if (callback) self[name].result = callback(eval(self[name].identifier));
    return self[name];
    }

    const scripts = self[name].scripts;
    const links = self[name].links;

    for (const key in scripts) {
    let scriptElm = document.createElement('script');
    if (scripts.hasOwnProperty(key)) {
    scriptElm.setAttribute('src', scripts[key]);
    document.getElementsByTagName('head')[0].insertBefore(scriptElm, null);
    }

     if (key * 1 === scripts.length - 1) {                                                                         
         scriptElm.onload = function () {                                                                          
             if (callback) self[name].result = callback(eval(self[name].identifier));                              
         };                                                                                                        
     }                                                                                                             
    

    }

    for (const key in links) {
    let linkElm = document.createElement('link');
    if (links.hasOwnProperty(key)) {
    linkElm.setAttribute('href', links[key]);
    linkElm.setAttribute('rel', 'stylesheet');
    document.getElementsByTagName('head')[0].insertBefore(linkElm, null);
    }
    }

    self[name].initialized = true;

    return self[name];
    };

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

解决了,非全局装了一个uglifyjs,然后用了这个地址就行了,不过问题又来了。
image,这个地址不存在?????app下面并没有/web之后的东西。bootstrap.min.css网上找了一个,但是不知道放哪里,这个规则是不是得改一下?

from vmoex-framework.

Frandore avatar Frandore commented on June 7, 2024

已解决,我眼瞎。

from vmoex-framework.

jjsty1e avatar jjsty1e commented on June 7, 2024

= =

from vmoex-framework.

tuciyuan avatar tuciyuan commented on June 7, 2024

老哥我也遇到.css文件不存在的问题,你怎么解决的?
我进“..”这个隐藏文件夹里创建不了bootsrap目录

from vmoex-framework.

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.