Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

examples5.ext.net: Debug mode references non-existing triton theme css #26

Open
fabriciomurta opened this issue Feb 7, 2020 · 4 comments
Assignees
Labels

Comments

@fabriciomurta
Copy link
Contributor

The examples5.ext.net uses CDN as resources, and this proved especially useful. It seems when debug mode is enabled, the triton theme's theme-triton-all-debug.css is missing, so this is for some reason not being included in the CDN release process -- or it is being released under another path.

This should be checked and either the CDN or Ext.NET's wired path should be fixed.

@fabriciomurta
Copy link
Contributor Author

Every theme's theme-<name>-all-[rtl-]debug[_1|_2].css file is included in Ext.NET as Content instead of EmbeddedResource, and this means the file won't get into Ext.NET's DLL thus does not get published per scripted rules.

It seems the files are not needed at all as embedded resources, so a rule in the scripted CDN deployment should take place.

@fabriciomurta
Copy link
Contributor Author

The non-debug theme files should be switched to Content as well (remaining just the -embedded ones!), as they are not necessary as embedded resources.

The -embedded prefixed files are required as they change paths for resources (like icons) from relative URL paths to WebResource translated paths.

@fabriciomurta
Copy link
Contributor Author

This can be addressed by updating just the missing files to CDN. This command should help (bash shell in cygwin, might work in OS X and *nix too)
(one-liner)
enver="5.1.0"; find src/Build/Ext.Net/extjs -name 'theme-*-all-*debug*.css' | while read file; do pth="${file%/*}"; pth="${pth#src/Build/Ext.Net/}"; fle="${file##*/}"; if [ ! -e "../Speed/ext.net/${enver}/${pth}/${fle}" ]; then cp "$file" ../Speed/ext.net/${enver}/${pth}/${fle}; fi; done

(formatted)

enver="5.1.0"
find src/Build/Ext.Net/extjs -name 'theme-*-all-*debug*.css' | while read file; do
 pth="${file%/*}"
 pth="${pth#src/Build/Ext.Net/}"
 fle="${file##*/}"
 if [ ! -e "../Speed/ext.net/${enver}/${pth}/${fle}" ]; then
  cp "$file" ../Speed/ext.net/${enver}/${pth}/${fle}
 fi
done

@fabriciomurta
Copy link
Contributor Author

This means this is fixed for version 5.1.0, yet a rule to deploy those files should be added to the deploy_cdn.sh script.

@fabriciomurta fabriciomurta self-assigned this Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant