வலைபயன்பாடு வழிகாட்டி¶
வலைபயன்பாடு செல்லில் எவ்வாறு பொருந்துகிறது¶
உபுண்டு/யூனிட்டி செல்லில் உபுண்டு பயன்பாடாக இயங்கும் வலைபயன்பாடு-கான்டைனருக்குள் ஒரு வலை பயன்பாடு வலைவியூவில் காண்பிக்கப்படுகிறது.
ஒரு நெருக்கமான பார்வை:
உள் மட்டத்தில், உருவாக்குபவர் முகவரி ஆல் அடையாளம் காணும் ஒரு வலைத்தளம் உள்ளது. வலைத்தளம் வழங்கப்பட்டு கியுடி வெபெங்கின் அடிப்படையிலான வலைவியூவில் இயங்குகிறது. வலைவியூ முன்பே நிறுவப்பட்ட மோர்ப் உலாவியால் வழங்கப்படுகிறது மற்றும் கோப்பு உரையாடல்கள் (ContentHub ஐப் பயன்படுத்தி), பதிவிறக்கங்கள், அனுமதிகள் போன்றவற்றை தானாகவே கையாளுகிறது.
தொடங்குதல்¶
You can launch a webapp from the terminal with::
webapp-container URL
For example::
webapp-container https://www.ubuntu.com
இந்த எளிய வடிவம் செயல்படுகிறது, ஆனால் அறிவிலிடத்தட்ட ஒவ்வொரு வலைபயன்பாடும் மற்ற அம்சங்களையும் பயன்படுத்துகின்றன, அதாவது முகவரி கட்டுப்பாடு முகவரி வடிவங்களுடன் கீழே விவரிக்கப்பட்டுள்ளபடி.
பயனர் இடைமுகம்¶
நிலையான உலாவிகளில் பொதுவாகக் காணப்படும் இடைமுகம் கட்டுப்பாடுகள் தேவையில்லாமல், ஒரு வலைபயன்பாடு பொதுவாக முழு பயன்பாட்டுத் திரை இடத்தையும் நிரப்புகிறது.
சில சந்தர்ப்பங்களில் சில வழிசெலுத்தல் கட்டுப்பாடுகள் பின்புறம் மற்றும் முன்னோக்கி பொத்தான்கள் அல்லது முகவரி பட்டி போன்றவை. இவை கட்டளை வரி வாதங்களுடன் இயக்கப்பட்டுள்ளன:
--enable-back-forwardகருவிப்பட்டியில் பின் மற்றும் முன்னோக்கி பொத்தான்களின் காட்சியை இயக்கவும் (வெப்அப் சாளரத்தின் கீழே)
--enable-addressbarமுகவரிப் பட்டியின் காட்சியை இயக்கு (webapp சாளரத்தின் கீழே)
முகவரி வடிவங்கள்¶
வலைபயன்பாடு ஆசிரியர்கள் பெரும்பாலும் இலக்கு வலைத்தளத்திற்கு உலாவலைக் கட்டுப்படுத்த விரும்புகிறார்கள். அதாவது, உருவாக்குபவர் வலைபயன்பாட்டில் திறக்கக்கூடிய முகவரி களை கட்டுப்படுத்த விரும்புகிறார் (மற்ற அனைத்து முகவரி களும் உலாவியில் திறக்கப்பட்டுள்ளன). இது வலைபயன்பாடு கட்டளை வரியின் ஒரு பகுதியாக முகவரி வடிவங்களுடன் செய்யப்படுகிறது.
இருப்பினும், பல வலை பயன்பாடுகள் பல தளங்களில் புரவலன் செய்யப்பட்ட அல்லது வெளிப்புற வளங்கள் மற்றும் பக்கங்களைப் பயன்படுத்தும் பக்கங்களைப் பயன்படுத்துகின்றன.
வெளியீட்டு நேரத்தில் வாதங்களாக வழங்கப்பட்ட முகவரி வடிவங்களுடன் குறிப்பிட்ட வெளிப்புற முகவரி களுக்கான கட்டுப்பாடு மற்றும் அணுகல் இரண்டும் செயல்படுத்தப்படுகின்றன. உற்று நோக்கலாம்.
இயல்புநிலையாக இல்லை¶
By default, there is no URL containment. Suppose you launch a webapp without any patters and only a starting URL like this::
webapp-container https://www.ubuntu.com
பயனர் எந்த முகவரி க்கும் வரம்பில்லாமல் செல்லலாம். எடுத்துக்காட்டாக, அவர்கள் மேலே உள்ள உருவாக்குபவர் பொத்தானைக் சொடுக்கு செய்தால், அவை டெவலப்பர்.பண்ட்யூ.காமுக்கு செல்லவும், அது வலைபயன்பாட்டில் காண்பிக்கப்படும்.
உதவிக்குறிப்பு: முகவரி பட்டியை --enable-addressbar உடன் இயக்குவதன் மூலம் தற்போதைய பக்கத்தின் முகவரி ஐ நீங்கள் காணலாம்.
தளத்திற்கு எளிய கட்டுப்பாடு¶
One often wants to contain users to the site itself. That is, if the website is www.ubuntu.com, it may be useful to contain webapp users only to subpages of www.ubuntu.com. This is done by adding a wildcard URL pattern to the launch command, as follows::
webapp-container --webappUrlPatterns=https://www.ubuntu.com/* https://www.ubuntu.com
--webappUrlPatterns=ஒரு முறை அடுத்ததாக இருப்பதைக் குறிக்கிறதுhttps://www.ubuntu.com/* என்பது விண்மீன் என்பது ஒரு முகவரி இல் உள்ள எந்தவொரு சரியான எழுத்துக்களுடன் பொருந்தக்கூடிய ஒரு வைல்டு அட்டை ஆகும்
இந்த வெளியீட்டு கட்டளை மற்றும் முகவரி வடிவத்தின் மூலம், பயனர் https://www.ubuntu.com/ உடன் தொடங்கும் எந்த முகவரி ஐ வெபாப்பில் செல்லவும் திறக்கவும் முடியும். எடுத்துக்காட்டாக, அவர்கள் பேனரில் உள்ள தொலைபேசி பொத்தானை (https://www.ubuntu.com/phone) சொடுக்கு செய்யலாம், அது வலைபயன்பாட்டில் திறக்கிறது அல்லது டேப்லெட் பொத்தானை (https://www.ubuntu.com/tablet) திறக்கிறது. ஆனால், டெவலப்பரைக் சொடுக்கு செய்தால் உலாவியில் தொடர்புடைய முகவரி ஐத் திறக்கிறது.
உதவிக்குறிப்பு: உங்கள் தொடக்க முகவரி இல் உள்ள நெறிமுறையை குறிப்பிடுவதை உறுதிசெய்து கொள்ளுங்கள், அதாவது, www.ubuntu.com க்கு பதிலாக https://www.ubuntu.com ஐப் பயன்படுத்தவும். நெறிமுறையைக் குறிப்பிடாதது தெளிவற்ற முகவரி ஐ உருவாக்கும், இதனால் பாதுகாப்பு கவலைகளை அறிமுகப்படுத்தும்.
மிகவும் சிக்கலான வைல்டு அட்டை வடிவங்கள்¶
You might want to limit access to only some subpages of your site from within the webapp. This is easy with wildcard patterns. (Links to other subpages are opened in the browser.) For example, the following allows access to www.ubuntu.com/desktop/features and www.ubuntu.com/phone/features while not allowing access to www.ubuntu.com/desktop or www.ubuntu.com/phone:
webapp-container --webappUrlPatterns=https://www.ubuntu.com/*/features https://www.ubuntu.com
பல வடிவங்கள்¶
You can use multiple patterns by separating them with a comma. For example, the following allows access only to www.ubuntu.com/desktop/features and www.ubuntu.com/phone/features::
webapp-container --webappUrlPatterns=https://www.ubuntu.com/desktop/features,https://www.ubuntu.com/phone/features https://www.ubuntu.com
உதவிக்குறிப்பு: நோக்கம் கொண்ட கட்டுப்பாட்டு நடத்தை அடைய பல வடிவங்கள் பெரும்பாலும் தேவை.
ஒரு குறிப்பிட்ட துணை டொமைனைச் சேர்ப்பது¶
Many URLs have one or more subdomains. (For example, in the following, "developer" is the subdomain: developer.ubuntu.com.) You can allow access to a single subdomain (and all of its subpages) with a pattern like this::
--webappUrlPatterns=https://developer.ubuntu.com/*
However, one usually wants the user to be able to navigate back to the starting URL (and its subpages). So, if the starting URL is https://www.ubuntu.com, a second pattern is needed::
--webappUrlPatterns=https://developer.ubuntu.com/*,https://www.ubuntu.com/*
Putting these together, here’s an example that starts on https://www.ubuntu.com and allows navigation to https://developer.ubuntu.com and subpages and back to https://www.ubuntu.com and subpages::
webapp-container --webappUrlPatterns=https://developer.ubuntu.com/*,https://www.ubuntu.com/* https://www.ubuntu.com
வைல்டு கார்டுடன் துணை டொமைன்களைச் சேர்ப்பது¶
Some URLs have multiple subdomains. For example, www.ubuntu.com has design.ubuntu.com, developer.ubuntu.com and more. You can add access to all subdomains with a wildcard in the subdomain position::
webapp-container --webappUrlPatterns=https://*.ubuntu.com/* https://www.ubuntu.com
குறிப்பு: துணை டொமைன் நிலையில் உள்ள ஒரு விண்மீன் எந்த செல்லுபடியாகும் ஒற்றை துணை டொமைனுடன் பொருந்துகிறது. தொடக்க முகவரி (https://www.ubuntu.com) மற்றும் அதன் துணைப்பிரிவுகள் உள்ளிட்ட எந்தவொரு துணை டொமைன் மற்றும் துணைப்பகுதிகளுக்கும் உலாவலை இயக்க இந்த ஒற்றை முறை போதுமானது.
HTTP ஐச் சேர்க்கிறது¶
Sometimes a site uses http for some of its URLs. In general this is unsafe and should be avoided, but here is an example that allows access to www.launchpad.net on both https and http inside the webapp (and all subpages due to the wildcard)::
webapp-container --webappUrlPatterns=https?://www.launchpad.net/* https://www.launchpad.net
குறிப்பு: HTTPS இல் கேள்விக்குறி ?. இதன் பொருள் முந்தைய எழுத்து (‘கள்’) விருப்பமானது. HTTP கள் எப்போதும் தேவைப்பட்டால், கேள்விக்குறியைத் தவிர்க்கவும்.
கட்டளை வரி வாதங்கள்¶
வலைபயன்பாடு-கான்டெய்னர் பல்வேறு வலை பயன்பாடுகளை எவ்வாறு வழங்குகிறது என்பதை நன்றாக மாற்ற பல விருப்பங்களை ஏற்றுக்கொள்கிறது.
See all help with::
webapp-container --help
Note: Only the following options apply to converged Ubuntu.:
--fullscreen Display full screen
--inspector[=PORT] Run a remote inspector on a specified port or 9221 as the default port
--app-id=APP_ID Run the application with a specific APP_ID
--name=NAME Display name of the webapp, shown in the splash screen
--icon=PATH Icon to be shown in the splash screen. PATH can be an absolute or path relative to CWD
--webappUrlPatterns=URL_PATTERNS List of comma-separated url patterns (wildcard based) that the webapp is allowed to navigate to
--accountProvider=PROVIDER_NAME Online account provider for the application if the application is to reuse a local account.
--accountSwitcher Enable switching between different Online Accounts identities
--store-session-cookies Store session cookies on disk
--enable-media-hub-audio Enable media-hub for audio playback
--user-agent-string=USER_AGENT Overrides the default User Agent with the provided one.
Chrome options (if none specified, no chrome is shown by default)::
--enable-back-forward Enable the display of the back and forward buttons (implies --enable-addressbar)
--enable-addressbar Enable the display of a minimal chrome (favicon and title)
குறிப்பு: கிடைக்கக்கூடிய பிற விருப்பங்கள் டெச்க்டாப் வலைபயன்பாட்டுகளுக்கு குறிப்பிட்டவை. இனி அவற்றைப் பயன்படுத்த வேண்டாம் என்று பரிந்துரைக்கப்படுகிறது.
பயனர்-முகவர் சரம் மேலெழுதும்¶
சில வலைத்தளங்கள் வலை இயந்திர அடையாளத்தின் குறிப்பிட்ட பகுதிகளைச் சரிபார்கின்றன, பயனர்-முகவர் சரம், அவற்றின் விளக்கக்காட்சியை சரிசெய்ய அல்லது சில அம்சங்களை இயக்க. பரிந்துரைக்கப்பட்ட நடைமுறை அல்ல என்றாலும், வலைபயன்பாடு கொள்கலன் அனுப்பிய இயல்புநிலை சரத்தை மாற்ற சில நேரங்களில் தேவை.
To change the string from the command line, use the following option::
--user-agent-string='<string>' Replaces the default user-agent string by the string specified as a parameter
உலாவி தரவுக் கட்டுப்பாடு¶
வலைபயன்பாடு பட்டறிவு உலாவி தரவு பார்வையில் இருந்து தனிமைப்படுத்தப்பட்டுள்ளது. அதாவது, வரலாறு, குக்கீகள் போன்ற வேறு எந்த நிறுவப்பட்ட உலாவிகளிலிருந்தும் தரவை வலைபயன்பாடு அணுகாது. கணினியில் உள்ள பிற உலாவிகள் வலைபயன்பாட்டின் தரவை அணுகாது.
சேமிப்பு¶
பின்வரும் சேமிப்பக விருப்பங்கள் ஆதரிக்கப்படுகின்றன: உள்ளூர்/அமர்வு சேமிப்பிடம், குறியீட்டியல் மற்றும் நீக்கப்பட்ட WebsQL. கோப்பு முறைமை பநிஇ ஆதரிக்கப்படவில்லை, ஏனெனில் பயன்பாடுகளால் கோப்பு முறைமையை நேரடியாக அணுக முடியாது.