How to use the type.File.permanentChangedCount function in type

To help you get started, we’ve selected a few type examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github basisjs / basisjs / src / devpanel / sync-basisjs-tools.js View on Github external
return;

    // trace only update and delete
    var ext = basis.path.extname(filename);

    if (inspectBasisResource.extensions[ext] &&
        inspectBasisResource.extensions[ext].permanent &&
        inspectBasisResource.isResolved(filename) &&
        inspectBasisResource(filename).hasChanges())
      basis.array.add(permanentFiles, filename);
    else
      basis.array.remove(permanentFiles, filename);
  });

  // set new count
  File.permanentChangedCount.set(permanentFiles.length);

  Dataset.setAccumulateState(false);
}
github basisjs / basisjs / src / devpanel / panel / index.js View on Github external
template: resource('./template/panel.tmpl'),

  binding: {
    activated: 'activated',
    themeName: inspectBasisTemplate.theme,
    themeList: themeList,
    cultureName: inspectBasisL10n.culture,
    cultureList: cultureList,
    isOnline: isOnline,
    remote: new Expression(remoteInspectors, devtools, function(inspectors, devtool){
      if (inspectors && devtool)
        return 'remote-and-devtool';
      if (inspectors || devtool)
        return inspectors ? 'remote' : 'devtool';
    }),
    permanentFilesChangedCount: File.permanentChangedCount,
    inspectMode: inspectMode,
    inspector: currentInspectorName,
    grid: function(){
      var config = inspectBasis.config.devpanel;
      return Number(config && config.grid) || 0;
    }
  },

  action: {
    showThemes: function(){
      inspectMode.set();
      themeList.setDelegate(this);
    },
    showCultures: function(){
      inspectMode.set();
      cultureList.setDelegate(this);